# How to add Identity Status in Service Desk Integration through description?

**URL:** <https://developer.sailpoint.com/discuss/t/how-to-add-identity-status-in-service-desk-integration-through-description/155874>\
**Category:** SHF Discussion and Questions\
**Tags:** identity-security-cloud, access-requests\
**Created:** [July 15, 2025, 1:12pm UTC](https://developer.sailpoint.com/discuss/t/how-to-add-identity-status-in-service-desk-integration-through-description/155874 "2025-07-15T13:12:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Santhakumar](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/santhakumar/32/17329_2.png) [@Santhakumar](https://developer.sailpoint.com/discuss/u/Santhakumar)\
**Post date:** [July 15, 2025, 1:12pm UTC](https://developer.sailpoint.com/discuss/t/how-to-add-identity-status-in-service-desk-integration-through-description/155874/1 "2025-07-15T13:12:29Z")

</div>

Hi All,

I need to send the identity status through description on ServiceDesk Integration. I have tried the below VTL but it throws an error like “Whitespace is missing”.

```auto
#if($request.operation == 'Create') Create Account on application $request.resource #elseif($request.operation == 'Delete') For $request.id in application $request.resource : Requested action from SailPoint : Delete Account #if ($request.arguments.comments), Comments : $request.arguments.comments #end #else For $request.id in application $request.resource #end #if ($request.items) $newline #foreach ($item in $request.items) #if ($item.name == '*disabled*' && $item.value == 'true') Requested action from SailPoint : Disable Account #if ($request.arguments.comments), Comments : $request.arguments.comments #end $newline #elseif ($item.name == '*disabled*' && $item.value == 'false') Requested action from SailPoint : Enable Account #if ($request.arguments.comments), Comments : $request.arguments.comments #end $newline #elseif ($item.name == '*locked*' && $item.value == 'false') Requested action from SailPoint : Unlock Account #if ($request.arguments.comments), Comments : $request.arguments.comments #end $newline #else $!item.Operation $item.name: $item.value #if ($item.arguments.comments), Comment from SailPoint : $item.arguments.comments #end $newline #elseif (!$plan.request.item.name.toString().contains('status')) Identity Status: #set(status=item.value)#end $newline #end #end

```

Any help will be appreciated.

Thanks  
Shanthakumar

---

<div class="post-metadata">

**Author:** ![deepakarora](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@deepakarora](https://developer.sailpoint.com/discuss/u/deepakarora)\
**Post date:** [July 15, 2025, 5:12pm UTC](https://developer.sailpoint.com/discuss/t/how-to-add-identity-status-in-service-desk-integration-through-description/155874/3 "2025-07-15T17:12:46Z")

</div>

Hi Shantha,

Are you adding Identity Status in provisioning plan through before provisioning rule?

Thanks.

---

<div class="post-metadata">

**Author:** ![dineshdupati](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@dineshdupati](https://developer.sailpoint.com/discuss/u/dineshdupati)\
**Post date:** [July 15, 2025, 6:41pm UTC](https://developer.sailpoint.com/discuss/t/how-to-add-identity-status-in-service-desk-integration-through-description/155874/4 "2025-07-15T18:41:55Z")

</div>

Hi @Santhakumar,

I’m not sure whether we can make use of $plan.request in the description VTL code snippet.

I have tried the below code snippet, when there a create request.  
a. Avoid sending “[source]” suffix in the description after the source name using `if($request.resource == 'App1 [source]') App1`  
b. send “ModelAfter” information instead of “Comment from SailPoint” in the description.

Check if this works?

1. Try to see if the below syntax helps?
2. Try to send only $request attribute to the RITM ticket description to identify what all attributes the SailPoint is sending to ServiceNow and from that you can able to identify whether you can achieve sending Identity status or not?

`#if($request.operation == 'Create') Create Account on application #if($request.resource == 'App1 [source]') App1; #elseif ($request.resource == 'App2 [source]') App2; #else $request.resource; #end #elseif($request.operation == 'Delete') For $request.id in application $request.resource : Requested action from SailPoint : Delete Account #if ($request.arguments.comments), Comments : $request.arguments.comments #end #else For $request.id in application $request.resource #end #if ($request.items) $newline #foreach ($item in $request.items) #if ($item.name == '*disabled*' && $item.value == 'true') Requested action from SailPoint : Disable Account #if ($request.arguments.comments), Comments : $request.arguments.comments #end $newline #elseif ($item.name == '*disabled*' && $item.value == 'false') Requested action from SailPoint : Enable Account #if ($request.arguments.comments), Comments : $request.arguments.comments #end $newline #elseif ($item.name == '*locked*' && $item.value == 'false') Requested action from SailPoint : Unlock Account #if ($request.arguments.comments), Comments : $request.arguments.comments #end $newline #else $!item.Operation $item.name: $item.value #if ($item.arguments.comments),#if($request.operation == 'Create' && $request.resource == 'App1 [source]' || $request.resource == 'App2 [source]') ModelAfter: $item.arguments.comments #else Comment from SailPoint : $item.arguments.comments #end #end $newline #end #end #end`

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [September 13, 2025, 6:42pm UTC](https://developer.sailpoint.com/discuss/t/how-to-add-identity-status-in-service-desk-integration-through-description/155874/5 "2025-09-13T18:42:16Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
