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
Bharat KumarBharat Kumar 

Salesforce to salesforce using apex

Hi,

 

I need to keep one org as master org and another one is child org.

 

If I created an object or a field in child org, this should be copied to master org.

 

Help me out how to do this.

 

THank you

 

 

Tim BarsottiTim Barsotti

What's the business case for this? Would standard SF2SF connector work? 

 

If you wanted to accomplish this, please review the metadata API documentation. You would need to create a webservice to query the metadata api on a scheduled basis and make any changes needed. 

Bharat KumarBharat Kumar

Hi,

 

Thanks for your reply

 

Standard salesforce connector doesn't work for this.

 

I need to get the object schema from a slave org to master org.

 

I don't how to use metadata api. could you please suggest on this.

 

thank you

Tim BarsottiTim Barsotti
SaraagSaraag

Can you do a managed package?

 

One other way I can think of is to have a development cycle change, create objects in eclipse and everytime you add a new field in UI refresh objects in eclipse->check into source repo->use contrinous integration tool like cruise control to continously build the changes to the child org. I would probably not do this in prod environments though.

 

Saraag