Posts

Vlocity Facts #16 | Email Action

Image
 Email Action: The OmniScript Email Action uses the Salesforce Email API to either send an email template to the email address of a User, Lead, or Contact or to send an email body defined in the action configuration to any email address. The Use Template checkbox determines whether using an email template or a defined email body. If the  Use Template  checkbox is checked, the email will send a template to a user, lead, or contact. Select Email Template : The ID of the email template that should be used. Email Target Object ID : The object ID of the Contact, Lead, or User the email should be sent to. What Id : If you specify a contact for the targetObjectId field, a What Id can be used to further ensure that merge fields in the template contain the correct data.  Save as Activity : If this option is checked, the email is saved as an activity record on the recipient’s page in Salesforce. Org Wide Email Address : Allows the email to be sent by an Salesforce organization...

Vlocity Facts #15 | Radio and Radio Group Elements

Image
Radio Element:  Radio buttons let a user select one of a limited number of options. Options are displayed in a vertical list. Radio Properties: Name: The Unique Identifier of the element. Field Label: The Name visible on the UI. Required: Specifies whether it is required or not to proceed further.  Read Only: Specifies user can modify the value or not. Display Mode: How to display the values in the UI. [Vertical, Horizontal, Image, Button Group] Option Source: whether the list of options come from.  Manual: Developer need to mention the values for the element. Sobject: Retrieves picklist values from the Salesforce Object and fields. Custom: Mention the Class name and Method name. Options: To give the value and label options to choose from the UI if option source is Manual. Source: Allows us to choose Class name and method name or Sobject and Field name if option source is Custom or SObject. For Sobject in source you can mention like this:  Syntax: Sobject.f...

Vlocity Facts #14 | Integration Procedure Properties

Integration Procedure runs in synchronous or asynchronous mode ? By Default it will run in Synchronous mode. To make Integration Procedure run in Asynchronous mode, call Integration Procedures using these settings from omniscript: Use Future — Use when the calling OmniScript or Integration Procedure doesn't need a response and completion time is not critical. [Specifies that the Integration Procedure runs asynchronously, as a Salesforce future method, which can return no data to the calling OmniScript.] Invoke Mode: Non-Blocking : The Action runs asynchronously, and the response applies to the UI. Pre and Post DataRaptor transform and large attachments are not supported. Invoke Mode: Fire and Forget : The Action runs asynchronously with no callback to the UI. Pre and Post DataRaptor transforms, and large attachments are not supported. A response still appears in the debug console but does not apply to the Data JSON. ===========================================================...

Vlocity Facts #13 | Angular OmniScript Debugging

Image
When creating any interface or code, debugging and testing are crucial components. We can test from Vlocity's Omniscript Designer Preview mode to analyze the execution results.  But in some cases we need  OmniScript must occasionally be tested under same circumstances and using the same Users and Profiles as the intended users. Angular OmniScript Debugging A few methods for debugging Integration Procedures and Omniscripts for Angular while they are running and how to obtain the data that is kept in OmniScript JSON storage and the data that is exchanged with Salesforce. Before starting we need to know what is scope, bpTree, response and baseCrtl. " baseCtrl " - The "baseCrtl" angular controller defines its methods and variables. Scope -- definition of all available methods Path: baseCtrl.prototype.$scope bpTree --  the OmniScript structure definition and variables Path: baseCtrl.prototype.$scope.bpTree response -> the OmniScript JSON Data Path: baseCtrl.protot...

Vlocity Facts #12 | CSS changes to an OmniScript elements

Image
For example: If their is a requirement where you need to change the color of the button or you need to add some custom styling of the elements. instead of creating templates you can follow this approach.  For applying CSS changes to the elements all over the OmniScript. 1. Inspect the element  by right-clicking on the element and selecting Inspect. 2. Locate the Styles tab next to the Elements tab and copy the class for the element's div to your clipboard. 3. Navigate to Script Configuration > HTML Custom Templates and add opening and closing style tags <style> </style> and write CSS for the desired changes using the class that was copied as your CSS Selector. 4. Navigate back to Preview to see the changes in effect for each step. This is other example for text element, here you can see the difference between the 2 text elements font-size. This is for single element on each step. Use this code  # Text1 ~ label {       font-wei...

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 freque...

Vlocity Facts/ Resources

Vlocity Resources: Salesforce Org - Omnistudio:  Trailhead | Promo Org Signup Vlocity Org:  Vlocity Demo Org For Youtube videos: 🔸Resources 👇  Link 1  - Vlocity Tutorials By Santosh Link 2  - Salesforce Apex Hours Link 3  - 0to1 Code By Vishnu Kumar Link 4  - Tech Rakesh Link 5  - theTalkingCode Link 6 - Satyam Tiwari Tutorial Link 7 -  Sanjay Gupta Tech School For Blogs Related to OmniStuido/Vlocity: https://vlocityfactsgowtham.blogspot.com/ https://www.lopau.com/category/get-salesforce-certified/salesforce-certified-omnistudio-certified/ https://riyazusman.medium.com/ https://salesforceforever.com/ https://www.omnistudiofacts.com/blog Trailhead Modules: OmniStudio - Trailhead Link I f you have any other resources please feel free to share in comments section. Note: If you find a link that has been added by accident and needs to be removed, please comment below. I will remove that link. For more Details about DataRaptors and Types...