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:
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
  • 333 views
  • 0 likes
  • 1 in conversation