Automic Workload Automation

 View Only
  • 1.  Character Encoding Format in Automic Agents

    Posted Sep 22, 2021 04:15 AM
    Hi guys, 

    I need to download a PDF and store it in the automatic machine to later send it by mail. To obtain this PDF the only way is to make a call through REST API as seen in the image. What I came up with was to store the code that I get from the call but when doing so many characters disappear due to the encoding.

    What would be the correct way to make this call through REST API and store the PDF code in the Automic machine?


  • 2.  RE: Character Encoding Format in Automic Agents

    Posted Sep 23, 2021 01:18 AM
    Sometimes REST services embedd binary files in a base64 encoded response.

    So do you get an answer with content-type application/json:
    {
        "file": "......"
    }
    ...or plain binary (content-type application/pdf)?

    Plain binary you could get using common Unix/Windows commands (=> using an OS Job).

    Unix: curl, wget
    Windows: Invoke-Webrequest (powershell)

    ------------------------------
    ☎️ Swisscom Automation Engineer & 🧙 PE Membership Creator

    Automic Kurse, Tutorials, Tools und mehr auf:
    https://membership.philippelmer.com/
    Zwei Wochen kostenlos testen!
    ------------------------------