Vlocity Facts #11 | Best Practices of OmniScripts, Integration Procedure, Data Raptor
Best Practices of OmniScripts:
- Provide the proper Name for elements without space.
- Need to Add Internal Notes to the OmniSscript Elements.
- Avoid assigning or using a ContextId Within Omniscript.
- When process are repeatable across multiple omniscripts, create a reusable OS and add it in parent OmniScript.
- Reduce Conditional Views, Merge Fields, Formulas where possible in OmniScript to avoid loading.
- Reduce the number of elements in the script. A single OmniScript should not exceed 200 elements.
- Remove the inactive elements.
- Pass the required Input JSON to Integration Procedure instead of Passing full JSON.
- Instead of using multiple actions on OmniScript use Integration procedure.
Best Practices of Data Raptor:
- Try to keep the number of SObjects to three or fewer.
- Use relationship notation (queries) whenever possible to pull data from other SObjects.
- Ensure that all filtering and sorting (ORDER BY) operations are on indexed fields.
- Use caching to store frequently accessed, infrequently updated data
- Create targeted Data Raptors that only extract or load the data needed for one operation.
Best Practices of Integration Procedure:
- Use a Response Action to trim the data and only return what is needed.
- To run data operations asynchronously, call Integration Procedures using these settings: Use Future, Invoke Mode: Fire and Forget & Invoke Mode: Non-Blocking.
- Use caching to store frequently accessed, infrequently updated data.
- Use Integration Procedures for all data calls to Salesforce.
Use multiple Response Actions with different Execution Conditional Formulas to allow an Integration Procedure to exit early under appropriate conditions.
=========================================================================
Comments
Post a Comment