Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Get All E-mail Templates

    Use this API to retrieve all e-mail templates present in Junos Space Service Now.

    URI

    https://[hsot]/api/juniper/servicenow/emailTemplate-management/emailTemplates (HTTP method = GET)

    Consumes

    None

    Produces

    • application/vnd.juniper.servicenow.emailTemplate-management.emailTemplates +xml;version=1
    • application/vnd.juniper.servicenow.emailTemplate-management.emailTemplates +json;version=1

    Response Elements

    Element

    Type

    Description

    uri

    String

    URI of the collection of e-mail templates

    size

    Integer

    Number of records in the e-mail template collection

    href

    String

    Link to an e-mail template

    key

    Integer

    ID of the e-mail template

    tempalateName

    String

    Name of the e-mail template

    description

    String

    Description of the e-mail template

    createdBy

    String

    Username of the user who created the e-mail template

    lastUpdateTime

    String

    Date and time the e-mail template was last modified

    Sample Output

    Sample XML Output

    <emailTemplates uri="/api/juniper/servicenow/emailTemplate-management/emailTemplates" size="3">
    <emailTemplate href= "/api/juniper/servicenow/emailTemplate-management/emailTemplates/34381" uri="/api/juniper/servicenow/emailTemplate-management/emailTemplates/34381" key="34381">
    <tempalateName>Case Created for Incident</tempalateName>
    <description>
    This template is used by Service Now for sending email notificati...
    </description>
    <createdBy>super</createdBy>
    <lastUpdateTime>2015-01-08 01:35:06 PST</lastUpdateTime>
    </emailTemplate>
    <emailTemplate href= "/api/juniper/servicenow/emailTemplate-management/emailTemplates/34435" uri="/api/juniper/servicenow/emailTemplate-management/emailTemplates/34435" key="34435">
    <tempalateName>Case Updated</tempalateName>
    <description>
    This template is used by Service Now for sending email notificati...
    </description>
    <createdBy>Service Now</createdBy>
    <lastUpdateTime>2014-12-21 07:53:17 PST</lastUpdateTime>
    </emailTemplate>
    <emailTemplate href= "/api/juniper/servicenow/emailTemplate-management/emailTemplates/34537" uri="/api/juniper/servicenow/emailTemplate-management/emailTemplates/34537" key="34537">
    <tempalateName>Connected member device added/removed</tempalateName>
    <description>
    This template is used by Service Now for sending email notificati...
    </description>
    <createdBy>Service Now</createdBy>
    <lastUpdateTime>2014-12-21 07:53:17 PST</lastUpdateTime>
    </emailTemplate>
    </emailTemplates>
    

    Sample JSON Output

    {
      "emailTemplates": {
        "@uri": "/api/juniper/servicenow/emailTemplate-management/emailTemplates",
        "@size": "33",
        "emailTemplate": [
          {
            "@href": "/api/juniper/servicenow/emailTemplate-management/emailTemplates/34381",
            "@uri": "/api/juniper/servicenow/emailTemplate-management/emailTemplates/34381",
            "@key": "34381",
            "tempalateName": "Case Created for Incident",
            "description": "This template is used by Service Now for sending email notificati...",
            "createdBy": "super",
            "lastUpdateTime": "2015-01-08 01:35:06 PST"
          },
          {
            "@href": "/api/juniper/servicenow/emailTemplate-management/emailTemplates/34435",
            "@uri": "/api/juniper/servicenow/emailTemplate-management/emailTemplates/34435",
            "@key": "34435",
            "tempalateName": "Case Updated",
            "description": "This template is used by Service Now for sending email notificati...",
            "createdBy": "Service Now",
            "lastUpdateTime": "2014-12-21 07:53:17 PST"
          },
          {
            "@href": "/api/juniper/servicenow/emailTemplate-management/emailTemplates/34537",
            "@uri": "/api/juniper/servicenow/emailTemplate-management/emailTemplates/34537",
            "@key": "34537",
            "tempalateName": "Connected member device added/removed",
            "description": "This template is used by Service Now for sending email notificati...",
            "createdBy": "Service Now",
            "lastUpdateTime": "2014-12-21 07:53:17 PST"
          }
        ]
      }
    }
    

    Modified: 2016-08-10