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
Sathiskumar ShanmugamSathiskumar Shanmugam 

Relationship between two custom objects

Hi,

 

Am having two custom objects assume A and B. If i create new custom field in Object A means the same field should be create in Object B also. I may select any available datatypes while creating field in Object A, but it should be create in Object B as Checkbox field only. Is there any way to make relationship between objects to achieve this.

 

If it can be done by using VF page means, please post some sample codings.

 

 

 

Thanks,

 

Jeff MayJeff May

You cannot create custom fields using Visual Force since they are metadata.  You would need to use the metadata API and write a user interface to allow the custom object construction you describe.

 

Sathiskumar ShanmugamSathiskumar Shanmugam

Thanks Jeff,

 

Could you please provide me some useful links/piece of sample code, how to using metadata API. so that it will be useful for me.