Auto-import attached file from RITM Table into target table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2024 11:08 PM
Hello Everyone,
Does anyone here already done, import an attached CSV File from RITM Table in to Target table? We are creating one service request with CSV attachment from portal and from RITM number trying to import attached CSV file into Target Table 'cmdb_ci_outage' .
Thank you in advance.
Thanks
JM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2024 12:28 AM
Hi @jyotimalhot
You can think of having steps like below for your catalog item:
1. Create a data source with the File type (CSV, XLSX) data load
2. Attach (or replace) the attachment from the Requested Item.
3. Create a schedule data import, which will be executed using script.
4. Use SncTriggerSynchronizer.executeNow(current) to execute the import in your catalog item flow.
You can also have a look to the below article. The post shows details of steps by steps how to import from inbound email.
Ref: Loading data from an email attachment
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 05:34 AM
Hi Timi,
We are creating service request with CSV attachment from portal and from RITM number trying to import attached CSV file into Target Table 'cmdb_ci_outage' . Everytime, if we will create new Service Request with CSV attachment from portal then previous attachment should get delete from Data source table and new attachment should get inserted in to data source table and attachment content should get import into target table i.e. 'Cmdb_ci_outage'.
I'm following below approach:
Created a data source with the File type CSV.
Created transform map with field maps - Source, target and Coalesce and set the Target table as well.
Created Scheduled Data import.
Created Business Rule with below script.