cancel
Showing results for 
Search instead for 
Did you mean: 

Draft an Email ,Add Attachments and Save it as .msg without Sending it

ArjunAshok
Level 2
I have a requirement to create a draft an email in Outlook ,After setting up the Email subject, body and Attachment I need to save it in .msg format  rather than sending it

Is this Possible with Outlook VBO's or Agilify exchange action's ?
1 BEST ANSWER

Helpful Answers

mkumar407
Level 7
Hi Arjun,

Please follow below steps for MS Outlook Email VBO:
1. Create copy of Send Email Action As Save Email
2. Rename Send Item Code bock - Save Email (or any new name) 
3. Add Parameter as Input for save Location of msg file  

Open code block and comment and as per below:
'mail.Save
'mail.Send
mail.SaveAs("File location to save.msg /Parameter as input")

Working for me. Hope same will work for you as well.

Thank you.

View answer in original post

4 REPLIES 4

mkumar407
Level 7
Hi Arjun,

Please follow below steps for MS Outlook Email VBO:
1. Create copy of Send Email Action As Save Email
2. Rename Send Item Code bock - Save Email (or any new name) 
3. Add Parameter as Input for save Location of msg file  

Open code block and comment and as per below:
'mail.Save
'mail.Send
mail.SaveAs("File location to save.msg /Parameter as input")

Working for me. Hope same will work for you as well.

Thank you.

a026833
Level 4

Hello,

I just tried the suggestion of changing a copy of the email VBO to save instead of send. I cant seem to get this to work so I am thinking I am doing something wrong here. Tried one email saved to the following location but it is not showing there after the stage is executed. I am not a visual basic developer so I probably made some mistake. Can you validate?

a026833_0-1733864412463.png

 

Hi @a026833 ,

Instead of hard coding the path of the file, please try to parameterize via variable like below,

Add a input variable,

Nandhakumar_0-1733908179392.png

Nandhakumar_1-1733908233886.png

Thanks,

Nandha

Thank you Nandha, I made that change  today. Everything is working as expected!