You need to sign in to do that
Don't have an account?
Force.platform
trigger to get user name into text field
i want to write trigger to popolate account owner name into SalesRep__c(Text) field on the account object.
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
data type: text
formula: Owner.Username
i tried this,
trigger AccountTrigger on Account (before insert)
{ for(Account a : Trigger.New)
{ a.SalesRep__c = a.Owner.Name; } }
but it's showing Owner Id into salesRep__c field. i want Owner name.
Do use this code.It should work. Let me know if you face any issues or need further help .
Thanks and Regards,
Shiva RV