Posts

Showing posts from February, 2023

Vlocity Facts #18| How to Fetch RecordType id, DeveloperName by using DataRaptor or Query function in formula tab

Image
In real time scenarios we need to get the recordtype name or id related to a record or based on record type we need to conditionally execute some actions or display elements.  By Using DataRaptor extract we can fetch the recordtype id or Developername.  Three ways to fetch the recordtype id or DeveloperName   1. In DataRaptor Extract from extract tab choose RecordType and configure with filters  In ReccordTypeName you can configure with your requirement, or you can create setvalue and pass the setvalue element name to the Datasource in DataRaptor like this you can reuse the DR. 2. We can write query on recordtype by using formula tab in DataRaptor. For example, In the above screenshot by using Query function I'm getting recordtype id from Formula result path we can use that name in datajson, reference for other elements, conditional view. 3. Based on recordId (contextId) we need to get the recordtype of the particular record by using Dataraptor we can fetch the recor...

Vlocity Facts #17 | How to Delete a record from the flexcard Datatable

Image
Flexcard Datatable:  Datatable is used to display a tabular structure of data fetched from a data source on a flexcard.  For example: Displaying Contacts and opportunities details related to Accounts. Let us consider a scenario where user need to delete contact or opportunity records related to accounts and display in tabular structure. 1. First, we need to create flexcard by using datatable and datasource as Dataraptor or Integration procedure...etc 2. After creating flexcard with datatable, navigate to datatable properties under attributes check[true] the row delete check box.                Now you can see the delete icon in the datatable. 3. We need to trigger a custom event when user clicks on delete icon. For that navigate to setup and click Add New for Event Listener.                                     Choose Ev...