You are viewing limited content. For full access, please sign in.

Question

Question

Send data to external API with Workflow

asked on August 16, 2018

Hi,

when indexing a new document to Laserfiche, we'd like to be able to send some field values to an external API. With this functionality we wouldn't have to enter the specific data twice on both systems.

Is it somehow possible to send field values to a 3rd party API within workflows?

2 0

Replies

replied on August 16, 2018 Show version history

Stephan,

You can use the SDK Script activity to access the 3rd party API from Workflow.  You will have to add a reference to the API assembly in the script activity by opening up the Project Explorer and right-mouse clicking on the References node.  You can select the API assembly from the GAC (if it is located there) or browse to the assembly location.  Once added as a reference you can then add the API namespace to make it available in the script section of the activity. 

In the screen snip below I have added a reference to the System.Windows.Forms.Datavisualization assembly and added the appropriate namespace in the script itself.

As far as accessing the repository to get a reference to the document and its metadata you can do some searches on the Answers site for code samples...

0 0
replied on August 16, 2018

If you're talking about a Web API, then you can use the HTTP Form Post or HTTP Web Request activities. We have workflows that interact with APIs for several other internal systems.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.