VMware Cloud Community
rkuechler
Enthusiast
Enthusiast

vRO 8.6.1: Download output of a workflow as a file via vRO REST api?

Hello
We have created a workflow, which in the end saves a specific binary content in a local temp file within vRO. This file should be the output of the workflow as well.
Now we would like start this workflow with the vRO REST api with the expectation, that this temp file or workflow output should be downloaded automatically.

I hope I have described my problem understandably.

Regards
Roman

Tags (3)
Reply
0 Kudos
1 Reply
bdamian
Expert
Expert

Hi rkuechler,

The best way I've found to do this is setting on output variable as MimeAttachment. This will be expose in the API call as a Base64 string. 

Now, be careful because this will be saved in the database so, if you are creating large files, this will have a big impact. I've done this to export a not so big CSV and JSON files.

An example:

1. Create a Json

bdamian_0-1662129720907.png

2. Output the mimeAttachment

bdamian_1-1662129752568.png

3. Api call response

bdamian_3-1662129915199.png

Hope this helps.

 

---
Damián Bacalov
vExpert 2017-2023 (7 years)
https://www.linkedin.com/in/damianbacalov/
https://tecnologiaimasd.blogspot.com/
twitter @bdamian
Reply
0 Kudos