cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Remove managerId in salesforce

kgopalak
Deputy Chef I
Deputy Chef I

Hi,

Based on the employee data, I am working on an automation to keep the Salesforce User objects up-to-date. When a manager changes, I can look up if that manager is a Salesforce user and able to update the User object. However, when the manager is not a Salesforce user, I would like to remove the managerId, but am unable to do so. Does anyone know how to resolve this?

 

1 REPLY 1

Prudvi
Executive Chef II
Executive Chef II

Hi @kgopalak,
Could you please confirm if the ManagerID field is mandatory on the user object.
If not, can you perform the following steps.
1. Get the user details which contains ManagerID
2. Search for the ManagerID in the Salesforce list.
3. You can use If/Else and update the ManagerID value on the user field.

Regards,
Prudvi