cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Matiss
Frequent Visitor

Problem with check if lookup is blank

Hello guys!

 

I need to filter Gallery by two paramteres, the formula should look something like this : 

 

 

Filter(ddati_planotasvakances_nodrosinajums, 'Vakances ID '.ID = Gallery_data.Selected.ID && IsBlank(UserID)=true)

 

 

where ddati_planotasvakances_nodrosinajums is the table, 'Vakances ID '.ID is simple ID, and the UserID is lookup column. 

With this formula i got delegation error. 

Matiss_0-1646386911190.png

Some other solutions?

1 ACCEPTED SOLUTION

Accepted Solutions
dpoggemann
Super User
Super User

Hi @Matiss ,

One option would be to create a view in the Dataverse on your table that shows all records where the UserId does not contain a value. You can then filter based on that view and it should remove the delegation issue.

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

View solution in original post

4 REPLIES 4
dpoggemann
Super User
Super User

Hi @Matiss ,

One option would be to create a view in the Dataverse on your table that shows all records where the UserId does not contain a value. You can then filter based on that view and it should remove the delegation issue.

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew
Matiss
Frequent Visitor

Thanks, this works perfect!

@dpoggemann , When I used SQL as my data source and used the SQL views, I could only read the data from that view. So I am just curious if we can edit data through the Dataverse view in PowerApps canvas apps? 

Thank you

dpoggemann
Super User
Super User

Hi @AhmedSalih ,

 

The view will provide you results for your filters, etc. and when you update the records you utilize a patch or form method that will have the unique id of the record you are updating so it will not matter that you pulled back through the view.  hopefully this makes sense.

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Users online (1,290)