cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Community Support
Community Support

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.

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

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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (3,360)