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
DeveloperSudDeveloperSud 

Not able to update parentRole for UserRole object using apex code

Hi ,
Is there anyone worked on UserRole object before.I have a requiremnt where I have to change the ParentRole for the partner users role,What I understood we can do this with userRole object but the problem is it is not allowing me to update the parentRole Id field for the  UserRole objecteven though in field description section it is showing up dateable.Anyone anybidea how that can be done? or any other suggestion?


User-added image
Abdul KhatriAbdul Khatri
Can you check this link if it answer your issue?
https://success.salesforce.com/answers?id=90630000000D2FoAAK
DeveloperSudDeveloperSud
Not helpful