You need to sign in to do that
Don't have an account?
Jasril Dane Caliwag
hi all, i want to create a code after insert with a condition that if the Owner is equal to "WOWLink Site Guest User" , it will change the owner to "SELECT Id from User WHERE Profile = 'API Only' AND Role != null" someone please help me out
here is the after insert code in my account trigger handler:
please help me out
public override void afterInsert(){ String childTransferUser = JSON.serialize(trigger.New); if(!Test.isRunningTest()){ childAccount(childTransferUser); } createAccShare(Trigger.New); //Check if owner is WOWLink Site Guest User //if yes change the owner to SELECT Id from User WHERE Profile = 'API Only' AND Role != null }
please help me out
Raj Vakati
Sample code is here .. You need to use before insert to assign the owner