Case: Why User-Event Scripts deployed in Payment Card Token is not triggered, on its Creation event?Note: CyberSouce Bundle is handling payment card token generation. Enhancement: case number 5033375 SCMA > Invoices > Make Payment using Payment Card Token > User Event Script or Workflow not triggered that is currently attached to Enhancement # 638357.
Author: Sreelakshmi R
Make Field Mandatory – Client Script
Server Side Scripts will be blocked when the field is made from the Form/Field setup mandatory. So we will make the field mandatory through the script only for those required times.
Add Prescription Table in Customer Record
A prescription is a custom record available in the system we want to show all available prescriptions for that customer. The following script creates a prescription HTML table in the customer record. The Prescription Table shows all essential data like the quantity of prescription items used in Transactions, Auto-ships, Pet & Vet details, etc. Also… Continue reading Add Prescription Table in Customer Record
Auto-Ship: Link Prescription to Auto-ship and Sales Order (Real Time)
Script handles linking prescription to line records/Auto-Ship (custom record) both with/without SO reference upon approval of prescription record(custom record); Similarly to Sales Order item Lines.
Maximum Number of Values That Would Show up on a List/Record Custom Field When Using Inline Editing
Scenario User uses Inline Editing to edit a List/Record Custom Field. User wants to know the maximum number of selections that would show up when clicking the dropdown list. Solution The limit of the number of values that would show up from the dropdown list is set in Home > Set Preferences > Maximum Entries in… Continue reading Maximum Number of Values That Would Show up on a List/Record Custom Field When Using Inline Editing
Remove Values in Custom Lists While Preserving Data Referenced in Existing Records
Scenario There are cases when a custom list value must be removed. For Custom List/Record Fields using a Custom List as its source, it is not possible to remove obsolete values that are referenced by existing records. The best practice is to set the obsolete values to inactive. To prevent data integrity issues, the system… Continue reading Remove Values in Custom Lists While Preserving Data Referenced in Existing Records
To Make Code Portable
We can create a constants library file like below and add internal ids in objects for different environments.
Autoship: Scheduled 2 pm process
Script 1: Creates Sales Order for auto-ship(custom) record. Script is powered by search which pulls all line records/auto-ship that are created inside the 2 day window ranga Script 2: Creates future auto-ship by copying past auto-ship but the new set will have different shipping dates based on frequency set on the record.
Auto-Ship Second Generation: PYMT Token
Update in script for second generation process https://jobinandjismi.in/autoship-flow-2-autoship-generation/ to incorporate payment card token addition logic as part of https://jobinandjismi.in/auto-ship-payment-card-token-updation/
Auto-Ship: Payment Card Token Updation
When payment card id is used in order, CyberSource initiates tokenization. At that time the script deployed in Payment card token record creation will find the Auto-Ship record by matching the mask value and the credit card look field key set on Auto-Ship record and updates the payment card Token field in line record/Auto-Ship