I am very new to Power Apps, and I am having an issue with creating a collection. My code is below, but I cannot figure out why I keep receiving errors on it. For FlowResponses, I am receiving the error 'Name isn't valid. This identifier isn't recognized.' For the MECHANIC.run command, I am receiving the error 'Invocation of unknown or unsupported function.' MECHANIC is the name of a flow I created.
Clear(FlowResponses);
UpdateContext({resultMessage: "", submitWasClicked: true});
ForAll(
Filter(
PhotoLog,
jobId = JobList.Selected.jobId
),
Collect(
FlowResponses,
{
response: MECHANIC.Run(
Image,
FolderPath & type,
name & "_" & Text(Now(), "[$-en-US]HHmmss") & ".png")
)
}
)
);
I have no idea what I am doing wrong , and I hope that I have given enough information. Thank you in advance for any help that can be given.
Hi @Skeeve ,
I am following up this post to see if it can be closed if you obtained the result you were looking for.
Please click Accept as solution if my post helped you solve your issue as this will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @Skeeve ,
Just checking if you got the result you were looking for on this thread. Happy to help further if not.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Thanks @Skeeve ,
Getting back to basics, put this on a button and see if the Flow runs - we will need to "build out" from there until the error is found
MECHANIC.Run(
Image,
FolderPath & type,
name & "_" & Text(Now(), "[$-en-US]HHmmss") & ".png")
)
The function Clear has some invalid arguments.
FlowResponses name isn't recognized.
The function ForAll has some invalid arguments.
The function Collect has some invalid arguments.
Mechanic.run is getting invocation of unknown or unsupported function.
Thank you for your help.
@Skeeve ,
I need to see your entire code that has errors, not guess what you might have changed.
Can you please post this with what is showing as an error and what the error is.
The ForAll is in my original post.
Thank you.
Thank you. After testing your solution, I am now getting the error, 'The function ForAll has some invalid arguments.'
Hi @Skeeve ,
You cannot run commands inside the {} of a Collect or Patch (and a number of others) statement.
I can see what you are trying to do (collect responses from a Flow). You would normally do this one at a time with the Set command and capture the response as a Variable.
I cannot test this, but as an experiment, try
Collect(
FlowResponses,
MECHANIC.Run(
Image,
FolderPath & type,
name & "_" & Text(Now(), "[$-en-US]HHmmss") & ".png")
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1