You are here:
Configure a Record Triggered Flow
Create a fast record-triggered flow to assign the default visit template and place ID before the visit creation. This approach assumes that you can stamp default values to the Record Id and Visit Template. You can change the custom settings and update this flow accordingly.
- From Setup, go to Flows, and then click New Flow.
- Select Start From Scratch, and click Next.
- Select Record-Triggered Flow, and then click Create.
- Configure the Start
page.
- Select Visit as the object.
- In Trigger the Flow When, select A record is created.
- In Set Entry Conditions, select None.
- Optimize the flow for Fast Field Updates.
- Add an element after the Start element.
- Click the + icon, and select Update Records.
- Add a label and API name for the element.
- In Set Filter Conditions, select Custom Condition Logic is
Met.
Condition Entry Condition logic 1 OR (2 AND 3) First condition WA_AdvRouteWaypoint__c IS NULL False Second condition PlaceId IS NULL True Third condition cgcloud__Visit_Template__c IS NULL True - Set
field values.
Field Entry PlaceId $Setup.VisitMapsDefaults__c.DefaultPlaceId__c RecordTypeId $Setup.VisitMapsDefaults__c.DefaultRecordTypeId__c cgcloud__Subject__c $Record > Account Id >> Account Name cgcloud__Visit_Template__c $Setup.VisitMapsDefaults__c.DefaultVisitTemplateId__c - Enter a flow label and flow API name and then save your changes.
- Activate the flow.

