This is the context activity
{
name: 'composeExtension/fetchTask',
type: 'invoke',
timestamp: 2022-09-16T19:41:45.710Z,
localTimestamp: 2022-09-16T19:41:45.710Z,
id: 'f:07d4ae63-8070-7a80-38e2-a6ff47d2770c',
channelId: 'msteams',
serviceUrl: 'https://smba.trafficmanager.net/amer/',
from: {
id: '29:1JiEH1nLmzqH5YT7Do_1KRCs7ISDxUmVVKPbIzwM1pc884QpFbzi7GFznE58JZKe5sdjw65yzjAZtxyJt55B3mA',
name: 'Benoit Dupont',
aadObjectId: 'af24b8a2-cfe8-453a-a9b4-4a917b1534ae'
},
conversation: {
conversationType: 'personal',
tenantId: 'caafef10-9d12-4668-a0d6-268b71695e1a',
id: 'a:1ktMfOkUqtyhd4ub9GhZwaOdqpjjygWz5IZGvHZLTCnduBU1HmsFGO9vBAMZMQhqJOeiphjhE_k9G3HerhrBgeIf6uuA-FYRX93w_OsJYVTFX1lB36Q5xJgAGJtizZM1o'
},
recipient: {
id: '28:45fc30f1-94c5-48aa-b0df-ef0e41b65c6c',
name: 'otxmdemobot'
},
entities: [
{
locale: 'fr-CA',
country: 'CA',
platform: 'Web',
timezone: 'America/Halifax',
type: 'clientInfo'
}
],
channelData: {
tenant: { id: 'caafef10-9d12-4668-a0d6-268b71695e1a' },
source: { name: 'compose' }
},
value: {
commandId: 'CustomForm',
commandContext: 'message',
requestId: 'cde1762b-3661-4464-b9a4-e8722b9d261b',
messagePayload: {
linkToMessage: 'https://teams.microsoft.com/l/message/19:af24b8a2-cfe8-453a-a9b4-4a917b1534ae_45fc30f1-94c5-48aa-b0df-ef0e41b65c6c@unq.gbl.spaces/1663345138603?context=%7B%22contextType%22:%22chat%22%7D',
id: '1663345138603',
replyToId: null,
createdDateTime: '2022-09-16T16:18:58.603Z',
lastModifiedDateTime: null,
deleted: false,
subject: null,
summary: null,
importance: 'normal',
locale: 'en-us',
body: [Object],
from: [Object],
reactions: [],
mentions: [],
attachments: [Array]
},
context: { theme: 'default' }
},
locale: 'fr-CA',
localTimezone: 'America/Halifax',
rawTimestamp: '2022-09-16T19:41:45.71Z',
rawLocalTimestamp: '2022-09-16T16:41:45.71-03:00',
callerId: 'urn:botframework:azure'
}
And this is the activity payload
{
linkToMessage: 'https://teams.microsoft.com/l/message/19:af24b8a2-cfe8-453a-a9b4-4a917b1534ae_45fc30f1-94c5-48aa-b0df-ef0e41b65c6c@unq.gbl.spaces/1663344433978?context=%7B%22contextType%22:%22chat%22%7D',
id: '1663344433978',
replyToId: null,
createdDateTime: '2022-09-16T16:07:13.978Z',
lastModifiedDateTime: null,
deleted: false,
subject: null,
summary: null,
importance: 'normal',
locale: 'en-us',
body: {
contentType: 'html',
content: '<attachment id="47114f5e-b0f9-4208-9e15-b76f11ea51ab"></attachment>'
},
from: {
device: null,
conversation: null,
user: {
userIdentityType: 'aadUser',
id: 'af24b8a2-cfe8-453a-a9b4-4a917b1534ae',
displayName: 'Benoit Dupont'
},
application: null
},
reactions: [],
mentions: [],
attachments: [
{
id: '47114f5e-b0f9-4208-9e15-b76f11ea51ab',
contentType: 'reference',
contentUrl: 'https://xxwdq-my.sharepoint.com/personal/adm_xxwdq_onmicrosoft_com/Documents/Fichiers de conversation Microsoft Teams/ChannelUsageDaily.pdf',
content: null,
name: 'ChannelUsageDaily.pdf',
thumbnailUrl: null
}
]
}
What should be the message ID and attachmentID to use with the microsoft graph ?
Thanks