BookmarkSubscribeRSS Feed
SatishR
Obsidian | Level 7
We have successfully migrated our SAS email functionality from SMTP with Basic Authentication to an OAuth2-based approach using Microsoft Azure Portal and Microsoft Graph API.
Currently, we are able to trigger emails successfully using OAuth2. However, we are facing an issue while sending Excel file attachments.
As part of the OAuth2-based email implementation, we are converting the Excel (.xlsx) file into Base64 format and attaching it using the content Bytes attribute in the Graph API request. Although the email is delivered successfully with the attachment, the Excel file fails to open when downloaded from the email and shows an error indicating that the file is corrupted or the format is invalid.
SatishR_0-1767096495653.png

 

We have attached the following for your reference:

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 0 replies
  • 259 views
  • 0 likes
  • 1 in conversation