You need to sign in to do that
Don't have an account?
Adila Hilal 15
i have to call a apex code from Flow which will update a user profile and role based on anther object in salesforce
i am trying to write a basica Apex code for updating user profile and role id base off two text fields on user , last profile Id and last role Id.its a part of approval process process where a user submits request to get temprory admin access.after end time passes the user profile reverts back
tried to user Flow with process builder but its thrwing error.so I thought because updates involve two different objects, calling apex from process builder can makes updates easy.
tried to user Flow with process builder but its thrwing error.so I thought because updates involve two different objects, calling apex from process builder can makes updates easy.
here two different objrcts are involved, user & Admin access.i have created two custom fields on user object witl Last profile Id & last role Id that populates user last role & profile Ids.
I have used process buildet to change user profile to system admin & saving last role & profile Id values in custom fields on user object.I tried to use flow are call from apex to revert the profile back to original , but its not working.here if I call Apex from PB , it may work.
I am trying to add screen shot here. but unable to.any idea why I can not add screen shot