This page summarises items scheduled for the following release to the Patchworks Core Production environment.
v2025-03-05
5th March 2025
New features, updates, and enhancements are summarised below.
Until now, if a post-request
script was required for an endpoint it could be added to connector shapes in process flows - for example:
After this release, post-request
scripts can also be added to connector endpoints, which means they are applied automatically wherever the endpoint is used in process flows. We've also added the ability to apply pre-request
scripts to endpoints.
We aren't changing the existing response script functionality in connector settings and you don't have to make any changes to your setup. However, if you currently use response scripts via connector shape settings, we do advise considering whether this is the best approach for your needs. Please see below for general guidance.
If your response (i.e. post-request
) script must always be applied when an endpoint is used, we recommend adding the script to the endpoint rather than connector shapes. This is a great time saver (no more having to remember to update connector shapes across your flows!) and makes ongoing maintenance easier. For more information please see our post-request script page.
If your response script is only needed when the endpoint is used in a specific process flow, it should be added to relevant connector shapes in process flows OR called from a script shape after the connector step.
If a connector shape is configured for an endpoint associated with a post-request
script AND a response script
is applied in connector shape settings, the connector shape takes precedence. In this scenario, the response script
applied in the connector shape is used and the post-request
script applied to the endpoint is ignored.
Pre-request
scripts for endpoints are introduced in this release. When a pre-request
script is added to an endpoint, it is applied every time that endpoint is called. With this in mind:
If your pre-request
script must always be applied when an endpoint is used, you can simply add the script to your existing endpoint.
Please see our pre-request script page for more information.
If your pre-request
script is only needed when the endpoint is used in a specific process flow, you should:
Clone the existing endpoint
Edit the cloned endpoint - change the name as appropriate and add the pre-request
script
Where needed, configure connector shapes to use the endpoint associated with your pre-request script. Otherwise, use the standard endpoint.
Please see using a pre-request script in some process flows but not others for more information.