Service Now: creating ticket with a given ticket template

Reply
L1 Bithead

Service Now: creating ticket with a given ticket template

Hello all,

 

Our goal is to create a Service Now ticket from a playbook, using the Service Now integration, with a given ticket template (ticket template = ticket with predefined field).

 

To do so with the API we send a request to the following URL: https://xxxxxxx.service-now.com/api/sn_sc/servicecatalog/items/b898666bdb86b3406712b34ffe961929/orde...

With all the mandatory fields and other informations as JSON in the content block.

 

We can't find the right configuration of the "servicenow-create-ticket (ServiceNow v2)" automation to make it works.

 

ticket_type: sec_req_item (we need it to be sec_req_item table and not incident).

additional_fields: the predefined fields of the template as field1=value1;field2=value2;...

 

There's a field called "Template" in the integration configuration. We believe it to be the name of the template we want to use but it always returns the error "name not found" and when we don't set the name there's an ACL error.

 

Has anyone ever managed to successfully create a ticket with a predefined template inside sec_req_item ?

 

Thanks for reading.

Best regards.


Accepted Solutions
L1 Bithead

Hello,

 

We found the solution to our problem. Actually, it wasn't a template but an item (linked to Request item) the right automation to create an item request was "servicenow-create-item-order" and not "servicenow-create-ticket".

 

The problem come from my poor knowledge of Service Now and XSOAR integration. It's working well now.

 

Thank you for your time @bkatzir.

 

Best regards,

 

Alexandre Borgo

View solution in original post


All Replies
L0 Member

Hey @aborgo,

Thanks for engaging with the SBOW integration with Cortex XSOAR.
it does seem that we have an issue with the template parameter(which we will fix).
Have you tried to fire the command with the `template` argument instead?
e.g - 

!servicenow-create-ticket template=<my_template>

 

L1 Bithead

Hello @bkatzir, thanks for the reply.

 

When trying to create from the playground and using the following command: !servicenow-create-ticket ticket_type=sc_req_item template="Vulnerability management".

 

We always get the following error : Reason Unexpected error: Incorrect template name.

 

We're 100% sure that the name is correct and we tried other things like allias, id... same error.

L0 Member

Does the template correlates with the ticket *type*?

L1 Bithead

Hello,

 

We found the solution to our problem. Actually, it wasn't a template but an item (linked to Request item) the right automation to create an item request was "servicenow-create-item-order" and not "servicenow-create-ticket".

 

The problem come from my poor knowledge of Service Now and XSOAR integration. It's working well now.

 

Thank you for your time @bkatzir.

 

Best regards,

 

Alexandre Borgo

View solution in original post

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!