Announcement

Collapse
No announcement yet.

How can I use Workflow to send an HTTP request?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How can I use Workflow to send an HTTP request?

    Hello, please, has anyone been able to send a PDF file via the workflow? I'm unable to send my file to the external API, and there are no errors in the log file. However, I can send it using JavaScript.

  • #2
    Hi, In newer versions of Advanced Pack, there is a field "Payload from variable". You can assign the whole PDF file content to a variable (in an Execute Formula Script action before) and send it via workflow.

    You can also compose any payload using formula.
    Last edited by yuri; 06-24-2023, 08:47 AM.

    Comment


    • abidoss
      abidoss commented
      Editing a comment
      thank you for your response. However, I would prefer if there is already an example. I already have the Advanced pack. My idea is to send the PDF file to the API, receive a result, and then store it in a text field.

  • #3
    How would you assign the whole pdf content?

    just by using the field name? like
    Code:
     $pdf = file;
    or is it something like
    Code:
    $pdf = fileContent;
    ?

    I am not able to find a way to do it
    Last edited by Kharg; 07-01-2023, 10:46 AM.

    Comment


    • yuri
      yuri commented
      Editing a comment
      There's no way to read file contents from the attachment entity at the moment. One would need to create a simple formula function for this. I planned to add such a function.

    • Kharg
      Kharg commented
      Editing a comment
      Would be really useful for situations like this
Working...
X