function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
himanshu huske 7himanshu huske 7 

Apex Devlopement Scenerio

Consider there is 1 Lac Account record in the system. Each account record has 2 child Contact records. You have requirement as to update child records address same as parent address and if there is no address populate 'Not available' string in address.
Agustin BAgustin B
Hi you could do this with a process builder, when the condition on the account is met you can update related objects in this case the child contacts you may have. If the address is blank then just put "Not Available". I assume your address is going to be a custom field because the standard cant be used this way.

If it helps please mark as correct, it may help others.
{tushar-sharma}{tushar-sharma}
Write a batch on Contact, Query Account Address fields. If Account is blank or doesn't have value in Address field then populate 'Not Available' else populate the actual address. You can create a formula field as well if you want.
Or you can import and export data using data loader too.

If this answer helps you, please mark it as accepted.

Regards,
Tushar Sharma
https://newstechnologystuff.com/
himanshu huske 7himanshu huske 7
please help me with code.. I m a beginner