-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Optimizing Salesforce Industries Solutions on the Vlocity OmniStudio Platform
By :

We can use custom functions in our DataRaptor and Integration Procedure formulas that will call Apex code implementing our custom function logic.
OmniStudio Standard or OmniStudio for Vlocity?
Custom functions features are different between OmniStudio Standard and OmniStudio for Vlocity. See earlier in this chapter on how to tell which OmniStudio edition you are running.
While the OmniStudio for Vlocity edition allows you to use custom metadata types to define custom functions (https://help.salesforce.com/s/articleView?id=sf.os_define_the_metadata_for_the_custom_function.htm), with OmniStudio Standard, you will need to pass the Apex class, method, and input data directly into the function. Examples in this section are using the syntax for OmniStudio Standard.
This best practice goes along the same lines as the ones we saw in Chapter 9, Improving the Performance of the Service Layer, where we looked at trimming the response JSON. We...
Change the font size
Change margin width
Change background colour