Want to update opportunity territoryid(Lookup) base on territory(Text) assigned to associate account
There is a text field called Territory Name on the account object and another lookup field called TerritoryID on the opportunity object. The junction object is called an object territory association object. when the account field Territory Name field had territory automatically assign that territoryid to opportunity territory id field with the help of object territory association junction object. Give the salesforce flow for the above requirement. Below is the flow that I implemented.
Hi @Eric Praud,
One account had only one territory. Object territory junction object had a relation between Account and territory object. The territory object, had the data of territoryId field (lookup) which is in the opportunity object and territoryname (text)field which is in the account object.
We already created the record trigger flow on the opportunity object. The account is created without assigning territory. then associate opportunity also doesn't have TerritoryId.So we created the above flow. But it's now working for bulk records.