When you install the Peoplevox connector from the Patchworks marketplace, pre and post authentication scripts are included.
Typically, you don't need to do anything with these scripts - they do what they need to do 'out of the box'. However, if you are connecting to a US region, you might need to update the pre-auth script.
The pre-authentication script encodes passwords as Base64, which is required by most PVX regions. However, the US region requires this in plain text.
If you experience issues with authentication - usually a message like 'System : Security - Invalid Session'
, then you should update the pre-authentication script to remove Base64 encoding. This is a simple change, summarised below.
Required steps are detailed in the following sections:
Step 1 From the Patchworks dashboard, select process flows | scripts from the left-hand navigation menu.
Step 2 From the installed section, click the pre-auth Base64 encode script name:
If you installed the Peoplevox connector from the Patchworks marketplace, this script will always be present.
Step 3 Once the script is open in edit mode, move down to the code editor and change:
to:
Step 4 Save and deploy the script:
Step 1 From the Patchworks dashboard, select process flows | connectors & instances from the left-hand navigation menu.
Step 2 Click the settings icon associated with the Descartes Peoplevox connector:
Step 3 Select the authentication option:
Step 4 Click the SOAP Authentication method:
Step 5 Select the pre-request script tab:
Step 6 Select the latest version of the script:
Step 7 Save changes.
Descartes Peoplevox is the Warehouse Management System for eCommerce businesses, online retailers and direct to consumer brands.
API documentation for Peoplevox (used to build this connector) can be found via the link below:
When adding connector instances for Peoplevox, the following authentication methods are supported:
When a user chooses to add a connector instance using SOAP request authentication, the credentials below are prompted:
Step 1 In your browser, open the URL that you use to access the Peoplevox dashboard.
Step 2 Check the top right-hand corner of the dashboard - you'll see your client id followed by your username (the short form in brackets) - for example:
The password is the same password that you use to log into Peoplevox.
Before this connector can be used as a target connection in process flows, you must create a setData script.
Having completed this setup, the Peoplevox connector is ready to use.
If you are connecting to a US region, you might need to update the default pre-authentication script for the installed connector. For information, please see Peoplevox pre & post authentication scripts page.
The Peoplevox connector is like any other Patchworks connector - it gets added to process flows via a connection shape.
However, if you build a process flow with Peoplevox as a target connection, you must add a custom script shape and apply the setData script immediately before the target connection shape. For more information please see: Using the Peoplevox setData script in process flows.
If you're building a process flow with Peoplevox as a target connection, you must create a setData script and then - in your process flow - apply this script immediately before the target connection.
Step 1 From the Patchworks dashboard, select scripts from the left-hand navigation menu.
Step 2 Click the create script button:
Step 3 In the name field, type the following:
Step 4 In the description field, type the following:
Step 5 Click in the language field and select PHP 8.1:
Step 6 Click the create button:
Step 7 The script is created and opened in edit mode - select and remove the placeholder code:
Step 8 Paste in the code below.
Step 9 Click the save and deploy button:
You don't need to do anything with the setData script right now. However, if you build a process flow with Peoplevox as a target connection, you must add a custom script shape and apply this setData script immediately before the target connection shape. For more information please see: Using the Peoplevox setData script in process flows.
If you are pulling data from Peoplevox (i.e. your process flow includes a connection shape configured with a Peoplevox GET
endpoint), the payload is generated as XML data.
If required, you can convert the XML payload to JSON by adding the script below to a script shape immediately after the Peoplevox connection shape. For example:
The script below will convert any Peoplevox XML payload, irrespective of the entity type being pulled.
Having installed the Peoplevox connector and applied pre and post request scripts, you're ready start using the connector in process flows.
If you build a process flow with Peoplevox defined as a target connection shape, you must always include a script shape immediately before the connection shape, and associate this with the setData custom script. This script takes care of data conversions that are required before sending data into Peoplevox.
You should have already created all required custom scripts but if you haven't, please complete steps detailed on this page before proceeding.
Step 1 Build your process flow in the usual way, including a connection shape configured for Peoplevox as a target.
Step 2 Immediately before the Peoplevox connection, add a script shape - for example:
Step 3 In custom script settings, select the PVX setData script:
Step 4 Save the shape - the script is added to you flow:
Credential | Required? | Notes |
---|---|---|
Having logged into Peoplevox, your client ID is also shown in the URL - for example:
Username
The username that you enter to access the Peoplevox dashboard.
Client ID
Available from the Peoplevox dashboard.
Password
The password that you enter to access the Peoplevox dashboard.
Environment
This is the URL (without the https prefix) that you use to access Peoplevox. Typically this is wms.peoplevox.net
.
Response authentication token key
Leave set to the default:
//ns:Detail