Announcing the SAVIYNT KNOWLEDGE EXCHANGE unifying the Saviynt forums, documentation, training, and more in a single search tool across platforms. Click HERE to read the Announcement.

Workday User Import Multi Api call Response in XML and JSON

GeSaviynt
New Contributor II
New Contributor II

Hi Team,

Use case : Reconcile updated user data from Workday to Saviynt via Rest Connector and there will be multiple API call.
Below are the details of API call:
1.API call will get response in XML
2.And in Second API call we have to call 1st API response(URI)
3.2nd API response in JSON .

User import JSON:

geeta_0-1668434099003.png

Post Man Screen shot:

1st API call Screen shot:

geeta_1-1668434851079.png

2nd API call Screen shot:

geeta_2-1668434932917.png

Error in Saviynt after running the job:

Error : 

Error - to Import Data correctly: Cannot invoke
method containsKey() on null object

geeta_3-1668435014724.png

Can you please suggest why it's throwing null error ,and for user import(Workday) multiple api call with different responses is feasible or not in Saviynt.

Saviynt Version : v2020

Thanks

Geeta

 

 

 

 

6 REPLIES 6

rushikeshvartak
All-Star
All-Star

Can you try below

https://saviynt.freshdesk.com/support/solutions/articles/43000521736-rest-connector-guide%C2%A0#REST...


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi Rushikesh,

Thanks for the sharing the link , but this is not helpful.

XML Response Converter from 1st API call

geeta_0-1669659071883.png

Note : We have to import User from multi API call.

Issue : From 1st Api call it's throwing error of null pointer, and I am not sure Rest connector is supporting multi api call for User import or not , with out passing attribute 'colsToPropsMap' in API call : .

1.API call will get response in XML
2.And in Second API call we have to call 1st API response(URI)

geeta_1-1669659327627.png

Error - to Import Data correctly: Cannot invoke
method containsKey() on null object.

Thanks

Geeta

h_sapkota
Regular Contributor
Regular Contributor

Hi Geeta,

If you are seeing null object on the first API Call, I would suggest you verify the connection that you have made in REST Connector. Check if the connection is proper or not.

There is one parameter testConnectionParams in REST Connector connection JSON, Please use that to verify your connection.

P.S. REST connector supports multi API call for user import as well.

Let me know if you are still getting error.

Regards,

Hitesh Sapkota

GeSaviynt
New Contributor II
New Contributor II

Thanks for reply Hitesh.

Please find attached 'TestconnectionParams' and multiApiCall text file for user import.

I tried with 'testConnectionParams' , connection is successful, but still same error:

Screen shot:

geeta_0-1669731707187.png

Thanks

Geeta

Share postman curl command when you run first api (right top corner)


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi Rushikesh,

Please see below screen shot from Post man(1st API call) and we have to pass this response (URI)in 2nd API call.

geeta_0-1669745014775.png

Thanks

Geeta