How will I be able to get email attachments from a 'MailMessage" list without looping?
I have the following setup:
- I have a data table which I used to store details from the retrieved emails with attachments. I pass then this data table to another workflow
- I pass the ‘MailMessage’ list to same workflow in 1
- In the workflow called by 1 & 2, I need to get the attachments for the emails in the ‘MailMessage’ list.
Here’s the snippet where I need to grab the attachments from the list:
In the ‘Save Email Attachments’ activity though I get this error message:
I tried to put the above activity in a ‘Use Desktop Outlook App’ and the error goes away. However in the account, it will use the ‘Default Email Account’. I need the users of the bot to access an email that I was given access to, and something that’s set in the Config file.
Here’s how I loop through the items in the data table and compare it from an item in an orchestrator queue: