How to move KB articles from one instance to other instance through script with attachments?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2017 06:52 PM
Hi All,
Can any one please help me on the below task.
How to move KB articles from one instance to other instance through script with attachments?
Is it possible, any one know please guide me on that.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2025 10:08 PM
Hi @Kamal17 ,
That issue is resolved the new issue is when I migrated the kb article from one instance to another already that kb number is existing in the target instance, so duplicates are forming how can I resolve this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2025 11:28 PM
@Ramakrishna Rao When you have existing articles in the target instance then the updateset approach might not suit your use case. In such scenarios it's better to follow one of the below approaches.
Approach 1: Push/Pull knowledge articles and their dependencies via API. - This is suitable when you have larger number of articles to migrate.
Approach 2: Manually create articles and their dependencies in target instance. - This is suitable only when you have few articles to migrate.
Both of the above methods will prevent creation of articles with duplicate numbers in the target instance post migration.
Hit "Correct", "Helpful" or "Like" depending on the impact of the response.
Regards,
Kamal S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2025 11:49 PM
Hi @Kamal17 ,
Can you please explain the approach 1 in detail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2025 11:48 PM
Hi @Kamal17 ,
Can you explain the approach 1 little more in detail please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2025 12:15 AM
@Ramakrishna Rao Approach 1 is basically setting up an integration between source instance and target instance. One way is to pull information into target instance using the table API endpoints in source instance. A rough summary of the steps includes,
1. Setup an outbound rest message in the target instance to pull knowledge article data from knowledge article TABLE API endpoint of the source instance. Ensure you setup a user account in source instance to access the REST APIs and assign necessary permissions to it.
2. Store the retrieved data in an import set table.
3. Use transform map to transform the imported data from import set table into target table.
You need to repeat the above steps for each table associated with knowledge article to ensure nothing is missed out. Check REST API explorer for API details for each table from where you want to import data.
The setup will take a bit of time but once done you can reuse it anytime.
You may also refer to the below article and docs pages
Options for Importing External Articles into Servi... - ServiceNow Community
Hit "Correct", "Helpful" or "Like" depending on the impact of the response.
Regards,
Kamal S