Error When Configuring IdentityIQforServiceNowServiceDesk.xml in SailPoint IIQ

I am trying to integrate servicenow and sailpoint iiq using rest apis

my requirement is
if i generate a access request from manage access requesting for a role or group, a ticket should raise in servicenow.
and if i update it then it should reflect in the sailpoint iiq

i have created a servicenow connector application in the sailpoint iiq. i have to configure and imported IdentityIQforserviceNowServiceDesk.xml from WEB-INF\config\connector to sailpoint iiq.

i am facing issues in configuring the IdentityIQforserviceNowServiceDesk.xml

and /api/sn_sc/servicecatalog/items/xx36444bc30412108d8433fc05013194/order_now

the above is the api i am using

and i have imported it
when i am generating a access request from manage access requesting for a role or group, i am getting the error

ERROR http-nio-8080-exec-7 openconnector.connector.servicedesk.ServiceDeskConnector:1221 - Ticket creation failed. Request: {"items":[{"variables":{"requested_for":"62826bf03710200044e0bfc8bcbe5df1"},"sysparm_id":"3a36444bc30412108d8433fc05013194"}]}
openconnector.InvalidRequestException: [ InvalidRequestException ] 
 [ Error details ] Invalid request received to IT Service Desk System. Status: 400, Output: {"error":{"message":"Invalid Quantity value","detail":""},"status":"failure"}

Hi @Premchand,

this error means that you are sending an incorrect value.

One of attribute want a number and in you request your are sending a string, a number with wrong format or a number out of range.

like how can i know the data type
i am not sure this attribute is having the problem i tried in many ways to configure it.

for reference you can look the following
part of xml

 <entry key="ticketType" value="serviceRequest" />
  <entry key="serviceRequest">
    <value>
      <Map>
        <entry key="provision">
          <value>
            <Map>
              <entry key="resource" value="/api/sn_sc/servicecatalog/items/xxx6444bc30412108d8433fc05013194/add_to_cart"/>
              <entry key="catalogItem">  
                <value>
                  <Map>
                    <!-- The 'key' is the managed application name and 'value' is catalog item sys_id -->
                    <entry key="ServiceNow-demo" value="3a36444bc30412108d8433fc05013194" />
                  </Map>                                
                </value>
              </entry>
              <!-- In case you want RITM number in access request then set responseElement as:
              <entry key="responseElement" value="$.result.items"/>
              -->
              <entry key="responseElement" value="$.result.number"/>
			  

              <entry key="request">
                <value>
                  <Map>
                     <entry key="sysparm_quantity" value="1" />
                    <entry key="requested_for" value="$!plan.arguments.requested_for" />

                    <!-- In case you want RITM number in access request then set key for "track_ritm" as:
                    <entry key="track_ritm" value="true" />
                    -->
                  </Map>
                </value>
              </entry>
            </Map>
          </value>
        </entry>
        <entry key="checkStatus">
          <value>
            <Map>
              <!-- In case you want RITM number in access request then set "resource" and "responseElement" as:
              <entry key="resource" value="/api/now/table/sc_req_item" />
              <entry key="responseElement" value="$.result[0].state"/>
              -->
              <entry key="resource" value="/api/now/table/sc_req_item" />
              <entry key="responseElement" value="$.result[0].state"/>
              <entry key="closeNotes" value="$.result[0].close_notes"/>
              <entry key="checkStatusQueryParam">
                <value>
                  <Map>
                    <entry key="sysparm_query" value="number=$ticketId" />
					 
                    <!-- In case you want RITM number in access request then set "sysparm_fields" as:
                    <entry key="sysparm_fields" value="state" />
                    -->
                    <entry key="sysparm_fields" value="state" />
                  </Map>
                </value>
              </entry>
              <entry key="statusMap">
                <value>
                  <Map>
                    <entry key="closed_cancelled" value="Failed" />
                    <entry key="closed_complete" value="Committed" />
                    <entry key="closed_incomplete" value="Failed" />
                    <entry key="closed_rejected" value="Failed" />
                    <entry key="closed_skipped" value="Failed" />
                    <entry key="in_process" value="Queued" />
                    <entry key="requested" value="Queued" />
					<entry key="-5" value="Queued"/>
                    <entry key="1" value="Queued"/>
                    <entry key="2" value="Queued"/>
                    <entry key="3" value="Committed"/>
                    <entry key="4" value="Failed"/>
                    <entry key="7" value="Failed"/>
                 
                  </Map>
                </value>
              </entry>
            </Map>
          </value>
        </entry>
      </Map>
    </value>
  </entry>

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