top of page
OmniStudioFactBg.png
Search

Flexcard Datatable in Omniscript

  • Writer: Puja Kumari
    Puja Kumari
  • Sep 14, 2023
  • 1 min read

When we want to use dataTable inside an omniscript and then pass the selected data in the dataJson.


Here are the steps to achieve this:


1) Create a Flexcard and drag the dataTable element into it.


2) When we click on each checkbox, it fires an event “selectrow” (this is the standard event name, which we must use exactly to listen to it). To listen to this event, we will create an LWC.


3) In the selectedRows array, we will contain all the selected rows. Finally, using the omniApplyCallResp() method, we will set them back to the omniscript JSON.


4) LWC HTML will include the flexcard that contains the added dataTable.


5) Finally, we have to add LWC in the Omniscript.


On Preview, we will be able to view the dataTable and when we select it, it will be added to the DataJson.


 
 
 

Recent Posts

See All

Comments


OmniStudioFactFooterBg.png
logo.png

OmniStudiofacts helps us to build a Vlocity/OmniStudio Tech Community which focuses on sharing technical skills and experience across the globe.

© 2023 by OmniStudioFacts.

bottom of page