Dear PApps Users,
I have a list where I store "mentors" in my company and users can find someone and ask in a specific topic, if they're looking for solution. Unfortunately I don't have "PowerApp" mentor - that's why I'm here 😉
So basically my app is showing a "cards" of experts based on SharePoint list where column named "Expert Name" (Person) has name of "mentor".
Cards have 4 icons. I would like to count, how many times any icon was clicked in every "Expert Name". Sum of 4 clicks on icon per record.
I wanted to create a column Number and add "+1" if anyone in the company clicks on one of 4 icons on Expert Name card, but I don't know how to achieve that.
Is it possible? How to do that?
It worked!
Kindly refresh
Dear @JaguarMonkey ,
Thanks for help. I got a problem, because I wrote probably bad Patch function:
Launch($"https://contoso.sharepoint.com/Ask%20a%20Champ%20%20Documents/{(ThisItem.'Expert Name').DisplayName}") &&
Patch
('Ask a Champ';
LookUp('Ask a Champ'; 'Expert Name'.DisplayName = (ThisItem.'Expert Name').DisplayName);
{ Count: Count+1})
Basically my list has Expert Name column (people) and I have Count column (number).
The error is (in "Count+1" at the end): Element Count is not recognized.
And one important thing. How can I merge this Launch and Patch function, because it's also not working, when I try Launch(...) && Patch(...)
?
Hello @KarCz
Maybe this thread can help you out too!
Community Support Team - Ana Navarro
If this post helps, please consider Accepting it as the solution to help other members find it more quickly, it also closes the item. If the content was helpful in other ways, please consider giving it Thumbs Up.
I think you can do this by adding a second command to the OnSelect property of the icon (I assume there is already one command associated)
Regardless, you can have a field that stores clicks and update it using the Patch function. I do that to count votes for new features in one of the development courses I teach.
There are a couple of ways to do this.
If you want to know who clicked on something, this Patch function creates individual records
Patch(
DataSource,
Defaults(DataSource),
{IdeaID: ThisItem.ID,
Voter: User().Email
}
)
If you want to just update the current status, this should work
Patch( DataSource,
LookUp( DataSource, Flavor = "Chocolate" ), { Quantity: Quantity+1} )
The complete guide to patch can be found here
Patch function in Power Apps (contains video) - Power Platform | Microsoft Learn
WarrenBelz
106
Most Valuable Professional
MS.Ragavendar
73
stampcoin
52