Hi all,
I'm building a flow with a Send an Email action, and in the body I am trying to include a few metadata fields from a document
When a document is added to a library, send an email
email body contains several metadata fields from the document
One of the fields is a managed metadata field with multiple selections enabled.
As soon as I add that metadata field, Flow automatically creates a For Each action based on that metadata.
I am not interested in a For Each action, because I don't want to do anything based on the terms in that field. I just want to display them in an email.
Any idea on how to get Microsoft to STOP trying to be so helpful?
I need to not have that Apply to Each.
Thanks!
Solved! Go to Solution.
HI @SylvieLet17,
This happens when you add an element form an array. If you want to avoid this then you will have to make sure that you don';t take data our of an array. So for ewxample first collect the right element out of the array and convert it into a simple piece of data before you use it.
Hello, @SylvieLet17!
Have you had an opportunity to apply @v-yuazh-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!
Thank you for being an active member of the Flow Community!
-Gabriel
Flow Community Manager
Thanks Alice!
Oh my gosh. After looking around for answers on any number of problems with my PowerApp form and Flow I was getting used to hour long efforts to find answers. This was perfect and I was able to follow it easily.
David
@Pieter_Veenstra wrote:HI @SylvieLet17,
This happens when you add an element form an array. If you want to avoid this then you will have to make sure that you don';t take data our of an array. So for ewxample first collect the right element out of the array and convert it into a simple piece of data before you use it.
@j_hermes , The apply to ewach simply happens when you proces an array. If you know that the array only holds one item you can avoid the additonal apply to each by using the first fucntion on the array, giving you a single item
I have a flow working off of an http request and if there's multiple rows in the array it adds all the array data for each row instance. What can I do to fix this?
how do I do that please? if i've added a filter and then I just want to extract the first item of that filtered array, what's the syntax to use for this?
Thanks
I'm having the opposite problem. Per this article, I'm expecting Power Automate to automatically generate an "Apply to each," but it doesn't. When I add one manually, it doesn't generate the "List of response notifications Response ID" variable I need to use to populate the "Select an output from previous steps" item.
OMG. After spending days trying to get rid of nonsense code in the approval emails, this is the solution that resolved everything! Yes! Thank you so much. Now my multi-select form field data appears without garbage code in the email. Managers don't want to see that.
Super grateful!
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
User | Count |
---|---|
86 | |
58 | |
41 | |
35 | |
32 |
User | Count |
---|---|
79 | |
67 | |
57 | |
49 | |
40 |