Can we overwrite the system fields (created by, created date, updated by, etc) with the input value from transform map
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2016 03:18 AM
I am bulk importing historical Incidents. As per the client requires the created date should be back dated to the original date provided in the excel. However even though I mapped the fields properly, the created by and created date is taken as the user who is doing the action. I was able to map system fields and update via tranform map in User table. Only for incident table it doesn't seems to work? Has anybody faced this issue before ?
Regards
Uday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2016 04:07 AM
I don't have experience with this, but I can think of 2 things I would try in your situation:
- When you create a Transform Map, uncheck 'Run Business Rules'
- Click run script and try the following script:
(function transformRow(source, target, map, log, isUpdate) {
target.autoSysFields(false);
})(source, target, map, log, action==="update");
Not sure, whether it will still run the normal mapping if you run that script, but putting autoSysFields to false, prevents the system from writing the fields created, etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2016 06:40 AM
Hi Peter
I tried both option, It did not work for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2016 04:17 AM
Yes you can. Question is whether you should do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2016 04:28 AM
In this case, he obviously should do it or his reports would all be incorrect and misleading. So could you provide with the solution, how he could do so?