+ Start a Discussion
Prueba HotelBedsPrueba HotelBeds 

How can I make some actions when Disabling a Portal User


I have tried to use the trigger on user for make that action but when I choose Disabling a Portal User from the layout of the person account it doesn't seem to enter in the trigger, I think this is some kind of special update but I want to know if there is some way to update a field from another object when Disabling a Portal User. Thanks
Best Answer chosen by Prueba HotelBeds
Virendra ChouhanVirendra Chouhan
Hi Prueba,

A Portal user record is an Account record hence when you are disabling a Portal User then the Account Object trigger is fired.So you can write trigger on Account object and check if "IsPartner" or "IsCustomerPortal" field are false then do some action.