Using List Records CDS action to get activitymimeattachments from D365 to post them to sharepoint. These are pdf files generated from a report that get attached to emails. Seems like there is a severe limitation in the size of fields returned by this action.
Need to get filename and body from the activitymimeattachment, however body is a base64 encoded binary file and when it gets large,, list records truncates the body field and all fields appearing after it like filename.
The record I get back looks like this:
{
"@odata.context": "https://commondataservice-wus.azconn-wus.p.azurewebsites.net/v2/$metadata#datasets('contoso.crm')/ta...",
"@odata.id": "https://contoso.crm.dynamics.com/api/data/v9.0/activitymimeattachments(9a8bc8d7-30d0-ea11-a812-000d3...)",
"@odata.etag": "",
"ItemInternalId": "9a8bc8d7-30d0-ea11-a812-000d3a8c954b",
"overwritetime": "1900-01-01",
"attachmentnumber": 0,
"solutionid": "25a01723-9f63-4449-a3e0-046cc23a2902",
"_objectid_value": "8d8bc8d7-30d0-ea11-a812-000d3a8c954b",
"_objectid_type": "emails",
"activitymimeattachmentidunique": "2b6e090b-caf7-4206-9e4c-1e736a81288a",
"isfollowed": false,
"activitymimeattachmentid": "9a8bc8d7-30d0-ea11-a812-000d3a8c954b",
"_attachmentid_value": "9b8bc8d7-30d0-ea11-a812-000d3a8c954b",
"_attachmentid_type": "attachments",
"ismanaged": false,
"objecttypecode": "email",
"componentstate": 0,
"_componentstate_label": "Published",
"versionnumber": 133001837,
"attachmentcontentid": null,
"anonymouslink": null
}
It does not contain the 2 fields I am interested in.
Any ideas?
Posting the oData.id in a web browser does return body and filename.
Hi @bwilliamson,
Which CDS connector are you using? Is the regular CDS or CDS (Current Environment)?
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
80 | |
55 | |
55 | |
43 | |
39 |
User | Count |
---|---|
83 | |
81 | |
76 | |
64 | |
42 |