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
Sainath VenkatSainath Venkat 

Custom metadata for field mapping

Hello Everyone, I have two objects
1) Structure__c
2) Agent__c
here structure is the parent and agent is the child object, whenever structure is updating then I need to capture old field values and needs to create record in agent object which can be achieved with trigger.
but now the issue is we want to give field mapping option to end user which I think can be done with custom metadata

Can anyone explain or example code to do field mapping dynamically with custom metadata please.
Maharajan CMaharajan C
Hi Sainath,

Try like as mentioned in the below link:
https://developer.salesforce.com/forums/?id=9060G0000005YEDQA2

Thanks,
Maharajan.C