Hi @samuelJ ,
Do you want to set a variable within a ForAll function?
Setting a variable within a ForAll function is not supported within PowerApps currently. If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:
https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas
As an alternative solution, I think collection could achieve your needs. On your side, you could consider use Collection to store the string value instead of the Set function. Please consider take a try with the following workaround:
Clear(SQLStatementCollection);
ForAll(
toUpdateSmall,
Collect(SQLStatementCollection, "abc")
)
If you want to concat these values within the SQLStatementCollection using a space (' '), please use the following formula (set Text property of a Label to following😞
Concat(SQLStatementCollection, Value & " ")
In addition, if you want to store the column value from your toUpdateSmall collection into the SQLStatementCollection, please modify above formula as below:
Clear(SQLStatementCollection);
ForAll(
toUpdateSmall,
Collect(SQLStatementCollection, ColumnNameFromtoUpdateSmall)
)
Please consider take a try with above solution, check if the issue is solved.
Best regards,