Calling workflow from external trigger in ISC

Hello All,

Can we trigger workflow by passing input arguments from API or Rule in Sailpoint ISC ?

In Sailpoint documentation, it is mentioned that we can use external triggers which should pass input values in JSON format. But I am not clear how to do that.

If it is possible can someone share sample code for invoking workflow in ISC

1 Like

Hello @mandarsane

SailPoint ISC workflow has a list of triggers and one amongst them is the External trigger. This trigger fires when any external system or workflow makes the HTTP call by granting the external system’s access to this workflow like the client id and client url. And also an internal workflow 1 can call workflow 2 using this external trigger. For more details I found the below use case from the developer portal from end to end implementation. Hope this helps.

3 Likes

Hi @Pmgk25

Thank you for sharing this. Let me try this.

1 Like

@mandarsane are you looking for custom programming language code to invoke a Workflow through API ?

Hi @msingh900 ,

yes, I am looking for sample code in java to trigger workflow.

My understanding is we should have access token and inputs variables in JSON. By using it, we can trigger workflow from java code or Postman. Please let me know I understood it correct or not.

Hi @mandarsane

You can test or call your workflow using below Java code. Sample Code is below.

Create your project and use this below piece of code.

You need to get your id of the workflow and token value. Provide the input in body.

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"input\": {}\n}");
Request request = new Request.Builder()
  .url("https://sailpoint.api.identitynow.com/v2024/workflows/:id/test")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .addHeader("Accept", "application/json")
  .addHeader("Authorization", "Bearer <TOKEN>")
  .build();
Response response = client.newCall(request).execute();

You can get more info here: test-workflow | SailPoint Developer Community

Thanks

@mandarsane I have worked on a simple spring boot project that calls a workflow with the provided input of the worklfow.

Please ping me if you need this or if your issue is resolved then its good.

Thanks