Let's see how to configure the Action element and read its output JSON in the FlexCard.
1. On the Flexcard add an action element.
2. Configure the element as below:
Select “Action Type” as Card >> Select “Type” as Update Datasource >> Select Apex Remote as Data Source Type ( we can select any Data Source Type based on the requirement).
3. Selecting the Type as Update Datasource is important in order to update FlexCard’s data JSON with the output from the action.
So, in this example, the output from the apex class will be added to the FlexCard’s data JSON.
4. In the above example, the “result” node is an output of the apex class which will be updated in the FlexCard’s data JSON and can be used on the FlexCard.
תגובות