Skip to content

Instantly share code, notes, and snippets.

@HiteshRepo
Created February 23, 2024 12:15
Show Gist options
  • Save HiteshRepo/f58318eea2c1f46de1b72deb9e0c7a01 to your computer and use it in GitHub Desktop.
Save HiteshRepo/f58318eea2c1f46de1b72deb9e0c7a01 to your computer and use it in GitHub Desktop.
item attachement with no nested attachement, fails while upload
{
"@odata.type": "#microsoft.graph.itemAttachment",
"name": "Nested Message",
"size": 20964,
"item": {
"@odata.type": "#microsoft.graph.message",
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('a4a472f8-ccb0-43ec-bf52-3697a91b926c')/messages/$entity",
"@odata.etag": "W/\"CQAAABYAAADSEBNbUIB9RL6ePDeF3FIYAAB3maFQ\"",
"bccRecipients": [],
"body": {
"content": "<html><head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><style type=\"text/css\" style=\"display:none\">\r\n<!--\r\np\r\n\t{margin-top:0;\r\n\tmargin-bottom:0}\r\n-->\r\n</style></head><body dir=\"ltr\"><div class=\"elementToProof\" style=\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)\"><span class=\"x_elementToProof ContentPasted0\" data-ogsc=\"rgb(0, 0, 0)\" data-ogsb=\"rgb(255, 255, 255)\" style=\"font-size:12pt; margin:0px; color:rgb(0,0,0)!important; background-color:rgb(255,255,255)!important\">Lidia,</span> <div class=\"x_elementToProof\" data-ogsc=\"rgb(0, 0, 0)\" data-ogsb=\"rgb(255, 255, 255)\" style=\"font-size:12pt; margin:0px; color:rgb(0,0,0)!important; background-color:rgb(255,255,255)!important\"><br class=\"ContentPasted0\"></div><div class=\"x_elementToProof ContentPasted0\" data-ogsc=\"rgb(0, 0, 0)\" data-ogsb=\"rgb(255, 255, 255)\" style=\"font-size:12pt; margin:0px; color:rgb(0,0,0)!important; background-color:rgb(255,255,255)!important\">I hope this message finds you well. I am researching a database construct for next quarter's review. SkyNet will<span class=\"ContentPasted0\">&nbsp;</span><span data-ogsb=\"rgb(255, 255, 0)\" class=\"ContentPasted0\" style=\"margin:0px; background-color:rgb(255,255,0)!important\">not</span><span class=\"ContentPasted0\">&nbsp;</span>be able to match our database process speeds if we utilize the formulae that are included.&nbsp;</div><div class=\"x_elementToProof\" data-ogsc=\"rgb(0, 0, 0)\" data-ogsb=\"rgb(255, 255, 255)\" style=\"font-size:12pt; margin:0px; color:rgb(0,0,0)!important; background-color:rgb(255,255,255)!important\"><br class=\"ContentPasted0\"></div><div class=\"x_elementToProof ContentPasted0\" data-ogsc=\"rgb(0, 0, 0)\" data-ogsb=\"rgb(255, 255, 255)\" style=\"font-size:12pt; margin:0px; color:rgb(0,0,0)!important; background-color:rgb(255,255,255)!important\">Please give me your thoughts on the implementation.</div><div class=\"x_elementToProof\" data-ogsc=\"rgb(0, 0, 0)\" data-ogsb=\"rgb(255, 255, 255)\" style=\"font-size:12pt; margin:0px; color:rgb(0,0,0)!important; background-color:rgb(255,255,255)!important\"><br class=\"ContentPasted0\"></div><div class=\"x_elementToProof ContentPasted0\" data-ogsc=\"rgb(0, 0, 0)\" data-ogsb=\"rgb(255, 255, 255)\" style=\"font-size:12pt; margin:0px; color:rgb(0,0,0)!important; background-color:rgb(255,255,255)!important\">Best,</div><div class=\"x_elementToProof\" data-ogsc=\"rgb(0, 0, 0)\" data-ogsb=\"rgb(255, 255, 255)\" style=\"font-size:12pt; margin:0px; color:rgb(0,0,0)!important; background-color:rgb(255,255,255)!important\"><br class=\"ContentPasted0\"></div><span class=\"x_elementToProof ContentPasted0\" data-ogsc=\"rgb(0, 0, 0)\" data-ogsb=\"rgb(255, 255, 255)\" style=\"font-size:12pt; margin:0px; color:rgb(0,0,0)!important; background-color:rgb(255,255,255)!important\">Dustin</span><br></div></body></html>",
"contentType": "html",
"@odata.type": "#microsoft.graph.itemBody"
},
"bodyPreview": "Lidia,\r\n\r\nI hope this message finds you well. I am researching a database construct for next quarter's review. SkyNet will not be able to match our database process speeds if we utilize the formulae that are included.\r\n\r\nPlease give me your thoughts on th",
"ccRecipients": [],
"conversationId": "AAQkAGZmNjNlYjI3LWJlZWYtNGI4Mi04YjMyLTIxYThkNGQ4NmY1MwAQANPFOcy_BapBghezTzIIldI=",
"conversationIndex": "AQHY1Cpb08U5zL4FqkGCF7NPMgiV0g==",
"flag": {
"flagStatus": "notFlagged",
"@odata.type": "#microsoft.graph.followupFlag"
},
"from": {
"emailAddress": {
"address": "dustina@8qzvrj.onmicrosoft.com",
"name": "Dustin Abbot",
"@odata.type": "#microsoft.graph.emailAddress"
},
"@odata.type": "#microsoft.graph.recipient"
},
"importance": "normal",
"inferenceClassification": "focused",
"internetMessageId": "<SJ0PR17MB56220C509D0006B8CC8FD952C3579@SJ0PR17MB5622.namprd17.prod.outlook.com>",
"isDeliveryReceiptRequested": false,
"isRead": false,
"isReadReceiptRequested": false,
"receivedDateTime": "2022-09-29T17:39:07Z",
"replyTo": [],
"sender": {
"emailAddress": {
"address": "dustina@8qzvrj.onmicrosoft.com",
"name": "Dustin Abbot",
"@odata.type": "#microsoft.graph.emailAddress"
},
"@odata.type": "#microsoft.graph.recipient"
},
"sentDateTime": "2022-09-29T17:39:02Z",
"subject": "Item Attachment Included",
"toRecipients": [
{
"emailAddress": {
"address": "LidiaH@8qzvrj.onmicrosoft.com",
"name": "Lidia Holloway",
"@odata.type": "#microsoft.graph.emailAddress"
},
"@odata.type": "#microsoft.graph.recipient"
}
],
"webLink": "https://outlook.office365.com/owa/?ItemID=AAMkAGZmNjNlYjI3LWJlZWYtNGI4Mi04YjMyLTIxYThkNGQ4NmY1MwBGAAAAAADCNgjhM9QmQYWNcI7hCpPrBwDSEBNbUIB9RL6ePDeF3FIYAAAAAAEMAADSEBNbUIB9RL6ePDeF3FIYAAB4moqeAAA%3D&exvsurl=1&viewmodel=ReadMessageItem"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment