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 Answer 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.

  • Thank you @Sanket for the details here :)
    – vkm
    Jun 11, 2020 at 16:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .