This is my first post to the Power Automate Community Forums - apologies in advance if I get any protocols wrong.
I have created a Flow that takes an e-mail, creates a Planner task and then (via SharePoint) appends any e-mail attachments as attachments to the Planner task. I'm using an array variable to manage all the attachments in one go when I use Update Task Details and it all works fine, but the problem is that the last file attached to the task has "Show On Card" selected.
Is there a way to stop the Show On Task attribute being set to true for the last attachment? I have been looking for references to the attributes for an attachment to see if I can add something like "setShowOnCardFlag": False (using the Dynamic Content entry facility or otherwise) to that I set up in the Append to Array Variable action in the Apply to Each loop. In code view, the Append to Array "value" entry currently looks like this:
{
"alias": @{body('Create_new_folder')?['{Name}']},
"resourceLink": @{body('Create_sharing_link_for_a_file_or_folder')?['link']}
}
Many thanks,
Rob