0

I need to move data from an existing text field in opportunity to a newly created picklist in opportunity. I've never used dataloader.io before and have been reading and watching all the helpful videos and posts but have a couple of basic questions. I understand how it generally works but I need to know if my csv file can only contain the data that needs to be mapped and the record ID. (i.e., If I exported extra data that doesn't need to be replaced/mapped, can I delete it from the csv file?)

Second question is related to the record id -which for me is the opportunity ID. I'm a little confused on which field to map this to. Would I map it to the opportunity name? (or will that overwrite the name and put the ID in it's place?)

2 Answers 2

1

Irrespective of the platform, you just need to consider two important things while importing data.

  1. You have the required fields available. E.g., if you have validation rules on a field or that a field is marked as required at API level, make sure you have those in the load file

  2. And that you have the "correct" data populated in there. E.g., if you are updating a data in a numeric field and that you are sending say string, it will fail

As long as you have these two things taken care of, your loads will work fine.


As for your questions:

I need to know if my csv file can only contain the data that needs to be mapped and the record ID. (i.e., If I exported extra data that doesn't need to be replaced/mapped, can I delete it from the csv file?)

Yes. As long as it isn't really is required, you can always remove those.

Second question is related to the record id -which for me is the opportunity ID. I'm a little confused on which field to map this to. Would I map it to the opportunity name? (or will that overwrite the name and put the ID in it's place?)

No, it does not map to the Name field. Its the "Record Id", the standard Salesforce Id of the record. So if you are updating records, the Opportunity Id is the value that is used to find the respective record and make necessary updates on all other fields. Remember, the Id fields are read only, i.e., you cannot update it. And that you only require it in update scenarios as the Ids are created net new whenever you insert records.


I need to move data from an existing text field in opportunity to a newly created picklist in opportunity.

In your case, you just need to make sure you map the old field values to the newly created field, use the Opportunity Id and perform an update and that should work.

Here are few resources where you can get more details around this topic:

2
  • Thank you Jayant for the information!! I really appreciate it.
    – dromero
    Commented Sep 13, 2018 at 12:33
  • @dromero You're welcome. Hope this helps you to get started in the right direction.
    – Jayant Das
    Commented Sep 13, 2018 at 12:34
0

If I exported extra data that doesn't need to be replaced/mapped, can I delete it from the csv file?

If you don't plan on using the data in the CSV, you should remove those unused columns. This will reduce the likelihood of mapping the wrong field and decrease the loading time overall.

Would I map it to the opportunity name? (or will that overwrite the name and put the ID in it's place?)

Mapping ID to the wrong field (e.g. Name) would cause the update to fail, because without a way to identify the correct record, the system will simply reject the update. Mapping ID to both ID and Name would be the only way to overwrite the Name with the ID of the record.


Before performing any import, always do a small sample of up to 5 records before committing to the full thing. Create some records you don't care about (e.g. test opportunity records), and test the process on that data. Only when you're confident that you've made the right update should you continue with live data. Also, I suggest you keep the original, exported data in case you need something to go back to. Having a backup can be incredibly valuable in case something goes wrong. There is no "undo button" in Salesforce.

1
  • Thank you sfdcfox!! I have my data backed up as a safety net but I never thought to sample test the process. Will definitely do this!
    – dromero
    Commented Sep 13, 2018 at 12:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .