Hey guys,
This question is pretty straight forward!
I have two choice columns, with the same exact items:
User A
User B
User C
What i want is, when they first choose the first choice column, if they pick User A, User A will dissapear on the second choice column!
If they pick User B in the first columns, the User B will dissapear on the second column, and exact same with the User C!
This serve to stop them to give the exact same answer in two diferent columns!
Is there any ideia how to do this?
Solved! Go to Solution.
OK, so let's confirm my understanding.
1) You are asking for 3 responses on three different topics from the same person
2) The responses have the same structure for all three topics
3) The structure is the following: 7 ratings (1-5) and 2 choice columns and 3 multiline texts (12 columns in total)
Is that correct?
Exactly like that! But the columns have diferent names in each list! So, in the first list, They have USER A, B, C, the second list have the USER 1, 2 ,3, and in the third list have the USER !, ", #
Ok, then it is even easier than I thought. I suggest that we do not use choice columns for the users but store the text instead. For the topic column I would store an integer (but more on the topic later)
Here is what I suggest:
1) Create a dummy app without worrying about the data source initially
2) Create the correct data source (i.e. one SP list with the correct structure), connect it and then add the patching function
For the first step you should do this:
Table({Id: 1, Topic_name: "Topic A"}, {Id: 2, Topic_name: "Topic B"}, {Id: 3, Topic_name: "Topic C"})
ClearCollect(MyUserChoices, Table( {Topic_Id: 1, Value: "User A"}, {Topic_Id: 1, Value: "User B"}, {Topic_Id: 1, Value: "User C"}, {Topic_Id: 2, Value: "User 1"}, {Topic_Id: 2, Value: "User 2"}, {Topic_Id: 2, Value: "User 3"}, {Topic_Id: 3, Value: "User !"}, {Topic_Id: 3, Value: "User X"}, {Topic_Id: 3, Value: "User #"} ) )
Filter(MyUserChoices, Topic_Id = DropdownTopic.Selected.Id)
Filter(MyUserChoices, Topic_Id = DropdownTopic.Selected.Id, Value <> DropdownUser1.Selected.Value)
Once you have all of this, the rest is even easier. Please let me know how you get on so far. The only difficulty may be if you see numbers instead of text choices in the dropdowns, but there is an easy fix, you just need to choose the correct column in the advanced properties of the dropdown.
PS I just tested and all works as expected. There is only one thing you need to do. Once you have set the OnStart property, you need to save the app, close it, and reopen for editing. This is because the OnStart only fires once when the app is opened, so you need to open the app in order for the choices collection to be initialised.
Once all the above works then for the second step you can create a new list in SharePoint called whatever you like but please avoid spaces and starting it with a number. Let's say you call it Responses.
Then create the following columns in the list:
Next go back to the app and add the list as a data source (please see here for how to do this)
Then simply create a button at the bottom of the screen and set its OnSelect property to this:
Patch(Responses, Defaults(Responses), { Title: User().Email, Topic: DropdownTopic.Selected.Id, Rating1: Rating1.Value, Rating2: Rating2.Value, Rating3: Rating3.Value, Rating4: Rating4.Value, Rating5: Rating5.Value, Rating6: Rating6.Value, Rating7: Rating7.Value, User1: DropdownUser1.Selected.Value, User2: DropdownUser2.Selected.Value, Comment1: TextInput1.Text, Comment2: TextInput2.Text, Comment3: TextInput3.Text } )
That is all you need to do.
Once this works then there are many ways you can enhance your app:
1) Improve speed of performance if this is an issue (i.e. time it takes to save)
2) Have a process whereby the user does not choose a topic but is guided through each topic in turn (this is not done via three screens but using a context variable)
3) Basically anything you like
PS This might be good reading for you: https://powerapps.microsoft.com/en-us/tutorials/working-with-data-sources/
Hey @Meneghino,
It works great! First time patching, and there was no problems at all! Altough i liked the ideia of the dropdown column having the Topics, for what i am having, it isn't a great ideia, it would be better, if they were actually in split screens, (But im gonna keep this, this will be usufull!)
The only problem is, it doesn't reset when i send an answer, but i think i can work that out! 😄
Ill read the links you send!
I have a question, if i change the name os the Ratings (Per example, to ExpectRatings1, would i had to change it on patch?)
Also, imagine, i put all the topics and the rating and etc..., how do i make it on the patch? (Because, even tho it's the same question, i need several responses from the 3 topics, and each question has a different meaning in each topic)
EDIT: I am trying to do this on 3 different data sources, do i have to submit and patch everysingle answer or is there anyway to patch everything at once?
Please, tell me if you not understood something here!
Once again, thank you for all the help you are giving me!
Hi @Fields
Here is how you do the split screens, for example:
1) For the submit button, add this after the Patch:
; UpdateContext({CurrentTopicMinusOne: CurrentTopicMinusOne+1})
2) Delete DropDownTopic
3) Whereever in the code you have DropDownTopic.Selected.Id replace with CurrentTopicMinusOne+1
4) Add a label on the screen with Text property:
"The current topic is "& If( CurrentTopicMinusOne+1=1, "Topic A", CurrentTopicMinusOne+1=2, "Topic B", CurrentTopicMinusOne+1=3, "Topic C", "Error" )
I am not sure I have understood your question in regards to name changes. Do you mean if you change the name of a column in a SharePoint list after it has been created?
I am not sure I have understood "Also, imagine, i put all the topics and the rating and etc..., how do i make it on the patch?"
In regards to the data sources, I still don't understand why you need three different SharePoint lists and not one. Having one list will make your life much easier.
Hi @Meneghino,
About the "Also, imagine, i put all the topics and the rating and etc..., how do i make it on the patch?", you already answered by giving me the code! Thank you about that
And the reason i need several databases, is, because it's a lot easier to analyse and export to excel, rather than having everything in one list, and the 3 screens is to let the user know that: "Hey, you finish this topic, now click here and we move to the other one!".
If i am able to do that... let's say "feeling" in one screen, that would be awesome!
And yes, about the first question "I am not sure I have understood your question in regards to name changes. Do you mean if you change the name of a column in a SharePoint list after it has been created?", that's exactly what i mean!
PS: I already know the answer of the last one!
Hi @Fields
The latest code I provided with the context variable will give the impression of three screens, please try it.
For exporting to Excel, all you need to do is to filter your SharePoint views by topic.
Anyway, if you really still want to keep three different data sources, then all you need to do is to change the save button OnSelect to something like this:
If( CurrentTopicMinusOne+1=1, Patch(Responses_topic_A, Defaults(Responses_topic_A), { Title: User().Email, Rating1: Rating1.Value, Rating2: Rating2.Value, Rating3: Rating3.Value, Rating4: Rating4.Value, Rating5: Rating5.Value, Rating6: Rating6.Value, Rating7: Rating7.Value, User1: DropdownUser1.Selected.Value, User2: DropdownUser2.Selected.Value, Comment1: TextInput1.Text, Comment2: TextInput2.Text, Comment3: TextInput3.Text } ), CurrentTopicMinusOne+1=2, Patch(Responses_topic_B, Defaults(Responses_topic_B), { Title: User().Email, Rating1: Rating1.Value, Rating2: Rating2.Value, Rating3: Rating3.Value, Rating4: Rating4.Value, Rating5: Rating5.Value, Rating6: Rating6.Value, Rating7: Rating7.Value, User1: DropdownUser1.Selected.Value, User2: DropdownUser2.Selected.Value, Comment1: TextInput1.Text, Comment2: TextInput2.Text, Comment3: TextInput3.Text } ), CurrentTopicMinusOne+1=3, Patch(Responses_topic_C, Defaults(Responses_topic_C), { Title: User().Email, Rating1: Rating1.Value, Rating2: Rating2.Value, Rating3: Rating3.Value, Rating4: Rating4.Value, Rating5: Rating5.Value, Rating6: Rating6.Value, Rating7: Rating7.Value, User1: DropdownUser1.Selected.Value, User2: DropdownUser2.Selected.Value, Comment1: TextInput1.Text, Comment2: TextInput2.Text, Comment3: TextInput3.Text } ) );
UpdateContext({CurrentTopicMinusOne: CurrentTopicMinusOne+1})
Hope this helps.
Hi @Meneghino,
Well, if you say, that the first ideia goes well with the impression i want to make, i will definately try it! About the views, i tried that way, but for some reason, it always go to the default one! So, if i don't change the default one, it will never change, and we are talking about 3 excels here...
It might be a browser problem, or i should iniciate explorer as an Admin maybe?
Anyway, thank you for this gigantic help! I finally understood this whole thing of patching!
Once again, thank you!
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