Hello,
Referencing this thread: Save email as pdf
I've been trying to export a group email as PDF using a similar approach from above's post but with no luck. For some reason, Outlook user emails and group emails are handled extraordinarily different, with group emails having conversations, threads, and posts instead of the straight-forward field normal emails have. The documentation doesn't specify what those three fields are under the context of emails so I've been having great difficulty in understanding how to do this.
Can anyone point me in the right direction? Would greatly appreciate it.
Hi there,
I went all the way through this and then couldn't figure out how to get File Content that would populate correctly into OneDrive and translate to PDF. I can get the ATTACHMENTS out of the post, no problem, but the post itself, as-shown (ie, not just the text from the post) ... I don't know.
BUT! But.
This works....
The first Compose is: first(triggerOutputs()?['body/threads'])
The Thread ID is: triggerOutputs()?['body/threads'][0]?['id']
The Post ID is: body('Parse_JSON')?['posts'][0]?['id']
Then you can take all the actions as outlined on the other post for the newly received email.
... I am still going to look and see if I can find file content on this stupid thing, though. Will update you if I find it.
R
I answer questions on the forum for 2-3 hours every Thursday!
Thank you, it's a start.
Update: After countless hours of reading and testing, im fully convinced saving/ exporting an email just isn’t possible with group mail.
Yeah, I don't think so either - I tried lots of ways. I mean, you could take the post content and create a Word doc and PDF that ... or you can forward it to an email account and PDF that.. but directly PDFing an email that comes into a group, I agree with your conclusion. It's weird isn't it...
I answer questions on the forum for 2-3 hours every Thursday!
Hello all,
I glad to inform that in fact you can export as eml an email from the group mailbox (the same thing as does "Export email (V2)" for emails of the user mailbox).
It can be done using GRAPH request. Currently I'm not ready to publish the full description of the procedure.
I just state that's possible.