ralfonse
(Rudolf Alfonse)
September 13, 2023, 11:05am
1
Hello
I am hoping to get some samples on how to modify the context url when updating an account on an endpoint with the webservices-connector.
I need to pass an id on the linked account to the end point so the end point knows which account to update.
/api/Employee/$theId
I am a little stuck getting started on this one. Any help is greatly appreciated. Thank you!
drosenbauer
(Devin Rosenbauer)
September 13, 2023, 1:31pm
2
Assuming the ID is the native ID in your application, you can use the token $plan.nativeIdentity$.
The documentation for the connector includes a bunch of other examples of tokens you can use. It’s one of the better-done connector docs.
ralfonse
(Rudolf Alfonse)
September 13, 2023, 1:56pm
3
Thanks Devin
I am pretty sure I figured out how to get the id from the identity’s link. I am struggling with how to make the call with that id in the url so the right account gets updated on the end point.
I have been looking at the attached doc but don’t see any examples. Is there another one?
8_0_1_SailPoint_Direct_Connectors_Admin_and_Config_Guide.pdf (7.2 MB)
It might be something like this?
String contextUrl = application.getAttributeValue("genericWebServiceBaseUrl");
String contextUrlId = contextUrl + myId;
response = client.executePost(contextUrlId, data, headers);
Hi @ralfonse
You can try using the WebServiceBeforeOperationRule . You can use the below snippet to add the id to the endpoint.
String fullUrl = requestEndPoint.getFullUrl() + myId;
requestEndPoint.setFullUrl(fullUrl);
The myId referred is the id you obtained from the link.
system
(system)
Closed
November 12, 2023, 2:03pm
5
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.