Support Article
Problem sending excel file using Sharepoint Online
SA-38694
Summary
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
- Create a flow
- Attach a file using Out-of-the-box attachment feature
- Get the stream by opening the attachment object and converting it into byte array
- Send the resultant byte array to Sharepoint Online using a REST connector
Root Cause
This issue was determined to be a product enhancement request.
Resolution
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 June 16, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.