The ExchangeMetadata.Attachments.Labels attribute is missing in the output of the trigger "When an item violates a DLP policy"
I'm trying to create a workflow to automate the following scenario : so basically im trying to notify the manager of someone who tried to send sensitive files, attachements, or email to an external user, if the manager approve the action the email gonna be sent and if he refuses its gonna be blocked
The issue im facing is when the dlp is triggered the raw output it doesnt show me the label of the attachement it only shows the email sensitivity label but what if the user didnt put the label on the email . in the documentation it clearly says that this attribute exists i just dont know why it doesnt show
"headers": {
"Host": "10.0.26.7:20183",
"Accept-Encoding": "gzip,deflate",
"traceparent": "00-bd692701352dd8ef6bf9ec374aa60df7-c5dd47d1d90481d3-01",
"x-forwarded-for": "::ffff:40.113.181.134",
"x-original-proto": "https",
"x-original-host": "10.0.3.10:20005",
"x-ms-igw-external-uri": "https://defaultba5617356ead49f5b92277e9cfb8e1.22.environment.api.powerplatform.com/powerautomate/automations/direct/workflows/a83c3dede6364c12a714cd6280dd8d25/triggers/Quand_un_%C3%A9l%C3%A9ment_enfreint_une_strat%C3%A9gie_DLP/versions/08584527507407474054/run?api-version=1&tenantId=tId&environmentName=Default-ba561735-6ead-49f5-b922-77e9cfb8e122&sp=%2Ftriggers%2FQuand_un_%C3%A9l%C3%A9ment_enfreint_une_strat%C3%A9gie_DLP%2Fversions%2F08584527507407474054%2Frun%2C%2Ftriggers%2FQuand_un_%C3%A9l%C3%A9ment_enfreint_une_strat%C3%A9gie_DLP%2Fversions%2F08584527507407474054%2Fread&sv=1.0&sig=gLgtuQ2Yb_HPjqitM7Hq0OqXEgOotf-KzCea4-oneUM, https://workflowsmanagementservice.neu-il107.gateway.prod.island.powerapps.com/powerautomate/tenants/00000000-0000-0000-0000-000000000000/environments/Default-ba561735-6ead-49f5-b922-77e9cfb8e122/automations/direct/workflows/a83c3dede6364c12a714cd6280dd8d25/triggers/Quand_un_%C3%A9l%C3%A9ment_enfreint_une_strat%C3%A9gie_DLP/versions/08584527507407474054/run?api-version=1&tenantId=tId&environmentName=Default-ba561735-6ead-49f5-b922-77e9cfb8e122&sp=%2Ftriggers%2FQuand_un_%C3%A9l%C3%A9ment_enfreint_une_strat%C3%A9gie_DLP%2Fversions%2F08584527507407474054%2Frun,%2Ftriggers%2FQuand_un_%C3%A9l%C3%A9ment_enfreint_une_strat%C3%A9gie_DLP%2Fversions%2F08584527507407474054%2Fread&sv=1.0&sig=gLgtuQ2Yb_HPjqitM7Hq0OqXEgOotf-KzCea4-oneUM",
"x-ms-correlation-id": "4da4e4a1-74a2-4dc1-b28e-9e51ee7746fc",
"x-ms-activity-vector": "00.00.IN.07",
"x-ms-coreframework-caller-activity-id": "3f63a13e-23bb-4284-bcab-c1949bf14e27",
"x-original-for": "[::ffff:10.0.3.21]:48402",
"x-ms-ppapi-forwarded-path": "/powerautomate/automations/direct/workflows/a83c3dede6364c12a714cd6280dd8d25/triggers/Quand_un_%C3%A9l%C3%A9ment_enfreint_une_strat%C3%A9gie_DLP/versions/08584527507407474054/run",
"x-ms-ppapi-forwarded-api-version": "1",
"x-ms-gateway-clusters": "prdil107weu",
"x-forwarded-prefix": "/0cc3fb08-5264-4a34-8477-1fb53577d0bf/133933135839308870",
"x-forwarded-host": "workflowsmanagementservice.neu-il107.gateway.prod.island.powerapps.com",
"x-forwarded-proto": "https",
"forwarded": "by=_GA00000AO;for=\"[::ffff:40.113.181.134]\";host=workflowsmanagementservice.neu-il107.gateway.prod.island.powerapps.com;proto=https",
"Content-Type": "application/json; charset=utf-8",
"Content-Length": "799"
},
"queries": {
"tenantId": "tId",
"environmentName": "Default-ba561735-6ead-49f5-b922-77e9cfb8e122"
},
"body": {
"FlowId": "201f54e5-e0f1-4c63-a762-7b62c2bec4e4",
"ItemId": "<HE1PR04MB3114CE2B3FC154B812D28937CC6DA@HE1PR04MB3114.eurprd04.prod.outlook.com>",
"Operation": "DLPRuleMatch",
"CreationTimeUTC": "2025-06-03T17:35:09.3440319Z",
"LastModifiedTimeUTC": "2025-06-03T17:35:09.3440319Z",
"Actor": "meryem@M365x27.onmicrosoft.com",
"Workload": "Exchange",
"SharedWith": [
"xxxx@gmail.com"
],
"SensitivityLabels": [
"Public"
],
"ContentSize": 132864,
"PolicyName": "Block files that are labeled as \"Interne\" from external sharing",
"PolicyId": "d33bb25a-5fa4-41cf-9806-1b82e48808d8",
"RuleId": "f2b9db10-dcc0-4f3b-bfc1-dd9767992477",
"RuleName": "Block external sharing",
"ExchangeMetadata": {
"Subject": "file restreint ",
"Attachments": [
{
"Name": "test restreint.docx",
"Size": 0
},
{
"Name": "test restreint.docx",
"Size": 0
}
]
}