Updating Assignment_Group in SnowDesk integration

Hi Team,

I wanted to update assignment group when RITM is created in snow.

I was trying to update like below ,However it was not able to update from postman.

“assignment_group”:“#set ($index = $request.resource.indexOf(’ ['))#set ( $sourcename = $request.resource.substring(0,$index))#if($sourcename == ‘Test ServiceNow Delimited’)#set ( $group =‘Test access request approval’)$group #end

Can you please let me know where we have to update it exactly and let me know if im missing anything ?

Any inputs ion this ?

We check the request.resource and then assign the ServiceNow Group sys_id.

#if($request.resource == 'Server Access [source]')<ServiceNow Group sys_id>#elseif($request.resource == 'Database Access [source]')<ServiceNow Group sys_id>#{else}<ServiceNow Group sys_id>#end


#if($request.resource == 'Server Access [source]')11111111111111aaaaaaaaaaaaaaaaaa#elseif($request.resource == 'Database Access [source]')22222222222222bbbbbbbbbbbbbbbbbb#{else}33333333333333cccccccccccccccccc#end

We set assignment group according to source

#set ($groupmap = { 
'Enertia DB[source]' : '245ef8541b7dbb009a4f33fccd4bcba7', 
'NGL Allocations [source]' : '245ef8541b7dbb009a4f33fccd4bcba7', 
'WellReadiness DB [source]' : 'c3fea191db2b5010cac55716f49619e2', 
'Automic Dev [source]' : 'd05eb8541b7dbb009a4f33fccd4bcbf5', 
'LandView Preview [source]' : '245ef8541b7dbb009a4f33fccd4bcba7', 
'Allegro DB [source]' : '5c5eb8541b7dbb009a4f33fccd4bcba2', 
'Evolve [source]' : 'cacfc0bfdb3e4050cac55716f49619d8', 
'OpenInvoice [source]' : '73ce42ae1bdf819862a9ececbc4bcb5d' })\\n
#foreach( $request in $plan.requests )\\n${groupmap.get($request.resource)}\\n#end

Where we have to check this ?

Is it in service desk integration from postman ?

You can do it there or from the UI.

Connections->Service Desk

Mark, you forgot to censor the branding logo :wink:

1 Like

I’m honestly fine with that… we’re changing our name in the next few months anyway

1 Like

Hy Thank so much mark for screenshot.

Is that Id is assignment group ID ?

Where we have to get those id’s , Do we need to request servicenow team to provide assignment group ID ?

Correct, the sys_id of the servicenow group

1 Like

We implemented this logic in sailpoint default workflow in servicenow.

Hy Mark,

I tried the same, However group is not getting assigned
Can you tell me if I’m missing anything.
Below pic for ref :

Try adding a space between the source name and the string [source]

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