function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
viv1viv1 

Change contactId of user ???

is there any way i can change contactId of user which is already created ?? not while creation of user.......
Avidev9Avidev9
Probably not!
The field is not writeable and is only allowed at the time of creation.
Satish_SFDCSatish_SFDC
ID is read only.
Why do you need to change the ID. Please post the Use case. Probably there are other alternatives.

You can clone the record and delete the original record though. But you will have to manually update all lookup references to this record.

Hope this helps.

Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.
Avidev9Avidev9
Well its ContactId field of user.
Lookup to contact for portal user.

I don't think that is at all can be updated.

Properties
Create, Filter, Group, Nillable, Sort
viv1viv1
my use case is : i already have a contact which is referred in many custom objects.... a new user registers ... i want that user to be linked with this contact.. i cant do this during registration... and i dont want to change all refrences to my old contact with this new user contact ...
so what should i do..
Avidev9Avidev9
Well I am confused with your requirement. Whenever a new user registers you want to do this ? I mean you want to link to existing contact ?