Set(
vAnnexes,
false
);
//View attachments becomes false when screen is visible
Set(
vEmails,
Concat(
Distinct(
Filter(
App_LogHistory,
Status = “ONLINE”
),
EmailUser
),
Value,
”;”
)
);
// Step 1: Collect the emails in the EmailCollection collection
ClearCollect(
EmailCollection,
Office365Outlook.GetEmailsV3(
{
folderPath: “Inbox”,
// inbox home folder
fetchOnlyUnread: true,
// unread only
includeAttachments: true,
//include attachments
top: 25//top 25 is Max, to change it is another story
}
).value
);
// Step 2: Clear the Gallery3Items collection
Clear(Galeria3Items);
// Step 3: Iterate over EmailCollection to fill Gallery3Items
ForAll(
EmailCollection,
Collect(
Gallery3Items,
{
FromEmail: from,
SplitName: Last(
FirstN(
Gallery3.AllItems,
Mod(
CountRows(Gallery3Items) + 1,
CountRows(Gallery3.AllItems)
) + 1
)
).Value,
bccRecipients: bccRecipients,
bodyPreview: bodyPreview,
ccRecipients: ccRecipients,
from: from,
id: id,
replyTo: replyTo,
importância: importância,
internetMessageId: internetMessageId,
subject: assunto,
toRecipients: toRecipients,
attachments: attachments,
hasAttachments: hasAttachments,
isHtml: isHtml,
receivedDateTime: receivedDateTime,
isRead: isRead,
Anexos: attachments// Utilizando o campo de anexos diretamente da EmailCollection
}
)
);
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional