Creating a Lead using Rest API by stamping the CreatedBy field with some other Active username
Our Business Requirement is to Create a Lead using Rest API call where the CreatedBy field is to have a different valid Resource user name instead of the Integration user with which API call is being invoked.
Now, when we are creating a lead using Postman tool and passing CreatedBy field value with a different UserName, we are getting the below Error :
"Attribute Created By in view object Sales Lead cannot be set."
How this can be achieved to have a different valid CX user name (instead of Integration user), while creating the Lead using Rest API.
In the Below Screenshot, the CreatedBy is expected as "TestUser@xyz.com", while the API is being invoked using a different system Integration user.
Tagged:
0