You need to sign in to do that
Don't have an account?
ravi1234.ax1565
trigger
hello group ,
can we create a user using trigger, if possible how ,
if not why?
help full to me if any code references
thanks for giving reply in advance
thanks and regerds
Ravi,
You can store value which are required to create a user record on a custom object and then on the on insertion of record of that custom object,you can populate the fields for user record and create a user record.
Basically,you can write a Trigger on custom object and populate the fields for user record and then can insert the record.You can try below sample code for your reference which you can use in your Trigger:-
All Answers
There is no ability to create a user via a Trigger functionality.
Triggers are invoked upon Inserting or Updating database objects.
There is a way to create users using SOAP and REST API by assigning a role and profile if you are looking for an automatic way of creating User.
Ravi,
You can store value which are required to create a user record on a custom object and then on the on insertion of record of that custom object,you can populate the fields for user record and create a user record.
Basically,you can write a Trigger on custom object and populate the fields for user record and then can insert the record.You can try below sample code for your reference which you can use in your Trigger:-
thanks and regards