Sample for Candidate Presentation: Difference between revisions

WIP: Flows
(Image update)
(WIP: Flows)
Line 33: Line 33:


When the document is loaded, the repeatable section will now only show records that have Id's contained within the custom SOQL query.
When the document is loaded, the repeatable section will now only show records that have Id's contained within the custom SOQL query.
=== Dynamic URL Parameters and Filtering Using Flows ===
Screen flows can be used to automate the URL parameter process. The SOQL queries used previously will still need to be added to the repeatable sections.
First create a new 'Screen' flow.
Add 'Get Record' elements for all of the fields you require (i.e. the core object and the fields you will use to filter). In the example below, Contact is the 'Core' object and 'Education Histories' will contain the records that will be used filter.
[[File:Screenshot 2023-12-06 at 13.21.18.png|none|thumb|Flow containing Get Record elements]]
Add a screen element which will be used to display all the records related to the object that will be filtered.
Within the screen, ddd a section component and place a data table within it (This will be used during the flow to select the records that will be filtered):
Configure the data source of the data table to come from the previously added get records element 'Education Histories':
Next, create a 'For Each' element within the flow. This will be used to combine the selected records from the previous screen.
Create a final screen which will be used to display the document link containing the document URL with the custom filter parameter
47

edits