Dear Power Automate Support Team,
I would like to report an issue encountered when using the view formatting feature in a SharePoint list. This issue is related to creating custom buttons with the executeFlow action to trigger Power Automate flows.
Specifically, when I create a button in the SharePoint list to run Power Automate, the following error occurs after grouping the items in the list:
{
"customRowAction": {
"action": "executeFlow",
"actionParams": "{\"id\": \"xxxx-29bc-4117-yyyy-089d2d31bfa3\"}"
}
}
Error:
The template language expression 'triggerBody()?['entity']['ID']' cannot be evaluated because property 'ID' doesn't exist.
Description of the Issue:
-
When configuring the button with customRowAction in JSON and triggering Power Automate, the system cannot correctly access the ID of the grouped item. This happens when I apply the group by function in the SharePoint list. After grouping, SharePoint is unable to correctly retrieve the ID value of the item within the group, leading to the error above.
Reason:
When grouping the data in a different manner, particularly in a “grouped view”, it becomes impossible to access the IDs of individual items within the group. This disrupts the functioning of Power Automate, as the ID of the item cannot be determined.
I kindly ask the support team to investigate and address this issue.
Thank you for your assistance.