# Web Service Connector called from Workflow

**URL:** <https://developer.sailpoint.com/discuss/t/web-service-connector-called-from-workflow/58161>\
**Category:** IIQ Discussion and Questions\
**Tags:** webservice-connector, workflows, identityiq, connectors\
**Created:** [May 28, 2024, 2:47pm UTC](https://developer.sailpoint.com/discuss/t/web-service-connector-called-from-workflow/58161 "2024-05-28T14:47:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ninfante\_solidigm](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@ninfante\_solidigm](https://developer.sailpoint.com/discuss/u/ninfante_solidigm)\
**Post date:** [May 28, 2024, 2:47pm UTC](https://developer.sailpoint.com/discuss/t/web-service-connector-called-from-workflow/58161/1 "2024-05-28T14:47:52Z")

</div>

### Which IIQ version are you inquiring about?

Version 8.3

### Share all details related to your problem, including any error messages you may have received.

Hi all!

Hope everything’s well.  
Came across this requirement and was wondering, is there a way to call a web service connector from a workflow and run operations such as test connection, create users, and basically all the operations defined within the connector?

Thank you all in advance!

---

<div class="post-metadata">

**Author:** ![markearnest](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/markearnest/32/5997_2.png) [@markearnest](https://developer.sailpoint.com/discuss/u/markearnest)\
**Post date:** [May 28, 2024, 3:00pm UTC](https://developer.sailpoint.com/discuss/t/web-service-connector-called-from-workflow/58161/2 "2024-05-28T15:00:44Z")

</div>

Test connection you can do programmatically with

```auto
Connector connector = ConnectorFactory.getConnector(application, null);
connector.testConfiguration();

```

For provisioning operations from within a workflow, you would want to create and submit a provisioning plan.

---

<div class="post-metadata">

**Author:** ![ipobeidi](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ipobeidi/32/16000_2.png) [@ipobeidi](https://developer.sailpoint.com/discuss/u/ipobeidi)\
**Post date:** [May 28, 2024, 3:02pm UTC](https://developer.sailpoint.com/discuss/t/web-service-connector-called-from-workflow/58161/3 "2024-05-28T15:02:28Z")

</div>

In IIQ? Sure , just Create the connector/Application Object and call the operations accordingly.

---

<div class="post-metadata">

**Author:** ![kjakubiak](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kjakubiak/32/7052_2.png) [@kjakubiak](https://developer.sailpoint.com/discuss/u/kjakubiak)\
**Post date:** [May 28, 2024, 3:03pm UTC](https://developer.sailpoint.com/discuss/t/web-service-connector-called-from-workflow/58161/4 "2024-05-28T15:03:45Z")

</div>

Hi Nicolas,  
Of course it is

```auto
import sailpoint.connector.Connector;
import sailpoint.connector.ConnectorFactory;
  
Connector conn = ConnectorFactory.getConnector(_context.getObject(Application.class, accountRequest.getApplicationName()), null);
conn.provision(newPlan);

```

in this case it is provisioning plan directly via connector but there are also different methods like

- `getObject` - to aggregate object
- `doHealthCheck` - to make test connection

Most of the details you can find in javadoc for Connector class

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/4/43790c8e08d93d8d760d5b2402f20548d2c8e066.png)

---

<div class="post-metadata">

**Author:** ![kjakubiak](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kjakubiak/32/7052_2.png) [@kjakubiak](https://developer.sailpoint.com/discuss/u/kjakubiak)\
**Post date:** [May 28, 2024, 3:04pm UTC](https://developer.sailpoint.com/discuss/t/web-service-connector-called-from-workflow/58161/5 "2024-05-28T15:04:38Z")

</div>

Test configuration actualy tests configuration - to check connection you have to use doHealthCheck()

---

<div class="post-metadata">

**Author:** ![markearnest](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/markearnest/32/5997_2.png) [@markearnest](https://developer.sailpoint.com/discuss/u/markearnest)\
**Post date:** [May 28, 2024, 3:35pm UTC](https://developer.sailpoint.com/discuss/t/web-service-connector-called-from-workflow/58161/6 "2024-05-28T15:35:18Z")

</div>

testConfiguration will actually also test the connection and throw a sailpoint.connector.ConnectorException if it fails.

---

<div class="post-metadata">

**Author:** ![ipobeidi](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ipobeidi/32/16000_2.png) [@ipobeidi](https://developer.sailpoint.com/discuss/u/ipobeidi)\
**Post date:** [May 28, 2024, 5:22pm UTC](https://developer.sailpoint.com/discuss/t/web-service-connector-called-from-workflow/58161/7 "2024-05-28T17:22:39Z")

</div>

In IIQ? Sure , just Create the connector/Application Object and call the operations accordingly.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 27, 2024, 5:23pm UTC](https://developer.sailpoint.com/discuss/t/web-service-connector-called-from-workflow/58161/8 "2024-07-27T17:23:15Z")

</div>

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