Has anyone else had problem passing Flow return values back to a Power App Component (not the main Canvas App)?
I built a component that calls a Flow to add a row to a Dataverse/CDS table. I want to return the ID of the row after it is created back to the calling Component. I have tried the following Flow Cards
In ALL cases, the only thing being returned is a Boolean (presumably whether the Flow processed successfully, as I am always getting a true).
In the Power App Component OnSelect it looks like this:
Set(
varMatterID,
SubmitNewIssueEnhancement.Run(
txtDescription.Text,
drpIssueOrEnhancement.Selected.Value,
drpScreenName.Selected.MenuLabel,
drpSeverity.Selected.Value
)
);
Notify(
"You have successfully submitted MatterID: " & varMatterID,
NotificationType.Success
);
Thoughts anyone before I call this into support? Is this perhaps yet another limitation of a Component?
Solved! Go to Solution.
So I don't know if I have answered my own question but after a little more testing by running this Flow outside of a Component and just inside of a Canvas App, it certainly appears that I have stumbled on either a "bug" or an "undocumented feature or limitation". It appears that no matter what value the Respond to a PowerApp or Flow returns (Text, Number, Email, File, etc) the only thing that the Component recognizes is a boolean (true/false).
I tried to put more detail in this message but the HTML parser is barking at me. Contact me if you want more details.
Anyway, I clearly haven't "solved" it but I will mark it solved so no one else wastes the number of hours I did on it and now I will go and submit this as a Support Ticket. I have looked carefully at the Known Limitations and don't see this particular one.
So I don't know if I have answered my own question but after a little more testing by running this Flow outside of a Component and just inside of a Canvas App, it certainly appears that I have stumbled on either a "bug" or an "undocumented feature or limitation". It appears that no matter what value the Respond to a PowerApp or Flow returns (Text, Number, Email, File, etc) the only thing that the Component recognizes is a boolean (true/false).
I tried to put more detail in this message but the HTML parser is barking at me. Contact me if you want more details.
Anyway, I clearly haven't "solved" it but I will mark it solved so no one else wastes the number of hours I did on it and now I will go and submit this as a Support Ticket. I have looked carefully at the Known Limitations and don't see this particular one.
Same problem.
Nothing to do then?
I haven’t looked into this since I posted my reply. I just gave up and worked around that (and many other) Component limitations at the time. I found that the whole Component area, while promising and powerful, was so underdeveloped and immature at the time that I ended up just using it for the most basic repetitive data entry forms and visual components.
It is probably worth revisiting recent releases and a Support Call to see if what, if anything, has changed but based on your experience, it doesn’t sound like much.