# Managing Service Now Tickets in Workflows

**URL:** <https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420>\
**Category:** Community Blog\
**Tags:** workflows, sailpoint-identity-security\
**Created:** [July 13, 2023, 11:29am UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420 "2023-07-13T11:29:27Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![GreeneT](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/greenet/32/4667_2.png) [@GreeneT](https://developer.sailpoint.com/discuss/u/GreeneT)\
**Post date:** [January 10, 2024, 6:38am UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/28 "2024-01-10T06:38:55Z")

</div>

Hi Sharvari, Amazing post!

Had a question regarding the endpoint URL when needing to update a ticket to close it. I am struggling to find any documentation regarding the Action “Update Ticket Status” with “Manage ServiceNow Ticket”.

Any links to documentation regarding this or if you have what that endpoint URL would be.

Thanks  
Travis

---

<div class="post-metadata">

**Author:** ![sharvari](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sharvari](https://developer.sailpoint.com/discuss/u/sharvari)\
**Post date:** [January 10, 2024, 1:06pm UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/29 "2024-01-10T13:06:38Z")

</div>

Thank you, Travis.

Regarding URL for “Update Ticket Status”, if you are using sc\_request for creation it would be similar endpoint with change in http method eg. PATCH [https://tenant.service-now.com/api/now/v1/table/sc\_request](https://tenant.service-now.com/api/now/v1/table/sc_request)

If you are using the built in Manage Service Now Ticket action it will take care of populating the correct Http method for you while the end point URL remains the same as the one used for ticket creation.

Incase you are using HTTP action for creating tickets, please refer to the Service Now API documentation here for your specific SNow release to find more details on these operations:

> **[ServiceNow Developers](https://developer.servicenow.com/dev.do#!/reference/api/utah/rest/c_TableAPI)**
>
> The ServiceNow Developer Program provides developers with resources to learn, build and deploy applications on the ServiceNow platform, and offers resources to ensure a successful application building experience.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![GreeneT](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/greenet/32/4667_2.png) [@GreeneT](https://developer.sailpoint.com/discuss/u/GreeneT)\
**Post date:** [January 10, 2024, 2:23pm UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/30 "2024-01-10T14:23:06Z")

</div>

Thank you Sharvari for the quick response.

I am using the Manage Service Now Ticket action. This is the URL I used for the creation [https://tenant.service-now.com/api/now/v1/table/sc\_request](https://tenant.service-now.com/api/now/v1/table/sc_request). So based on your response I should be able to use that same endpoint and will be able to complete the action?

---

<div class="post-metadata">

**Author:** ![sharvari](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sharvari](https://developer.sailpoint.com/discuss/u/sharvari)\
**Post date:** [January 10, 2024, 2:40pm UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/31 "2024-01-10T14:40:53Z")

</div>

Yes, I haven’t tried it but technically it should work. Please try it out.

---

<div class="post-metadata">

**Author:** ![GreeneT](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/greenet/32/4667_2.png) [@GreeneT](https://developer.sailpoint.com/discuss/u/GreeneT)\
**Post date:** [January 10, 2024, 3:18pm UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/32 "2024-01-10T15:18:11Z")

</div>

So I attempted that action with using the same endpoint URL “[https://tenant.service-now.com/api/now/v1/table/sc\_request](https://tenant.service-now.com/api/now/v1/table/sc_request)”

I received the error "“error”:“request failed: 404 - {"error":{"message":"No Record found","detail":"Record doesn’t exist or ACL restricts the record retrieval"”

---

<div class="post-metadata">

**Author:** ![GreeneT](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/greenet/32/4667_2.png) [@GreeneT](https://developer.sailpoint.com/discuss/u/GreeneT)\
**Post date:** [January 11, 2024, 2:25pm UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/33 "2024-01-11T14:25:13Z")

</div>

@sharvari I had our ServiceNow admins increase the ACL permissions but that didn’t seem to fix the issue.

So, FYI the work around I have come up with is during the ticket creation I have passed in the status value of closed complete. This allows me to create a closed ticket. This fits my requirements as I only need to generate a ticket for tracking.

Thanks  
Travis

---

<div class="post-metadata">

**Author:** ![RTASB](https://avatars.discourse-cdn.com/v4/letter/r/aca169/32.png) [@RTASB](https://developer.sailpoint.com/discuss/u/RTASB)\
**Post date:** [February 14, 2024, 12:27am UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/34 "2024-02-14T00:27:23Z")

</div>

Hi,

What’s the expected behaviour if a ticket creation fails using the Manage ServiceNow Ticket action? Is the error restricted to just the action and can be handled or does it fail the whole workflow if the action fails?

---

<div class="post-metadata">

**Author:** ![sharvari](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sharvari](https://developer.sailpoint.com/discuss/u/sharvari)\
**Post date:** [February 14, 2024, 4:22am UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/35 "2024-02-14T04:22:29Z")

</div>

If the action returns a standard 201 it means the ticket was created. If the action fails, I believe it will halt the whole workflow unless there is a standard http error code returned like a 400, 401 etc. If so, you can use operators to check the code and take further action on it.

---

<div class="post-metadata">

**Author:** ![RTASB](https://avatars.discourse-cdn.com/v4/letter/r/aca169/32.png) [@RTASB](https://developer.sailpoint.com/discuss/u/RTASB)\
**Post date:** [February 14, 2024, 4:38am UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/36 "2024-02-14T04:38:07Z")

</div>

Thanks Sharvari.

I’m looking for a confirmation as I feel this action may be built on top of the standard workflow HTTP Action which unfortunately fails the entire workflow for any non standard 2xx reponse, even if it is something like a standard 400 or 401.

---

<div class="post-metadata">

**Author:** ![sharvari](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sharvari](https://developer.sailpoint.com/discuss/u/sharvari)\
**Post date:** [February 14, 2024, 4:56am UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/37 "2024-02-14T04:56:16Z")

</div>

Yes, that’s possible, but we don’t have that clearly documented in the workflow actions so you can try it out and verify the behavior.

---

<div class="post-metadata">

**Author:** ![mikeg](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@mikeg](https://developer.sailpoint.com/discuss/u/mikeg)\
**Post date:** [May 28, 2024, 4:50pm UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/38 "2024-05-28T16:50:41Z")

</div>

This is great. One question, is this solution applicable for creating tickets instead of an IDN task for certification revocations of disconnected sources?

---

<div class="post-metadata">

**Author:** ![sharvari](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sharvari](https://developer.sailpoint.com/discuss/u/sharvari)\
**Post date:** [May 29, 2024, 6:00am UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/39 "2024-05-29T06:00:53Z")

</div>

Thank you.

To clarify, if you have already setup the Service Now Service Desk integration then an IDN task will not be generated, the built in integration will take care of creating the SNow ticket for you. If you don’t want to use the integration then this workflow can be used to create tickets in SNow on the desired trigger.

---

<div class="post-metadata">

**Author:** ![mikeg](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@mikeg](https://developer.sailpoint.com/discuss/u/mikeg)\
**Post date:** [May 29, 2024, 1:17pm UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/40 "2024-05-29T13:17:50Z")

</div>

Hi Sharvari. Appreciate the quick response. Is it possible to suppress IDN task creation if we do not have the ServiceNow integration? If so, how?

Also, is there a trigger point for the workflow to generate a SNOW ticket from a certification campaign? Appreciate your help.

---

<div class="post-metadata">

**Author:** ![sharvari](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sharvari](https://developer.sailpoint.com/discuss/u/sharvari)\
**Post date:** [May 30, 2024, 6:18am UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/41 "2024-05-30T06:18:22Z")

</div>

> [@mikeg](#):
>
> Is it possible to suppress IDN task creation if we do not have the ServiceNow integration? If so, how?

No. I am not aware of any way we can suppress the IDN task creation for disconnected sources provisioning tasks.

Also, there is no trigger available in workflow related to certification revocation items (there is one for sign off but it doesn’t include approve/reject items in it). So you may find it a little difficult and may have to do additional work to identify the revoked access before using it in the custom workflow.

For this use case, my suggestion to you would be use the built in Service Desk integration for getting tickets created for certification campaign revoke actions.

---

<div class="post-metadata">

**Author:** ![originalmths](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/originalmths/32/4128_2.png) [@originalmths](https://developer.sailpoint.com/discuss/u/originalmths)\
**Post date:** [June 11, 2024, 3:03pm UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/42 "2024-06-11T15:03:57Z")

</div>

Hello Sharvari,

Firstly, great topic. I explain the idea very well.

Have you had any errors like this in testing?

error getting Access Token for OAuth: %!w()

---

<div class="post-metadata">

**Author:** ![sharvari](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sharvari](https://developer.sailpoint.com/discuss/u/sharvari)\
**Post date:** [June 12, 2024, 3:59am UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/43 "2024-06-12T03:59:24Z")

</div>

Thanks @originalmths.  
I have not seen this error. Please verify you URL and other parameters within your action. You can also try calling the same API from postman just to confirm that you have the necessary permissions and authorization to get the access token.

---

<div class="post-metadata">

**Author:** ![REKHASACH](https://avatars.discourse-cdn.com/v4/letter/r/9dc877/32.png) [@REKHASACH](https://developer.sailpoint.com/discuss/u/REKHASACH)\
**Post date:** [June 19, 2024, 7:15am UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/44 "2024-06-19T07:15:09Z")

</div>

Hi Sharvari,

Gr8 post.  
Just wanted to understand where can we get ticket number under account Activity.  
I couldn;t find one.

 ![AccountActivity](https://global.discourse-cdn.com/sailpoint/original/2X/3/34417a7b805792646b810eca4c83222f323af169.png)

---

<div class="post-metadata">

**Author:** ![sharvari](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sharvari](https://developer.sailpoint.com/discuss/u/sharvari)\
**Post date:** [June 19, 2024, 11:59am UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/45 "2024-06-19T11:59:36Z")

</div>

Hi Rekha,

If the Service Now ticket is created using the Service Desk integration then it will show up under the account activity against Service Now changes. It will list the ticket number there.

---

<div class="post-metadata">

**Author:** ![REKHASACH](https://avatars.discourse-cdn.com/v4/letter/r/9dc877/32.png) [@REKHASACH](https://developer.sailpoint.com/discuss/u/REKHASACH)\
**Post date:** [June 20, 2024, 4:09am UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/46 "2024-06-20T04:09:03Z")

</div>

Hi Sharvari,

ServiceNow ticket is created using SNOW Service desk, but I couldn’t find ticket number under account activity. I have even shared the screen shot with you for account activity.

---

<div class="post-metadata">

**Author:** ![sharvari](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sharvari](https://developer.sailpoint.com/discuss/u/sharvari)\
**Post date:** [June 20, 2024, 5:00am UTC](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420/47 "2024-06-20T05:00:56Z")

</div>

I saw your screenshot. To see the ticket number you need to click on the account activity and it will pop up details on the right side of your window. In that window you should be able to see the Service Now tab under Identity Now tab and then when you click on it, it shows the ticket number on there. If you don’t see Service now listed there probably a ticket wasn’t generated.

[Previous page](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420.md?page=1)

[Next page](https://developer.sailpoint.com/discuss/t/managing-service-now-tickets-in-workflows/14420.md?page=3)
