templateId
for a WorkflowtemplateId
Open the workflow for editing.
Look at the URL in your browser's address bar. The URL will include a query string containing the templateId
.
Example:
https://make.powerautomate.com/.../details?name=workflow-id&templateId=<your-template-id>
templateId
will appear after templateId=
in the URL.If the templateId
is not visible in the URL:
.zip
file from the Power Automate portal..zip
file.definition.json
file inside the package.templateId
field in the JSON file.Once you have the templateId
, update your custom button in SharePoint with the correct parameters.
Example JSON for a button:
{
"elmType": "button",
"txtContent": "Trigger Workflow",
"customRowAction": {
"action": "executeFlow",
"actionParams": "{\"templateId\":\"<your-template-id>\",\"environment\":\"<environment-id>\",\"flowId\":\"<workflow-id>\"}"
},
"style": {
"background-color": "blue",
"color": "white"
}
}
<your-template-id>
with the templateId
you found.<environment-id>
with your new environment's ID.<workflow-id>
with the ID of the workflow.executeFlow
action in SharePoint is tightly coupled with Power Automate, and ensuring these parameters are correctly passed is essential for the flow to execute.------------------------------------------------
⭐ If this was helpful, please like and mark as a verified answer to help others find this too!
Always glad to help! 💯💯💯💯💯
Tom
Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn