Notifications
Announcements
Hello,
I want to add new item in powerapps gallery, but i want if particular item is already exists in gallery, then show error message you cant add new item, beacuse item is already exists.
Hello,Can you use this as a reference?- Button1.OnSelect = ClearCollect(ColItems,{ItemName:"Item1"},{ItemName:"Item2"},{ItemName:"Item3"},{ItemName:"Item4"})- TextInput1 (to add new records)- Button2.OnSelect = If(LookUp(ColItems,ItemName=TextInput1.Text,true),Notify("The item "&TextInput1.Text&" already exists",NotificationType.Warning),Collect(ColItems,{ItemName:TextInput1.Text}))- Gallery1.Items = ColItemsIf you type Item5 in the TextInput1 and press Button2, you can see the item in the gallery. If you try to do the same you will see a warning message because Item5 already exists. Hope this helps
Hello Sir,
That is my complete scenario.
I have to column in sharepoint list first column type is person and second column type is person or group, I want when i submit the form, i want to check person already exists or not. both field type is person and group but first is only person.
Hello Sir 🙂You can try to do a LookUp like this one:LookUp(ColItems,ItemName=TextInput1.Text,true)as a condition in an If statement.ColItems is the table you want to check if the new item exists ItemName is the Column in the table you want to check if the new item exists TextInput1.Text is the input of the user. The new Item that is about to be added or nottrue is returned if the condition ItemName=TextInput1.Text is met.Check the Button2.OnSelect expression and maybe try to recreate the example on the previous post. It can help you to find a solution for your issue
Hello Sir..
Please Check
Can you try if this works?
If(LookUp(EmpAndApprover,Approver=DatacardValue11,true),Notify("The item "&DatacardValue11&" already exists",NotificationType.Warning),SubmitForm(Form2);Navigate(AdminDashboard,ScreenTransition.Fade);Refresh(EmpAndApprover))
Still facing error... Invalid argument type.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 765 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 272