Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
API - consume data through templates - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • API - consume data through templates
KB0854293

API - consume data through templates


416 Views Last updated : Sep 15, 2023 public Copy Permalink
KB Summary by Now Assist

This endpoint allows generating a full resolved configuration file by sending a template name and a config data set name. All placeholders and javascript snippets will be replaced with the actual content in the current active snapshot for the provided config data set name. More info on configuring parser templates can be found in KB0854318 - Configuring configFile templates.

The user must have the VIEW permissions on the config data set name in order to retrieve its content. 

Endpoint

method
POST
URI
/api/v1/tenant/template-parser/replace?parser=<parserTemplateName>&amp;mds=<mdsName>

Headers

!
Authorization
Bearer <userToken or APIkey>

!
Content-Type
application/x-www-form-urlencoded

!
Accept
application/vnd.siren+json

Response

The response is a string that can be output to a file. 

In case of insufficient permissions, the response object will contain a {"AccessDeniedException"} message

Example cURL

curl -X POST -H "Authorization: bearer XX2d5adc-b31b-474d-a5f2-14cbdc559b1f" -H "Accept: application/vnd.siren+json" -H "Content-Type: application/x-www-form-urlencoded" 'https://demo.sweagle.com/api/v1/tenant/template-parser/replace?parser=myTemplateName&mds=myMdsName' --output myConfig.yaml

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.