You need to sign in to do that
Don't have an account?
Tack
How to map field in custom object to field in standard object
Hi,
I'm working on development custom object integration app.
I can implement below code in apex.
The app users are not able to change mapped fields...
Even though I provide mapping rule on GUI,
I can not implement the code.
My above idea is similar to general feature "Map Custom Lead Field".
https://help.salesforce.com/apex/HTViewHelpDoc?id=customize_mapleads.htm&language=en
Could you please provide your sample code or reference?
Thanks,
Tack
I'm working on development custom object integration app.
I can implement below code in apex.
Lead lc1 = new Lead(); lc1.Company = HogeObjectSelects[idx].record.Name; lc1.LastName = HogeObjectSelects[idx].record.LastName__c; lc1.FirstName = HogeObjectSelects[idx].record.FirstName__c; lc1.email = HogeObjectSelects[idx].record.EmailAddress__c; lc1.Status = 'Open - Not Contacted'; lc1.OwnerId = HogeObjectSelects[idx].record.OwnerId; upsert lc1;sure, this is hard-code.
The app users are not able to change mapped fields...
Even though I provide mapping rule on GUI,
I can not implement the code.
My above idea is similar to general feature "Map Custom Lead Field".
https://help.salesforce.com/apex/HTViewHelpDoc?id=customize_mapleads.htm&language=en
Could you please provide your sample code or reference?
Thanks,
Tack
So in the end you have 2 new objects and a few fields.
Let's say we have a Custom Object called "Prospect__c" and we want to map it to "Account"
- Create new Object Mapping record:
-
So now, you can reference that Object_Mapping__c object in Apex to get the field mappings for the Prospect__c object. Whether it be in a trigger or a custom VF Admin page.This is what was added:
It's really great support!!
I'm working the implement based on your sugguestion.
I'll get back to you when I can implement what I want.
Regards,
Tack
In Object_Mapping,
I tried to define below List in order to get mapped object list. Following error message is displayed. Could you please let me know how to use Object_Mapping__c.Target_Object__c as sObject??
Regards,
Tack