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

 1.The parameters in the URL must be in the format c__Node, followed by their values, in order to extract the parameters from the URL.

For example: If you need to show different layout or different set of actions for community users and salesforces users you can pass different parameters in URL.

  • For Community Portal Pass Community or any other reference value in 'c__Type'. https://salesforce.lightning.force.com/lightning/cmp/omnistudio__vlocityLWCOmniWrapper?c__target=c%3ApHXTestFlexCard&c__tabIcon=custom%3Acustom18&c__Type=Community 

  • For Salesforce Users Pass Salesforce or any other reference value in 'c__Type'. https://salesforce.lightning.force.com/lightning/cmp/omnistudio__vlocityLWCOmniWrapper?c__target=c%3ApHXTestFlexCard&c__tabIcon=custom%3Acustom18&c__Type=Salesforce 

2. We can get the value as {Params.c__Parameter} from the FlexCard and we can execute different actions based on the input.

3. From the omniscript, we can retrieve the value as %Parameter% So, as per the above example, we can retrieve the values as %Type%.




Comments

  1. How can we pass parameter in community page URL so that Omniscript on that page can pick up that parameter?

    ReplyDelete
    Replies
    1. Refer this link: https://help.salesforce.com/s/articleView?id=sf.os_navigate_to_a_named_page_or_community_named_page.htm&type=5

      Delete

Post a Comment

Popular posts from this blog

Vlocity Facts #01 | OmniStudio DataRaptors

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