You need to sign in to do that
Don't have an account?
Skrzynia
Set contact as primary if value of field is bigger than another one
Hi.
I'm new in apex and I need help :).
I have an value field in Contact Object and I need to set primary contact for Account whose value is bigger than another contacts value fields;
For Example
Contact1 has value field = 1;
Contact 2 has value field = 2;
i need to make Contact 2 as a primary contact for account;
Thanks for help.
I'm new in apex and I need help :).
I have an value field in Contact Object and I need to set primary contact for Account whose value is bigger than another contacts value fields;
For Example
Contact1 has value field = 1;
Contact 2 has value field = 2;
i need to make Contact 2 as a primary contact for account;
Thanks for help.
Below sample code will help you,
* This is just a sample code. Please modify as per your requirement.
Thanks,
Govindaraj.S