Import Table with all fields of Target table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2016 08:50 AM
Hello!
I have a question.
Is that possible to create Import Table with all fields of Target table?
For example, I have change_request table as target for my Import Table. Now, my table extends sys_import_set_row.
I inserting data into my Import Table using REST API. Previously we used change_request.do as endpoint to insert Change Requests directly.
Now we're moving to Import Tables and Transform Maps and we need to have possibility to use all fields that present in Change Request table by default.
Also, we want to avoid manual field creation.
Is there a way to create in my Import Table automatically all fields that present in the change_request table?
Or how it should be done properly?
Thanks.
/Dmitriy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2016 08:58 AM
The only way off the top of my head I can think of to do this is to either create them all manually the first time and then create a business rule on sys_dictionary to keep up on it or write a script. You are still going to have differences because the import table is always going to have a u_ in front of the column name.
Is there a reason you want to switch from how its being done now?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2016 09:10 AM
Certification reasons. We have both: scoped application and integration application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2016 04:25 AM
Hi Dmitriy,
Yeah, you can create a import table with all fields from target table.
Follow the below steps.
1. List the table record. by tablename.list
2. Add all column which you want from personalize list.
3. Right click on form header and export in csv or other format as per your wish.
4. Exported file will have all column, remove the earlier data and feed the data in it.
5. Create a import set table by loading the data into new import set table.
6. Map the all column present in import set table to target table.
Note- You will have to make a extra effort for the reference field etc.
Hope this helps.
Regards,
Atul Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2016 02:55 AM