Avoid Hardcoding User in Flow #inSalesforce

Avoid Hardcoding User in Flow #inSalesforce


To avoid this, filter to get the user based on the proper criteria using getRecord element.


Create a record-triggered flow, object - Opportunity, Action, and Related Records

Get Element: getUser, Object - User, Criteria - Alias equals xyz, isActive equals True, plus any additional criteria to filter it well

Decision Element: If Stage equals Need Analysis

Assignment: OwnerId = getUser.Id

Update Element








Comments