+ Start a Discussion
deepshikha shriwas 4deepshikha shriwas 4 

Flow to update User field based on Userterritory2Association object


I need a small help with regards to creating a flow.
I have a custom field on user object- Primary territory which is manually populated at present.I need to autmate this.
when a user is assigned to a territory, the association is stored in user territory2association object.when this is created , the value on user object should be populated with the territorylabel automatically.
How can we implement this in flows.
Also, rare chance but there can be a case where in the user deletes the exisiting territory and assign a new territory to the user. In this case, the primary territory should also be updated.

Could you please provide a walkthrough on how to create a flow for this.