How to get CIDs from "When new mail arrives (V3)" trigger

Cornelius Schreuer 67 Reputation points
2020-09-25T00:47:32.857+00:00

I am trying to reconstitute Emails that have been received through the named trigger. However, I have been unable to place attached inline images that had been placed in the body via CIDs since those do not seem to be exposed as attributes of the attachments.
Is there a way to get the Content-IDs for the attachments of Emails received via the trigger?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,354 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee
    2020-09-25T06:35:37.633+00:00

    The trigger should return an array of GraphClientReceiveMessage objects which each has an Attachments property with an array of GraphClientReceiveFileAttachment (same as the attachment object from the underlying Graph API). Each attachment has an Is Inline property which should be true for all inline attachments.

    But while you do get the file name from this object, the actual CID is not available. For that, the only way available seems to be parsing the body returned from the trigger.

    UPDATE: Since the trigger doesn't return the Content ID, one work around would be to call the Graph REST API directly to fetch the complete object instead.

    Also, please feel free to raise a feature request to return all types of file attachments instead of the just the base type.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.