You need to sign in to do that
Don't have an account?
arun kumar 577
urgent requirement on contact ownerId please give me best solution
Hi guys,
I have one requirement like this. I have account that has two custom fields one is A and second one is B. now requirement is when ever any records are inserted and updated in contact then contact owner should be custom field value of A .
for example:
In account object:
account number=12345,
A__c=bobby;
once applied the trigger we need show like this
contact. ownerId=bobby;
when accountId!=null && contact.accountNumber__c==contact.account.accountNumber;
this is what i am expected from you guys.. Please help me..
Thanks advance..!!
I have one requirement like this. I have account that has two custom fields one is A and second one is B. now requirement is when ever any records are inserted and updated in contact then contact owner should be custom field value of A .
for example:
In account object:
account number=12345,
A__c=bobby;
once applied the trigger we need show like this
contact. ownerId=bobby;
when accountId!=null && contact.accountNumber__c==contact.account.accountNumber;
this is what i am expected from you guys.. Please help me..
Thanks advance..!!
Please find your required trigger code below:
Let me know if you need any further help on this. Please mark this question as Solved if your requirement is achieved.
Thanks,
Abhishek Bansal.
All Answers
Please find your required trigger code below:
Let me know if you need any further help on this. Please mark this question as Solved if your requirement is achieved.
Thanks,
Abhishek Bansal.
but I tried this still i did not get the result as i expected.
Hi Arun,
Is there any error in the code ? I have just provided you the code that will nearly achieve your requirement, if it is not working then you should do some kind of debugging and find out at what extent this code is working for you. Let me know if you need any other help.
Thanks,
Abhishek Bansal.
there is no error but i can't fetch that A__c field value as a contact owner. i dont know where it is strucking...please do this and send me as soon as possible.
thanks
Hi Arun,
What is the type of the field A__c ?
Thanks,
Abhishek Bansal.
Thanks.
If it is A__c is look up data type it will work with your code..
Thank so much Abhishek for your time.