Support Article

Problem sending excel file using Sharepoint Online



As part of integrating Pega Application with Sharepoint Online, files of type PDF, MS Excel, MS Word, MS Powerpoint, jpg etc were to be sent to Sharepoint Online. When the files are opened from Sharepoint, they were corrupt.

Error Messages

Not Applicable

Steps to Reproduce

  1. Create a flow
  2. Attach a file using Out-of-the-box attachment feature
  3. Get the stream by opening the attachment object and converting it into byte array
  4. Send the resultant byte array to Sharepoint Online using a REST connector

Root Cause

This issue was determined to be a product enhancement request.


A new feature was added to REST Connector to allow binary data to be sent from Pega Application unlike string / text which is being sent as of now. This feature needs to be selected to sent the data in binary format to external systems.

Above feature is added through HFix-34049, which is a backport from Pega 7.3.

Published May 30, 2017 - Updated June 16, 2017

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.