cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Trying to search a value with cds

Hi, 

I'm using the qr scanner and would like to take the ID value and do a search of the event registration entity in dynamics 365.

On the barcode scan button, i do the following: LookUp(Event_Registrations,msevtmgt_name = BarcodeScanner1.Value).

I've created a cds connection to event registrations and I added a form and on the registrationID, I added the following for the default field: msevtmgt_name. When I run the scan though, I just get the getting your data message. 

Any tips please?


Thanks

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Trying to search a value with cds

Hi @JohnOReilly34 ,

 

You should use below formulas instead:

1. Set OnScan property to:

Set(V1,BarcodeScanner1.Value)

2. Set below formula in the Item property of Form control to:

 LookUp(Event_Registrations,msevtmgt_name = V1)

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper I
Helper I

Re: Trying to search a value with cds

For the Lookup part, I get the message "Expected Text value". When I just enter the QR code in the registered ID (Registrierungs-ID) field in the event registration entity, it just gives me a message with "getting your data". Am I doing something wrong?

PowerApp02.JPG

Highlighted
Community Support
Community Support

Re: Trying to search a value with cds

Hi @JohnOReilly34 ,

 

What is the data type of msevtmgt_name field?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,938)