@GabrielHarangi rather than have the button in the form, why not just have it in the list?

The button is formatted in advanced mode with JSON using the following syntax. You would need to change the flow ID to your flow's ID and the button text etc.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "button",
"txtContent": "Change Created By to name of page contact",
"customRowAction": {
"action": "executeFlow",
"actionParams": "='{\"id\":\"50097cde-b800-4c6c-ade9-95be7574f4e5\", \"headerText\":\" ' + [$Title] + '\",\"runFlowButtonText\":\"Go\"}'"
},
"style": {
"background-color": "#cf000f",
"color": "white",
"border-radius": "10px"
}
}
In the flow the trigger is the SharePoint "for a selected item", then you add the get item action to get the column details and then add whatever other actions you need.
Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.