I have a custom entity with several relationships to other entities, and I'm looking for how to get to those related entities in flow.
Details: We have a custom entity "Customer". Each Customer instance has a lookup field for our custom Country entity. Finally, We have a "Market Region" entity (North America, Asia Pacific, etc). Every country is associated with a Market Region (Canada -> North America; China -> Asia Pacific). Also, there is a list of approvers based on the market region that a country is in.
We have a flow that is triggered by the creation of a Customer. In that flow, we want to be able to get the approver emails based on the country that is selected in the lookup field in Customer. So following the picture below, if a user was to create Buttons Inc. and select "USA" in the country lookup, the flow would basically trace up to see that USA is related to market region "North America", and that the approvers for North America are John and Mary. Then, using the flow action "send email", Mary and John would be sent emails to alert them that a customer was created in their region.
Thanks, and let me know if you need more details.
Hi @Anonymous,
You can use Get record and List records actions to get the approver email, maybe you need to combine with condition action or filter array action.
About how to get record from CDS entities, you can refer to this post:
I hope it can help you.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
34 | |
21 | |
18 | |
14 | |
11 |
User | Count |
---|---|
26 | |
20 | |
19 | |
14 | |
13 |