Skip to main content

StartWorkflowWithDocument

We can trigger a flow by sending a request to the endpoint that we have forwarded with StartWorkflowWithDocument via Postman. As an example for you, in our csp support environment, we start the HBA_01 project with the Flow1 flow.

StartWorkflowWithDocument operations: 1) https://................ DNS ADDRESS .................... /apis/projects/............. PROJECT NAME ..................../workflows/............. FLOW NAME ..................../StartWorkflowWithDocument 2) Bearer token must be entered in the Authorization section. (3) 3) Bimser-Encrypted-Data and Bimser-Language and Bimser-FootPrint keys are added to the Headers field and value values are written. (2) 4) You must enter the Body section that I have forwarded below. (4)

{ "documentName": "Document1",
"documentData": { "secretKey": "string", "controlValues": { //The values of the objects in the project are set. In our project, there are TextBox1 and TextBox2 objects. "TextBox1": "D613B166", "TextBox2": "LBA0960137" } }, "eventId": 4 // The Identity of the send event of the flow start object in the project flow is 4. That's why 4 is written in the eventId. }

Note: You can get the bearer token and the key value values to be entered in the headers field from f12 after logging in to the csp page. You can get the network --> from GetUserDetail.

5) After finishing these operations, you can submit the request. The request should be checked in the Result section. (1) We see that the flow through the CSP is also progressing, and it comes to the position object. (5)