- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2022 09:52 PM
I need to export a record from sys_attachment table from prod. And import it in dev(because I need the same sys id).
But using export xml and import xml its not working.
When you click on a record in sys_attachment table , that record will be downloaded.
But here the downloaded file is showing "format is not supported or file is corrupted".
I have already done with "export xml" from one instance and "import xml" in another instance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2022 09:57 PM
Hi,
sys_attachment is not the only table where attachment information is present; there is 1 more table for metadata i.e. sys_attachment_doc
you can use Attachment API
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2022 09:57 PM
Hi,
sys_attachment is not the only table where attachment information is present; there is 1 more table for metadata i.e. sys_attachment_doc
you can use Attachment API
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2024 07:52 PM
Thank you Ankur. This piece of information just saved me a great deal of time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2023 09:50 AM
Hi,
You can export the xml from both table as 'sys_attachment' & 'sys_attachment_doc' for your particular attachment file and then import the same in another instance.
Regards,
Vinod Prajapati