Flow connects to Power App, and forwards images to SPO using Mikael Svenson excellent article Saving a collection of images from PowerApps to SharePoint using Microsoft Flow .
Requirement to add condition in advance mode.
@not(empty(item()))
Read 'Build more powerful conditions in flows and more'
Tried contains as the above article suggest and this fails.
Read other support document pages. To name one Add a condition to a flow .
Thank you in advance for any suggestions to resolve this.
Solved! Go to Solution.
Hi @CABIRD ,
Maybe my previous post has caused you a wrong guide. If you have succeeded before, you could still configure a similar Flow according to your previous method.
The only thing that seems to change is that you can no longer use advanced mode when configuring Condition.
I noticed that the article you provided is using Filter array to exclude null values. It seems that you could use Filter array directly.
Best Regards,
Hi @CABIRD ,
Advanced mode has been removed from Condition, you could use expression directly to achieve your needs.
According to your description, it seems that you want to determine if item() is empty, please try the following configuration.
Hope it helps.
Best Regards,
Hello @v-bacao-msft
Thank you for taking the time to reply to my request for assistance. Sadly this failed.
Error message as follows:
The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@outputs('ProcessPhotos')' is of type 'String'. The result must be a valid array.
Best wishes
Christopher
Hi @CABIRD ,
This shows that the value in ProcessPhotos is a String instead of an array.
Apply to each needs to traverse the array, so this problem has arisen.
And generally use Expression is not directly in Inputs field input expression, we need to edit it in Expression and then apply it, like:
Best Regards,
Hello @v-bacao-msft
Thank you for replying. I really appreciate you taking the time to do so.
Regrettably
split(item(),'|')[0]
failed see error message below
InvalidTemplate. Unable to process template language expressions in action 'ProcessPhotos' inputs at line '1' and column '2608': 'The template language function 'split' expects its first parameter to be of type string. The provided value is of type 'Null'.
Previously I had Compose input code see below
@split(triggerBody()['@{triggerBody()['ProcessPhotos_Inputs']}],"#")
Hi @CABIRD ,
You don't seem to be configuring Flow according to the methods mentioned in the article you provided.
I have previously found that you are not using Expression correctly, so an example of using Expression is provided. But this is not what you need to configure in ProcessPhotos.
Please follow the method provided in the article to configure Flow. If there is any change in feature that makes you confused, please post it.
Best Regards,
Hello @v-bacao-msft
I have very carefully created a number of new Flows yet each time they break. Without question they appears to be a bug within Flow. I have had this working in the past.
Hi @CABIRD ,
Maybe my previous post has caused you a wrong guide. If you have succeeded before, you could still configure a similar Flow according to your previous method.
The only thing that seems to change is that you can no longer use advanced mode when configuring Condition.
I noticed that the article you provided is using Filter array to exclude null values. It seems that you could use Filter array directly.
Best Regards,
Reading Mikael Svenson excellent article Saving a collection of images from PowerApps to SharePoint using Microsoft Flow has helped to get it working (sort of) with some changes for example double quotes are not liked at all.
I know the issue of uploading images to SharePoint from Power Apps using Flow has been on many peoples wish list and it's not surprising. I do think Microsoft should at least either add a connector or just make it easier. Good Microsoft documentation with worked examples on the topic would be a excellent first step. Microosft Documentation needs to be updated when changes occur. All to often old documentation largley remains relevant but won't quite work due to small changes. Users really shouldn't have to spend days tracking down solutions.
Thank you for your help. I appreciate you taking the time to be of assistance.
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
15 | |
14 | |
7 | |
6 | |
5 |
User | Count |
---|---|
24 | |
18 | |
10 | |
8 | |
6 |