cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
starship12
Level: Powered On

Getting error messages when adding formula to Search in Gallery using Sharepoint ID

Hi,

 

I am trying to create a gallery that uses SharePoint list as the data source and to allow users to input the ID on a search box by selecting the "Form Number" from a radio button. The other radio buttons for "Approved" and "Rejected" are working except for "Form Number". Please find the error message below:

Untitled.jpg  

This formula is on the "Items" part of the gallery.

 

Please advise if there is a way to word the formula differently

 

 

Thanks,

 

 

4 REPLIES 4
Super User
Super User

Re: Getting error messages when adding formula to Search in Gallery using Sharepoint ID

 

 

 

Try something like this:

 

Filter(
  Search(
    FormsTest, IDInputText.Text, "ID"
  ) ,
  Radio1.Selected.Value = "Form Number"
)

 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
starship12
Level: Powered On

Re: Getting error messages when adding formula to Search in Gallery using Sharepoint ID

I have now added the code and am getting the same message:

 

Untitled.jpg

 

I am using the internal counter field that comes with SharePoint. Could that be why?

 

ChrisR
Level 8

Re: Getting error messages when adding formula to Search in Gallery using Sharepoint ID

The ID column is not text.

 

If you HAD to use the ID column try something like this:

 

Search(AddColumns(FormsTest,"txtID",Text(ID)),TextInput1.Text,"txtID")

 

 

Hope it helps,

Chris

starship12
Level: Powered On

Re: Getting error messages when adding formula to Search in Gallery using Sharepoint ID

Changing my code to this has solved the issue now:

 

Radio1_1.Selected.Value = "Form Number", Filter(FormsTest, ID=IDInputText_1.Text)

 

Thank you all for your help

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 71 members 4,477 guests
Please welcome our newest community members: