I've built an app for our staff to create new projects. The form asks questions like the client name, region, address, project manager, etc. It uses this data, in part, to create a new item in a SPO List. So, I'm just trying to get data from this App form and send it to PowerAutomate.
From the guides I've found online, the OnSelect for the button should be something like:
NewProjectFLOW.Run(ClientName.Text, Region.Selected.Value)
Doing so results in the error:
Error: Invalid number of arguments: received 2, expected 0-1.
I get the same error when I write this:
NewProjectFLOW.Run("Test Name", "Test Region")
When I'm typing out that formula, it's suggesting the formula be:
NewProjectFLOW.Run({text:" ", text_1:" "}
When I use this formula, it works:
NewProjectFLOW.Run({text:ClientName.Text,text_1:Region.Selected.Value})
I'd really prefer to use the names of my inputs as I have a couple dozen of them. However, when I run this formula, it fails to send any data through.
NewProjectFLOW.Run({clientname:ClientName.Text,region:Region.Selected.Value})
Where 'clientname' and 'region' are the text input fields in the flow using PowerApps (V2) trigger.
Is it not possible to utilize the input names as I've entered them?
Also, I'm looking into a guide I found that suggests using collections and parsing JSON. I may give that a shot but I'm hesitant given the issues I'm having.