Vlocity Facts #35 || Few Topics Related To Omnistudio

1. How many levels of sobject relationships we can query in omnistudio?
We can query up to five levels in DataMappers where we can extract the field values of the related objects. Consider below screen shots as example. 



If we try to query more than 5 levels we will get this error
ERROR at Row:X:Column:XXcannot query foreign key relationships more than 5 levels away from the root SObject 2. What is chain on step in Integration Procedure?
When an OmniScript calls an Integration Procedure Action with Chain on Step enabled, the next step of the action always runs in its own transaction.

3. How to solve uncommitted work pending error.
When we have Data Mapper post action followed by Http Action in integration procedure. When executing, it will give us an error.

Reason for this error: Data Manipulation Language (DML) actions prior to HTTP external callouts are prohibited by the Salesforce platform.
To solve this: You can activate Chain On Step for the Data Mapper Post Action if an HTTP Action comes after it and you need to make chainable or queueableChainable as 'true'.
        a. 
       
        b. From omniscript we can enable chainable for related Integration Procedure.



 


Comments

  1. Can you explain the chain on step a bit more with examples. If there are 3 steps(actions) in Integration Procedure. And if we enable chain on step on second step. What happens,which steps will be run seperate transaction?

    ReplyDelete
    Replies
    1. The action which you enabled chain on step will act as separate transaction.

      Delete

Post a Comment

Popular posts from this blog

Vlocity Facts #01 | OmniStudio DataRaptors

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

Vlocity Facts #37 || Configure Google Maps in Type Ahead Block