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
venk1255venk1255 

How to fetch the values of other object fields?

Hi  i have a 2 objects ,PO and  SS, i want to populate the values of SS object into PO ?

 

Any help would be appreciated.

 

 

Thanks In Adavance .

 

 

 

Cloud CredenceCloud Credence

Hi,

 

Two steps

 

Existing Data

           Use Apex Data Loader, extract all data from source object.

           Insert into target object

 

Any new data/updates

          have some Unique id field in target object(that refers to source object record).

           Write a trigger in source object, on after insert, after update

                         upsert.

            Pls test inserting/updating using data loader to make sure that works after the trigger, and identify the batch size it works without hitting governor limits.

 

Best Regards

 

 

venk1255venk1255
Thanks For your reply

My Requirement In SS Object having address fields i want to populate this field values in to PO Address field values.

venk1255venk1255

Thanks For your reply

My Requirement In SS Object having address fields i want to populate this field values in to PO Address field values.

Rahul SharmaRahul Sharma
Please elaborate a bit, it would be more useful for us to help.
S DigalS Digal

 

 

 

Hey

 

You can try this, if it makes sense.

 

If your PO and SS objects are associated with Lookup relationship, then you can try with cross formula fields provided you are not going to use PO ‘s address fields anywhere else in your application.

 

Ex:- PO (Object) ---> Address__c Custom Field (Formula as data Type) – Return Type(Text) - Reference (SS.Address__c)