1

Is there is a way to stop / add error from contact trigger when a user try to create a partner user from contact ?

I would like to add error in case certain field say firstname is missing on contact, then block enabling that contact convert to a partner user.

1

Contact trigger will not fire when you enable contact as portal user. I have checked it by creating a trigger on contact and enabled contact as a portal user. The last modified date remains the same.

enter image description here enter image description here enter image description here

You can write validation rule on the User object or trigger on the User object.

1
  • Thank you @Sanket for the details here :) – vkm Jun 11 '20 at 16:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.