You need to sign in to do that
Don't have an account?
Prem Chauhan
how to reference user lookup field ID on account from contact in the Batch Apex
Object: Account
Field: 1:- field A 2:- field B
Object: Contact
Field: Contact: Field C
When entering in Field A then Field B will get Automatically update as Field A
Then in Contact Object which is related to This Account
Then Field C will also get Update as Field A
When I run the batch.
Example:
Account Name = Test1
Field A = Test
Field B = Test (Same as Field A)
Inserted Contact Related to Test1 Account
Contact Field: Field C = Test
Many Thanks :)
how to reference user lookup field ID on account from contact in batch apex
how to reference user lookup field ID on account from contact in the Batch Apex
Object: Account
Field: 1:- field A 2:- field B
Object: Contact
Field: Contact: Field C
When entering in Field A then Field B will get Automatically update as Field A
Then in Contact Object which is related to This Account
Then Field C will also get Update as Field A
When I run the batch.
Example:
Account Name = Test1
Field A = Test
Field B = Test (Same as Field A)
Inserted Contact Related to Test1 Account
Contact Field: Field C = Test
Many Thanks :)
You can create a formula field in Contact object that refers to field A/B value. Then you just need to include the formula field in your contact query. Alternatively, you can do that in SOQL: Select Id, Account.FieldA__c from Contact.