7
votes
Accepted
Insert Record Dynamically from map
All SObjects offer these methods that include a put by field API name method so the values can be transferred like this:
Map<String, String> m = ...; // Could also be Map<String, Object&...
- 133k
5
votes
Accepted
Apex error: Unexpected token: Map
Try to change that to this:
Map<String, Schema.RecordTypeInfo> RecordTypeMap = DesRes.getRecordTypeInfosByName();
- 14.7k
5
votes
Accepted
How does Pardot Prospect Sync work?
Found it - at least the closest I could find:
If you're using a custom field in Salesforce on both leads and contacts, we pull the name of the Salesforce field from the contact field ID.
...
We ...
- 1,854
5
votes
Accepted
Why is my Lead Source not mapping over to Account & giving me an error?
By default, the standard Lead Source field on the Lead object is not mapped automatically to the Account Source field on the Account object when converting a lead.
Refer this help link from ...
- 6,466
3
votes
Error Notification--Can anyone tell me what this means?
The message means exactly what it says. You're trying to provide a value to a picklist which is restricted- meaning it only allows certain values. The list is specified on the setup page for the field....
- 8,666
3
votes
How to convert Related list of Lead to Accounts?
For custom related lists you have to write your own logic to transfer the related records. Either through Trigger or Process Builder.
Here are some links may be helpful to you.
Preserve Related ...
- 14.2k
3
votes
Accepted
What is the effective way to map picklist values to external system values?
Use a standard Salesforce picklist. Since Spring '17, you can now define an "API Name" and a "Label", which can be independent of each other. Your code can receive the API Name values from the other ...
- 462k
3
votes
how to insert account record that has parent account ID
Ideally you would have an External Id that you could use for the mapping instead of the Salesforce Id. If so you should just be able to use the dataloader by using the External Id.
The Salesforce Id ...
- 1,551
2
votes
Accepted
How can I filter through object using 2 separate fields as unique identifiers?
I DID IT!
As suspected towards the end of my OP, I created a separate formula field, (i.e. RS__c.Sync_Id__c), which concatenated the QB Id and the Product Id (18 character version). Once I had that ...
- 4,460
2
votes
Accepted
mapping picklist field with numbers on import
There's no way to make the transformation during import. If you were importing to a checkbox, 1 and 0 would translate to checked and unchecked (respectively), but as a picklist, they are basically ...
- 462k
2
votes
Accepted
Is it possible to map custom contact fields to opportunity fields?
Once a lead is converted to Contact, Opportunity, updates to Contact fields are not synced to Opportunity. You will have to handle that task yourself.
- 984
2
votes
Accepted
Lead:Contact Mapping in managed package
I don't actually think this is possible. I have worked on a manage package before that could have benefited from this feature. Since it was not available, we made it part of the setup process to ...
- 997
2
votes
Accepted
Process builder fails running in user context
"System mode" means that Process Builder ignores Field-Level Security (FLS). Processes and most other automations are always running in the context of a specific user, and validation rules are applied ...
- 90.1k
2
votes
Custom field mapping issue
This field mapping does not make sense in the way you've executed it. As the error indicates, you cannot populate an arbitrary string in an Id field (which is what a lookup field really is).
If the ...
- 90.1k
2
votes
Accepted
Assign row values from one object to another object as columns or fields
I hope the dayOfYear() method of Date class can help you to achieve this requirement.
As per Salesforce it "Returns the day-of-year component of a Date." First, you have to get this number (suppose ...
- 14.2k
2
votes
data import wizard map lookup field custom
My advice is to recheck below noted points properly in your org and verify it.
The Data Import Wizard respects Salesforce admins’ field access as
specified in page layouts and field-level ...
- 14.3k
2
votes
Accepted
How to insert Lookup field value in a Trigger?
There are couple of things which I think are not perfect when it comes to writing on Salesforce Platform. I will point out the usual.
Contact_Reference__c field on c2g__codaDimension2__c object is a ...
- 35.6k
2
votes
Apex class INT_InteractionProcessor error- issue with Mailing City Mapping
I think the problem lies in this line:
for (Datacloud.MatchRecord match : matchResult.getMatchRecords()) {
Contact compareContact = (Contact) match.getRecord();
I bet your duplicate rule is ...
- 8,666
2
votes
Mapping Json Array to salesforce object
First of all, your jsonString is invalid. You need to fix it first if you would like to deserialize JSON to object.
Valid jsonString would look like:
String jsonString = '{"count":6176,"...
2
votes
Accepted
Get Lead field mapping via Apex
I have found a way, how to do it through Metadata API with Apex with help of this question and @Oleksandr Berehovskyi's answer for it.
It is possible to be retrieved through Metadata API. To use this ...
- 5,906
1
vote
How to view standard field mapping and how to add custom field mapping in Email-to-Case?
There is no standard way to map custom/Standard fields in Salesforce in Email to Case.
You need to use trigger and parse the message body to get the content and then need to populate the data.
- 29.1k
1
vote
Error Notification--Can anyone tell me what this means?
There is a setting on all pick-list fields that will prevent updating/inserting records if the value of the field is not defined:
If this is checked the value entered must be defined. If it is ...
- 9,281
1
vote
Mobile Connect Import CSV File
You have the right columns based on the outline here: https://help.marketingcloud.com/en/documentation/mobileconnect/contacts/import_contacts_to_a_standard_list_or_all_contacts/prepare_file_for_import/...
- 2,359
1
vote
Accepted
How to separate the required fields from Custom Object record?
Hi here is an example which you can try it out,
Account acc = new Account(name='acc', myCheckbox__c = true);
insert acc;
Schema.DescribeSObjectResult objSchema = Account.sObjectType.getDescribe();
...
- 659
1
vote
What is the effective way to map picklist values to external system values?
1) Create a custom metadata type to store Product Information.
Let's say Product_Type_Mapping__mdt will have 2 columns:
Product_Category__c - stores SF recognizable Picklist value like. Great ...
- 35.7k
1
vote
Accepted
Populate custom Leads fields to Assets fields on 'convert'
OK, a clicks not code solution is as follows
Create new fields on Account called Asset_Staging_xxxx__c where xxxx aligns to a field on the Lead. Make these fields hidden on the page layout
Use Lead ...
- 66.8k
1
vote
Lead Field Mapping Permissions
Lead mapping is run in the system context if you are speaking of out of the box file mapping
I cannot find specific documentation stating that it will but all triggers, etc run in system context and ...
- 53.6k
1
vote
Copying custom fields from Contact to Opportunity
Why not just create formula fields on the Opportunity Contact Role object pulling the data you want from the original contact.
Then you could build a process builder that is called whenever an ...
- 11
1
vote
Accepted
Command-Line Upsert: "Internal Comments" mapping
Inside the object Case you can find the "Internal Comments" field, but if you use the corresponding API name ("Comments") you find out that you cannot use that field. The reason is simple: that is not ...
- 1,161
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
field-mapping × 69apex × 23
lead-conversion × 11
leads × 7
data-loader × 6
opportunity × 5
custom-field × 5
trigger × 4
process-builder × 3
integration × 3
picklist × 3
lookup × 3
map × 3
dynamic-visualforce × 3
marketing-cloud × 2
soql × 2
javascript × 2
community × 2
rest-api × 2
managed-package × 2
visual-workflow × 2
custom-object × 2
case × 2
account × 2
contact × 2