Hi, Does anyone have experience with SPS integrati...
# integrations
j
Hi, Does anyone have experience with SPS integration? One of the steps is create select a "Create PO ack" button (in image). We want to avoid having to go through each sales order and select this button, SPS informed us that we can in fact automate this through a workflow. Here are my thoughts of going about it: 1. Create a workflow action script based on the script that is triggered by the "Create PO ack" button 2. Make a "Trigger PO Ack" check box field 3. Create a saved search that pulls SOs where if "Trigger PO Ack" is blank and be able to inline edit this checkbox 4. Create a workflow where if "Trigger PO ack" is true then trigger the workflow action script for that transaction Open to feedback and suggestions. If anyone has done this integration with SPS and automated this "Create PO Ack" process please let me know. Thanks!
b
probably the wrong approach
the button calls a suitelet
and its unlikely that you will be able to call a suitelet using serverside code
you probably want to get more details about how your workflow would would either copy the call to the suitelet, or somehow copy the code from the suitelet
either way sounds ugly
e
I automated this by creating a SL that has a client script that calls the SPS SL that creates the PO Ack file. The SL I created allows for the whole batch or specific selected records to generate the PO Ack files.
j
@battk Thank you for the suggestions. @Eric B Hi Eric, Would would mind sharing the SL and CS?
e
This needs to be on the client script and this is what triggers the SPS Commerce SL to create the PO Acks
The SL code should be pretty straightforward with a sublist that contains the data that needs to be processed.
Snippet of code on client script that collects the internal id of records that are marked to be processed.
j
Thank you so much @Eric B ! Never done a Suitelet myself but I'll take a stab at it.
👍 1