โ05-24-2024 03:49 AM
I would like to create a mechanism that, upon initialization of a recipe in Workato from the 4me system, generates a PDF file based on the data provided in the payload. I would like to use the 4me connector and a script written in Python for this purpose. Does the triggered recipe have its own user space where such a file can be created? If so, after how long is it cleared?
Solved! Go to Solution.
โ05-29-2024 04:12 PM
This sounds totally doable. To be clear, are you saying the Python script will generate the PDF? The native connector may not support the library you need to do that, so keep that in mind.
I'm not sure what you mean by "user space". When a recipe is triggered, it will perform all actions according to its design. The results of those actions will be stored in a log for a configurable amount of time, but it's for reference. For example, a user wouldn't go to a log to download the generated PDF.
If the Python script generates a PDF, you'll need to return the PDF data/file contents within the recipe and then do something with the data in a subsequent action, like email it or upload it or whatever.
The recipe might look something like this:
Hope this helps!
โ05-29-2024 04:12 PM
This sounds totally doable. To be clear, are you saying the Python script will generate the PDF? The native connector may not support the library you need to do that, so keep that in mind.
I'm not sure what you mean by "user space". When a recipe is triggered, it will perform all actions according to its design. The results of those actions will be stored in a log for a configurable amount of time, but it's for reference. For example, a user wouldn't go to a log to download the generated PDF.
If the Python script generates a PDF, you'll need to return the PDF data/file contents within the recipe and then do something with the data in a subsequent action, like email it or upload it or whatever.
The recipe might look something like this:
Hope this helps!