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.

=========================================================================

  • For more Details about DataRaptors and Types check this link DataRaptors
  • For OmniScripts elements refer this link OmniScript Elements -1
  • How to launch Omniscript in difference ways Launch Omniscript
  • Resources: Vlocity Resources
  • How to use Custom CSS in OmniScript
  • Debugging Angular OmniScript. 

  • Comments

    Popular posts from this blog

    Vlocity Facts #01 | OmniStudio DataRaptors

    Vlocity Facts #34 || Getting the details from the URL in a FlexCard and an Omniscript

    Vlocity Facts #44 || Communication between Omniscript and Flexcard [Pub/Sub]