In the Transform script ON COMPLETE, how to get target's records?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2022 04:36 AM
I want to update target table's many records, use for or while? how to write script? thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2022 04:43 AM
Hi,
are you importing data from an Excel Sheet ? or can you please describe your requirement in more details ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2022 06:34 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2022 06:55 PM
So why you are using Script Automatically it will get add through transform map just make Sys Id field as coalesce so for every new sys_id it will create new record.
- go to system import sets-->load data module
- enter table name..chose file(.xls file) make sure 1st row in excel match fields in your destination table.so it will automap.
- then click on create transform link
- give it a name,select destination table(table in which u want to upload data)
- click on auto map matching fields..if required fields do not match then click on mapping assist and match fields.
- set colesce true to any one field from related list. it will be your unique field
- click transform
Let me know if u face any problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2022 06:53 PM
I use the below code,but it didn't work? Is it wrong?
for(var i in target){
i.u_insysid = 1;
}