SFRA Jobs
These jobs will allow you to manage post origination actions from salesforce.
Overview
These jobs will allow you to manage post origination actions from salesforce. You will be able to manage the following:
- Shipped - Set a delivery date for Katapult to know when funding should begin.
- Cancel - Cancel the entire order
- Completed - Mark an order for not to be reprocessed
- Cancel Item - Cancel the items individually
*Your integration must provide the update line items in the SFCC.
You can Update Line Items through:
OCAPI (Open Commerce API)
Add a Hook to POST order update to the cancel item endpoint. Like below:
![024.png 703](https://files.readme.io/8343f11-024.png)
XML
The xml file must have a content like below:
![025.png 793](https://files.readme.io/c6c67cb-025.png)
A test controller was created. In this controller we pass the parameters in the url, where the “CancelItem” is the controller, “cancelItem” is the method, “oid” is the order ID and the “oli” is order line item.
See a example url below:
![026.png 429](https://files.readme.io/acf9bb2-026.png)
To avoid change Scope everytime, was created one JOB to SFRA and another to SiteGenesis:
![027.png 934](https://files.readme.io/6987690-027.png)
Go to Administration > Operations > Jobs
Open the Job katapultOrderUpdateSRFA
![028.png 1029](https://files.readme.io/bf3df84-028.png)
Verify that the steps has selected the Scope option for your SFRA site, go to tab Job Steps
Select your RefArch scope and press Assign
![029.png 829](https://files.readme.io/d959f19-029.png)
Press the button Run Now to execute it, this job will update in Katapult’s platform the Delivery Date, the orders to Canceled, the orders with Canceled Items and the Completed orders to not be reprocessed.
You will see that the job was completed at the bottom of the page in the Schedule and History Tab, as well as the log file that includes what orders were updated in the Katapult platform
![030.png 1029](https://files.readme.io/62f706d-030.png)
![031.png 1029](https://files.readme.io/1376a1f-031.png)
This is a row of the log from the order we canceled before in Salesforce, that includes information about the order number and the ID from Katapult's platform
![032.png 1029](https://files.readme.io/61b51c3-032.png)
Configuring Job Schedules
To configure schedules in Katapult job go to Administration > Operations > Jobs and open katapultOrderUpdateSFRA Job
Go to the tab Schedule and History
![035.png 1029](https://files.readme.io/67a8e13-035.png)
Configure when will be triggered the job, Once or Recurring
![036.png 1029](https://files.readme.io/1783670-036.png)
If you select Once select the date from the option when will be executed the Job
![037.png 1029](https://files.readme.io/14eb2bf-037.png)
If you selected Recurring Interval select the date from when will starts the job and others parameters like how many times will be executed the Job, this is in the input Amount, Interval is to set with minutes, hours, days, weeks or months and for last, the days when will be executed the Job
![038.png 1029](https://files.readme.io/ad250a4-038.png)
Configuring Job Email Notifications
To configure schedules in Katapult job go to Administration > Operations > Jobs and open the katapultOrderUpdateSFRA Job
Go to the tab Notifications
Select the events you want notifications, add emails and automatically changes will be saved
![039.png 687](https://files.readme.io/b87bead-039.png)
After run the Job you will receive an email like this
![040.png 536](https://files.readme.io/c2560f6-040.png)
Updated about 3 years ago