I am trying to supply a record as input to Flow from PowerApps, but failing. Any help is most welcome.
In Flow it is possible to initialise a variable of Object type and get its input from PowerApps:
It is also possible to add the flow to a button, and a record type of parameter is requested and accepted. (Whereas this does not seem to work if you initialise a variable of array type)
However, when running the action, this record is received as blank in Flow.
Has anyone found now to make this work, or have any information on this?
The following may be interested in this issue:
@Anonymous
There is a similar discussion in the Flow community but there is no actual information or solution, the solution marked is not a reply to the question.
Solved! Go to Solution.
Hi @Meneghino,
Do you want to pass a record value from your app to a flow (Microsoft Flow)?
Currently, a flow only accepts string values as input passed from an app. If you want to pass a record value from your app to a flow (Microsoft Flow), I afraid that there is no way to achieve your needs in 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, you could consider take a try to convert your record value into a string value, and then pass the string value to your flow.
I have made a test on my side, please take a try with the following workaround:
App configuration as below:
Set the OnSelect property of the "Pass Record" button to following formula:
'20180911_case1'.Run(
Concat(
Table({ColumnA:123,ColumnB:"ABC"}),
ColumnA&","&ColumnB&"#"
)
)
Note: The {ColumnA:123,ColumnB:"ABC"} represents the record that you want to pass from your app to a flow.
Flow's configuration as below:
Within the "Filter array" action, From field set to following formula:
split(outputs('Compose'),'#')
click "Edit in advanced mode", type the following formula:
@not(empty(item()))
Within the "Set variable" action, Name set to MyTestObject variable, Value field set to following formula:
{ "ColumnA": @{first(split(item(),','))}, "ColumnB": @{last(split(item(),','))} }
the flow works successfully as below:
In addition, please check and see if the following blog would help in your scenario:
https://www.techmikael.com/2017/05/saving-collection-of-images-from.html
Best regards,
Kris
In the past the way I pass records (and tables) to flow is using the Concat funcation to produce a CSV equivilent of the record (or table) as a long string. In flow I proceed to use split functions to convert the records (or table) into usable arrays. This method can be time consuming and so I am also quite interest in how we can to this better.
I've had this scenario a while back, and I worked on it by creating a JSON object manually using the Concat function for collections (similar to what @AnthonyPhan did with CSV) and used the 'Parse JSON' action in Flow to break it apart.
There's a feature request in the PowerApps Ideas page at https://powerusers.microsoft.com/t5/PowerApps-Ideas/Add-JSON-stringify-or-something-similar-for-debu..., I recommend you to vote it up to bubble up its priority. I'd definitely want to see that.
Hi @Meneghino,
Do you want to pass a record value from your app to a flow (Microsoft Flow)?
Currently, a flow only accepts string values as input passed from an app. If you want to pass a record value from your app to a flow (Microsoft Flow), I afraid that there is no way to achieve your needs in 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, you could consider take a try to convert your record value into a string value, and then pass the string value to your flow.
I have made a test on my side, please take a try with the following workaround:
App configuration as below:
Set the OnSelect property of the "Pass Record" button to following formula:
'20180911_case1'.Run(
Concat(
Table({ColumnA:123,ColumnB:"ABC"}),
ColumnA&","&ColumnB&"#"
)
)
Note: The {ColumnA:123,ColumnB:"ABC"} represents the record that you want to pass from your app to a flow.
Flow's configuration as below:
Within the "Filter array" action, From field set to following formula:
split(outputs('Compose'),'#')
click "Edit in advanced mode", type the following formula:
@not(empty(item()))
Within the "Set variable" action, Name set to MyTestObject variable, Value field set to following formula:
{ "ColumnA": @{first(split(item(),','))}, "ColumnB": @{last(split(item(),','))} }
the flow works successfully as below:
In addition, please check and see if the following blog would help in your scenario:
https://www.techmikael.com/2017/05/saving-collection-of-images-from.html
Best regards,
Kris
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
207 | |
98 | |
60 | |
55 | |
52 |
User | Count |
---|---|
257 | |
160 | |
87 | |
79 | |
68 |