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

Question

Question

Importing a Document to the Cloud API, where is the field names and how do you handle the hierarchy?

asked on July 25, 2023

In the Workflow 11 HTTP Form Post activity there is no option to define a boundary or enter any JSON. Instead you get a window that looks like this asking for each field in the function.

But given the JSON example, where do I find the field name for this field which would be the file.

For something like this

I assume the field name is "template" and the value is "Email".

But for something like this

we have a hierarchy, which JSON allows for. How do I do this in the visual low-code window asking for a field and value?

*Note - I tried to use a simple post activity so I could just enter JSON and a boundary but it does not allow me to select formdata as a content type like I can in the Cloud web rules. I assume you MUST use this fully visual activity if you want to post form data.

0 0

Replies

replied on July 25, 2023

HTTP Form Post is a simplified version of HTTP Web Request meant to interact with Laserfiche Forms. Use HTTP Web Request.

0 0
replied on July 26, 2023

I do not see a formdata content type option in the HTTP Web Request activity

0 0
replied on July 27, 2023

Since you're using Workflow, have you looking into using the .NET library for the Repository API? I believe it handles all the web request minutia like this for you.

0 0
replied on July 31, 2023

Not really sure how this would work. Do you mean to use a Script activity instead? I am looking to use the HTTP Post activity so that I can access my entries in the Repository. I don't believe the Script activity has any access to the repository entries, unless you go down the road of building your own custom solution with the SDK.

We just want to make a quick API call to send an entry to Cloud much like a briefcase activity.

0 0
replied on July 31, 2023

The SDK Script (vs "Script") activity does, and both types of Script activity can access Workflow variables like BoundEntryId and BoundEntryInfo.

0 0
replied on July 31, 2023

So this would be a solution where we developed our own application in C#, but I wonder why the HTTP Post activity is not capable on it's own.

I was able to use the Cloud based HTTP Post activity without any issue.

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

Sign in to reply to this post.