You need to sign in to do that
Don't have an account?
Bryan Leaman 6
Trigger can no longer change user role in Winter 2022?
We have a trigger that changes a user's role based on changes made to the User.Division field, but as of Winter 2022 it is no longer working.
I've added debug statements and I see that the code is assigning a new role id to the user record in a before update trigger context on the user object, but that change is no longer being saved to the user record.
Can anyone else confirm this? I haven't found an open issue yet and salesforce support doesn't help us at all when custom code is involved.
I've added debug statements and I see that the code is assigning a new role id to the user record in a before update trigger context on the user object, but that change is no longer being saved to the user record.
Can anyone else confirm this? I haven't found an open issue yet and salesforce support doesn't help us at all when custom code is involved.
Abhinav (Salesforce Developers)
Please provide sample code snippet as well so that we can check if its breaking at our end or not.
Bryan Leaman 6
Bryan Leaman 6
If anyone else is interested in this issue, the way I finally had to work around this issue was to generate a platform event for the update and the platform even trigger handler accepts the event and is able to update the user record, so it's still happening in real-time with the request rather than trying to run it @future without sharing (not sure if that would've worked or not).
Noah Corlette
Thanks for your answer, I am also having the same issue and I want to get rid of this problem. So, I started searching for it online and I am glad I have found your post. Today, I have also found my other solution over https://www.topessaywriting.org/samples/geology here. Because I want to write an essay and I need some help.
Big Baby Tape 7
I recently needed to write an essay, only there was no way to do it myself, so I had to use essay writing services. You can go to the link https://australianwritings.net/nursing-assignment-help/ and find out more about this service, the experts are great at writing essays. I think this is exactly what you are looking for.
Big Baby Tape 7
I recently needed to write an essay, only there was no way to do it myself, so I had to use essay writing services. You can go to the link https://australianwritings.net/nursing-assignment-help/ and find out more about this service, the experts are great at writing essays. I think this is exactly what you are looking for.