Swan Retail System - pagination update timestamp response script
Last updated
Last updated
, Swan Retail System endpoints are paginated based on the amended date
for items, so subsequent queries start from the amended date
of the last item returned.
For this to work as required, we use a to add 5 milliseconds
to the time stamp for last items. To implement this you must:
Install the Swan Pagination Update Timestamp
response script from the Patchworks marketplace.
Apply this script to any process flow connector shapes where the Swan Retail System connector is used with a .
Having installed the Swan Retail System connector from the Patchworks marketplace, you'll find that two endpoints are configured for pagination:
Get web updates
Get web stock
Step 1 Log into your Patchworks dashboard and navigate to the .
Step 2
Select the scripts tab and locate the Swan Pagination Update Timestamp
script (use the search field to find it quickly):
Step 3 Install the script:
Step 2
Scroll down to the response handling
section and click on the response script
field:
Step 3
Select the Swan Pagination Update Timestamp
script:
Step 4 Select the latest version available:
Step 5 Save changes. Now whenever this process flow runs, this script is applied to responses.
The script is installed and ready for use when .
If a process flow includes a configured to use the Swan Retail System connector with a , you must apply the Swan Pagination Update Timestamp
script to connector settings. To do this, follow the steps below.
Step 1
Click the settings
icon associated with the :
For more information about how response scripts work, please see our page.