Hi,
SAS program send an email with attached report file, the expected action by the recipient is to review the attached files and approve/reject the report by clicking the link embedded in the message body.
How this can be done ?
The part to send the email recipient is in place and is working fine.
How to check and track whether they have approved the report by clicking the link in the message body?
Once approved, the email has to be moved to another folder.
Can this be done using SAS ?
Thanks,
Elizabeth
I would work on figuring out first whether SAS can generate an email with an accept/reject button.
After that, I would think the rest you would want to automate in Outlook, with rules or some outer microsoft automation approach. I wouldn't use SAS for that part of triggering an action based on the accept/reject response.
Is there an existing sample sas code which I can use ?
Here's a good article:
https://communities.sas.com/t5/SAS-Communities-Library/How-to-send-email-using-SAS/ta-p/746523
In the comments, Chris Hemedinger mentions that voting buttons are not part of the SMTP standard, they're an outlook thing. So you can't generate them from SAS. But you could use a link to implement your own voting.
I haven't done this sort of automation, but I would look from the Microsoft automation side. Whether that means Outlook automation via simple outlook rules, or ms flow / power automate, or something like that. Perhaps your email admin could help develop a solution.
Hello @wellsfargo123
This is my analysis of your issue.
SAS is good at generating reports, and in this case the report is an attachment, so that might make this easier to automate. Maybe:
So you let SAS generate the report, and send an email that provides the report and triggers an automated process that is managed outside of SAS.
For sending the email we are planning to use SAS. Once we receive the response email (Y/N) , i was thinking of developing a program to move that email with specific subject to another folder using sas. From what I understand the only possible option is to use rules in MS outlook. Still researching for best options.
@wellsfargo123
You can consider using a VBA script.
A SAS program can call this VBA script or it can be run using a scheduler according to the required schedule..
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.