web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Delegation Work Around
Power Apps
Unanswered

Delegation Work Around

(0) ShareShare
ReportReport
Posted on by 51

I have a ProjectList table which looks up the project user from a related table UserList.

I want the current user to click a button to select the first unassigned job from the ProjectList,  and then populate the UserList lookup field with the current user

 The new project selected and assigned to the current user must not already be assigned to anyone,  so when the user requests a new project, it must be from a pool of candidates with a blank UserList field in the ProjectList table.

 

Here is the logic to grab the first unassigned project.  In a separate patch statement I will assign it to the user.

 

 

 

 

Set(vProjectID,
 First(
 Filter(ProjectLists, IsBlank(UserList.User))
 ).PROJECT_ID
);

 

 

 

 

 

 The issue is the delegation warning.  I think it is because of checking a lookup field with isBlank().

 How to work around that?   UserList <> Blank() does not check for empty strings, isEmpty() checks a table.

 

update:     
I thought using a view filtered for all blank users would solve the problem,  but that comes with its own issues:

 

 

Set(vProjectID,
 First(
 Filter(ProjectLists,'ProjectLists (Views)'.UserView, !IsBlank(PROJECT_ID) )
 ).PROJECT_ID
);​

 

 

This expression picks the same PROJECT_ID each time the button is clicked,  even though the PROJECT_ID it picks is no longer in the view.






Categories:
I have the same question (0)
  • FerrDiBarnes Profile Picture
    51 on at

    Co pilot suggested I should be doing this:   But that creates an error that it cannot find column UserList in table UserList.  And that is because UserList is the name of the lookup field in Projects

    Set(vProjectID,
     First(
     Filter(ProjectLists, IsBlank(UserList))
     ).PROJECT_ID
    );



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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard