You need to sign in to do that
Don't have an account?
arun kumar 577
Hi guys, I have urgent requirement please help me on this
I need to write trigger on contact to update owner of contact using this conditions
I just give example:
In contact:
Account number__c=12345;
In Account :
AccounNumber= 12345;
A__c=112-bobby;
Here A__c is text data type.
112 is the employee number field value in user object;
Bobby is username of 112 of employee number;
Once trigger is applied what we have to show
Which user has 112 of employee number that user should come as contact owner.
112 is part of A__c field value.
In user:
Employee number =112;
Finally
First condition is when contact. Account number=account.account number;
Based on this we will get account
Based on that account we have A__c field.
In this field we have employee number -user name.
Like this
112-bobby
Please let me know if you have any queries
Thanks
I just give example:
In contact:
Account number__c=12345;
In Account :
AccounNumber= 12345;
A__c=112-bobby;
Here A__c is text data type.
112 is the employee number field value in user object;
Bobby is username of 112 of employee number;
Once trigger is applied what we have to show
Which user has 112 of employee number that user should come as contact owner.
112 is part of A__c field value.
In user:
Employee number =112;
Finally
First condition is when contact. Account number=account.account number;
Based on this we will get account
Based on that account we have A__c field.
In this field we have employee number -user name.
Like this
112-bobby
Please let me know if you have any queries
Thanks
Please find the required code of your trigger below:
Please let me know if you have any issue in this.
Thanks,
Abhishek Bansal.
All Answers
Below is the Trigger code which will work for your requirement as-is.
Please mark as solution if it really helped you..
i got this error from this code Please can you reslove and send me code
Please share complete setting of this field
i got this code without error but i didnot achieve my requirement with this code.
can you please see once and share code.
A__c is text data type
Thanks
+91 966 33 11 740
Please find the required code of your trigger below:
Please let me know if you have any issue in this.
Thanks,
Abhishek Bansal.