---
sourceDocument: Australia API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/api-reference

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Generate a REST message script preview

# Generate a REST message script preview {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

You can generate an example script to send a REST message based on content and
parameters you provide in the method record.

## Vorbereitungen

Role required: web_service_admin or admin

## Warum und wann dieser Vorgang ausgeführt wird

Generate an example script and use it as a starting point when scripting outbound REST messages.

## Prozedur

1. Navigate to AllSystem Web ServicesREST Message.
2. Select a REST message record.
3. In the HTTP Methods related list, select an HTTP method record.
4. Ensure the HTTP method is configured as needed, including any variables.
5. Save the record.
6. In the Variable Substitutions related list, assign a value to each variable.
7. Under Related Links, click Preview script usage.  
   The instance displays the script that the REST message generated for this method.
8. Copy this script and modify it as needed to use elsewhere in the instance.

## Nächste Maßnahme

Refer to the RESTMessageV2 and RESTResponseV2 APIs for more information on available scripting methods. Outbound REST scripting examples are also available.

