Hi,
I have a toggle control in my master form to show if all items have been delivered; i want to toggle this to 'True' (else false) if all items in a SharePoint list have their value set to 'Yes' in the Delivered? column i.e. if only one item is set to 'No' then the Toggle value will remain 'False' in the form. The common value for each item is PONumber.
Any help much appreciated,
kind regards,
Mike
Solved! Go to Solution.
So you probably need to look at your filters a bit more and wrap your head around what is going on.
It seems that you have a PO Items List, which is a filtered list of items that match the PO number you have in the master form (the top part of your screen).
I don't know if POOrderDetails is a filtered collection or if it is a datasource of your Add/Edit PO Items list.
So, one of the things you can use to shortcut all the filters is to use the data of the gallery as it is shown. I personally do this often when filtering - filter once and then derive everywhere from that. The reason I mention it is for my next suggestion, which is to change your toggle default logic to this:
CountRows(Filter(POItemGalleryName.AllItems, ItemDelivered<>true))=0
Notice in this case (not sure what your Gallery name is, but substitute it in there) that we're cunting the rows where the value is false ("No"). If it is 0 then we can say they are all true and our toggle should go to true.
Try this for your Default property:
CountRows(Filter(SPList, Delivered<>false))>0
BTW: There is a glitch/bug with filters on "Yes/No" SharePoint columns. I have found the workaround to be to use the <> operator rather than the = will be something to keep in mind. So, re-reading the filter above, I am filtering on "Delivered=true". However, using that exact wording will yield improper results. So, looking for the inverse of it will work "<> false" means "= true".
Hi Randy,
Thanks for your response although i tried it and the toggel value is not changing as expected. I think the problem is that i could have mutliple values with the same PO Order number. I guess the forumla you have posted should bring back a true value even if just one of these values is set to true, however, it still does not seem to work.
What i want is for the toggle value to only show true if all items have delivered set to true (or yes) . Hope attached screenshot better explains what i'm trying to achieve. The two rows in the gallery show two items from the POOrderDetails list and the Item Delivered toggle in the Form updates the POLog form.
Any further help much appreciated.
thanks,
Mike
So you probably need to look at your filters a bit more and wrap your head around what is going on.
It seems that you have a PO Items List, which is a filtered list of items that match the PO number you have in the master form (the top part of your screen).
I don't know if POOrderDetails is a filtered collection or if it is a datasource of your Add/Edit PO Items list.
So, one of the things you can use to shortcut all the filters is to use the data of the gallery as it is shown. I personally do this often when filtering - filter once and then derive everywhere from that. The reason I mention it is for my next suggestion, which is to change your toggle default logic to this:
CountRows(Filter(POItemGalleryName.AllItems, ItemDelivered<>true))=0
Notice in this case (not sure what your Gallery name is, but substitute it in there) that we're cunting the rows where the value is false ("No"). If it is 0 then we can say they are all true and our toggle should go to true.
Thanks Randy!
I tweaked your formula and it worked:
If(CountRows(Filter(POOrderDetails,PONumber=Gallery1.Selected.PONumber, ItemDelivered=false))=0,"Yes","No")
I replaced the toggle datacard with a text input one as i only needed Yes/No to be in View mode. The gallery was showing submitted values in the POOrderDetails list so pointed to that instead.
Thanks again - much appreciated
Mike
Facing a similar issue here but with "super-nested JSON" response from a Custom Connector. Any insights are appreciated!
Scenario:
First( First( colCustomConnectorResponse.level1 ).level1.level2 ).level2
If( ThisItem.level3.level4 = "Y", true, false )
If( First(
First(
First(
colCustomConnectorResponse.level1
).level1.level2
).level2.level3
).level3.level4= "Y", true, false )
Visual aid:
Thoughts?
That's a lot of levels!!
You might want to consider putting some "AddColumns" to your Items in the Gallery that will contain the status value (and the nasty formula needed to get to it). That way you'll have an easier view of it as your create other formulas. If you make the Added Column a numeric condition (0 = "off", 1 = "on"), then perhaps you could use a formula on your Big Toggle like this:
Sum(Gallery1.AllItems, myAddedColumn) = CountRows(Gallery1.AllItems)
That way if all toggles are on in the gallery the sum will equal the count and thus your BIG toggle should be "On".
Hope that helps some.
Hi @RandyHayes , thanks for the insights. I'm trying to get this going, not used AddColumns before.
Here's where I'm at:
AddColumns(colCustomConnectorResponse, "myNewColumn",
If(
First(
First(
First(
colCustomConnectorResponse.level1
).level1.level2,
).level3.level4 = "Y",
1,0
)
)
The formula is not flagged by intellisense, appears to be "working", but I don't see "myNewColumn" in anywhere in the collection.
Wonder if I need to add all those "First()'s" to the AddColumn(source, ?
AddColumns, RemoveColumns, and ShowColumns are all "chain" formulas. In other words, they *return* the results of the actions that they take, they don't alter the paramters given.
So, in this case, the AddColumns is working, but it is going nowhere.
Typically I would user Add/Remove/Show at the point that I gather the information and assign it to a collection if needed, but in this case the only thing you're going to need is to put this result in a collection.
So - wrap this formula you have with a ClearCollect(colCustomConectorResponse, AddColumns....<the rest of your formula>...)
This will put the results of the AddColumns into the collection.
Also, since you are actually doing this "Post Collection", you might want to designate another collection name as PowerApps might get a little freaky about the change of structure.
Again, it is better if you can, to use the AddColumns at the point in which you initially create your colCustomConnectorResponse collection.
Hope that makes sense.
Hm. Interesting.
More experimentation to come!
FUN!
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions in the Forums to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber of SolutionsSuper UsersNumber of Solutions @anandm08 23 @WarrenBelz 31 @DBO_DV 10 @Amik 19 AmínAA 6 @mmbr1606 12 @rzuber 4 @happyume 7 @Giraldoj 3@ANB 6 (tie) @SpongYe 6 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersSolutionsSuper UsersSolutions @anandm08 10@WarrenBelz 25 @DBO_DV 6@mmbr1606 14 @AmínAA 4 @Amik 12 @royg 3 @ANB 10 @AllanDeCastro 2 @SunilPashikanti 5 @Michaelfp 2 @FLMike 5 @eduardo_izzo 2 Meekou 2 @rzuber 2 @Velegandla 2 @PowerPlatform-P 2 @Micaiah 2 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8 SunilPashikanti8
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages