Posts

Showing posts from February, 2026

Vlocity Facts #56 || Different Ways to Call Apex Class in DataMappers

Image
If we need to call a apex class from omnistudio we need to follow these steps Apex Class should be global with sharing to follow all the sharing settings. The Apex Class must implement the Callable or PackageName.VlocityOpenInterface,[vlocity_cmt.VlocityOpenInterface] interface. You must override the invokeMethod, which takes the following parameters  String methodName  Map<String, Object> input  Map<String, Object> output  Map<String, Object> option Create apex class with above details  Now we can call this apex class in 2 ways in DataMapper We can call this apex in DataMapper by using FUNCTION()             FUNCTION('apexClassName','methodName',%Input%) This approach we can do if we are having the vlocity_cmt package or managed package. We can create a custom metadata record from Setup -> Custom metadata -> search for "Function Definition" and click on "Manage Function Definitions"  Create new rec...

Vlocity Facts #55 || Generate Unique Numbers in OmniStudio Using Omni Global Auto Number

Image
Omni Global Auto Number Omni Global Auto Number enables you to generate unique, consistent numbers for records such as sales orders, cases, loan applications, and other business entities. The numbering system can be customized using attributes such as increment value, padding, minimum length, prefix, and separator. Once configured, global auto numbers can be referenced in Data Mappers and Integration Procedures using the GLOBALAUTONUMBER function. Enable Omni Global Auto Number To use Omni Global Auto Number, you must enable the feature in OmniStudio Settings. Prerequisites Your org uses the standard data model. The custom object GlobalAutoNumberSetting__c does not exist. The Omni Interaction Configurations RollbackIPChanges and RollbackDRChanges are disabled. Create, edit, and delete permissions for the Omni Global Auto Number standard object are granted to OmniStudio Admin and User profiles. ---------------------------------------------------------------------------------------------...