cancel
Showing results for 
Search instead for 
Did you mean: 

How to update the user LoginID from external system

0 Kudos

Hi,

we have a requirement to update the email of the user from external system which is salesforce. But to update the email or adding login emails we need UID as a parameter in the accounts.setaccountinfo REST API. but how the external system will get this UID of the user in order to add the email.

0 Kudos

Thank you so much for your detailed solution. It really straight forward and easy to understand. Thanks for your effort and time.

Accepted Solutions (1)

Accepted Solutions (1)

romaingorrias
Advisor
Advisor

Hey Maheswari, though as Pedro highlighted, making sure that the downstream application (in this case Salesforce) has the Customer Data Cloud UID is the best practice, I just thought I'd highlight a couple more options:

  • You can retrieve the list of identifiers for an account using other identifiers with accounts.identifiers.find
  • Coming soon, you will be able to use Custom Identifiers with the get / setAccountInfo APIs (and later as login idenfiers)

Answers (1)

Answers (1)

samuelyang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Maheswari,

Apart from Romain's options, another straightforward way is like this:

Before sending accounts.setaccountinfo call, the user could login on salesforce through SAP CDC, that means you can first ask the users to login on salesforce app by sending a CDC account.login call, which then gives you the CDC UID in the response payload. Now that you have the UID, you can call accounts.setaccountinfo to update the users account data in the CDC.

Hope that helps.