Skip to main content
Community site session details

Community site session details

Session Id : +HoyaF+XR5ZLiS3Hw5SNPr
Power Automate - Using Connectors
Unanswered

SAP ERP CONNECTOR - DOWNLOAD BINARY DATA WITH SO_DOCUMENT_READ_API1 FM

Like (1) ShareShare
ReportReport
Posted on 7 May 2024 14:17:41 by 96

Hello!

 

I would like to know whether it's possible to download binary data with SAP ERP connector (invoke function action). My intention is to download GOS attachments using SO_DOCUMENT_READ_API1 FM, which returns attachments as binary.

 

Thanks!

 

Andoni

  • ksoze92 Profile Picture
    96 on 21 May 2024 at 15:00:18
    Re: SAP ERP CONNECTOR - DOWNLOAD BINARY DATA WITH SO_DOCUMENT_READ_API1 FM

    Hi @jongilman ,

     

    The CONTENTS_HEX object is hex, not base64 (so I have to convert from hex to base64). How can I handle HEX data in Power Automate?

     

    Thank you!

  • ksoze92 Profile Picture
    96 on 15 May 2024 at 09:36:30
    Re: SAP ERP CONNECTOR - DOWNLOAD BINARY DATA WITH SO_DOCUMENT_READ_API1 FM

    Hey @jongilman , thanks a lot for your answer! I will give this a try once I troubleshoot my error with SAP ERP connector....(https://powerusers.microsoft.com/t5/Using-Connectors/SAP-ERP-connector-Cannot-invoke-RFC-timeout/m-p/2747620/highlight/true#M22860)

  • jongilman Profile Picture
    Microsoft Employee on 13 May 2024 at 18:20:01
    Re: SAP ERP CONNECTOR - DOWNLOAD BINARY DATA WITH SO_DOCUMENT_READ_API1 FM

    Yes, however what SAP calls "binary" is typically base64-encoded data, not actual binary data. Also, if the file is a text file, the data is returned in the OBJECT_CONTENT array. Your logic could be as follows:

    • If file extension is "txt," concatenate the LINE property from OBJECT_CONTENT into a single string
    • Else concatenate the LINE property from OBJECT_HEX into a single base64-encoded string

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Featured topics

Loading complete