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 Apps
Unanswered

Delegation Warning

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,
I'm facing delegation issue while patching in look up function can you please help me to resolve this in the code
ForAll(
Gallery.AllItems,
Patch(
SharePointList,
Lookup(
SharePointList,
'Name' = DataCardValue19_7_Name.Text && ID = Value(Label.Text)
),

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,924 Most Valuable Professional on at

    @Anonymous 

    Can you please post the full code in Text and also what is 'Name' in the SP list (or is it a Library) ?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Please check the full code 

    Set(varshowtd,0);
    ForAll(
    Gallery4_10.AllItems,
    Patch(
    Task_Details,
    LookUp(
    Task_Details,
    'Project Name' = Label3_10.Text && ID = Value(lblID_2.Text)
    ),
    {StatusDraft: {Value: "Draft"}},
    {ProjectId: VarID.ProjectID},
    {'Project Name': ComboSelectProject1_12.Selected.'Project Name'},
    {'Task Name': TextInput1_TaskName_3.Text},
    {'Task Description': TextInput2_12.Text},
    //{'Start Date': NewTaskStartDate_10.SelectedDate},
    {'Completion Date': DatePicker3.SelectedDate},
    {'Actual Efforts': TextInpu_Efforrts_2.Text},
    // {'Revised Efforts': TextInputRevisedEfforts_15.Text},
    // //{'Percentage Completed': 'TextInput2%Completed_13'.Text},
    //{Ratings: Value(TextInputRatings_16.Text)},
    //{Role: TaskDetails_Role_8.SelectedText},
    {'Priority Task': NewTaskPrioriyty_12.Selected},
    //{Status: NewTaskStatus_10.Selected},
    {'Task Categorization': drpTaskCategorization_11.Selected},
    {Complexity: NewTaskComplexity_13.Selected},
    {'Billable Task': drpBillableTask_14.Selected}
    //{Technology: NewTaskTechnology_10.Selected},
    /*{
    'Assigned To': {
    '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    Claims: "i:0#.f|membership|" & Lower(ComboAssignTo21.Selected.Mail),
    Department: "",
    DisplayName: ComboAssignTo21.Selected.DisplayName,
    Email: ComboAssignTo21.Selected.Mail,
    JobTitle: "",
    Picture: ""
    }
    }
    )*/
    )
    );

  • WarrenBelz Profile Picture
    154,924 Most Valuable Professional on at

    @Anonymous ,

    What type of field is 'Project Name'  and where are the "blue lines" indicating the Delegation issue ?

    Set(varshowtd,0);
    Patch(
     Task_Details,
     ForAll(
     Gallery4_10.AllItems,
     With(
     {
     wID:
     LookUp(
     Task_Details,
     'Project Name' = Label3_10.Text && 
     ID = Value(lblID_2.Text)
     ).ID,
     },
    		 {
     ID: wID, 
     StatusDraft: {Value: "Draft"},
     ProjectId: VarID.ProjectID,
     'Project Name': ComboSelectProject1_12.Selected.'Project Name',
     'Task Name': TextInput1_TaskName_3.Text,
     'Task Description': TextInput2_12.Text,
     'Completion Date': DatePicker3.SelectedDate,
     'Actual Efforts': TextInpu_Efforrts_2.Text,
     'Priority Task': NewTaskPrioriyty_12.Selected,
     'Task Categorization': drpTaskCategorization_11.Selected,
     Complexity: NewTaskComplexity_13.Selected,
     'Billable Task': drpBillableTask_14.Selected,
     'Assigned To': 
     {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims: "i:0#.f|membership|" & Lower(ComboAssignTo21.Selected.Mail),
     Department: "",
     DisplayName: ComboAssignTo21.Selected.DisplayName,
     Email: ComboAssignTo21.Selected.Mail,
     JobTitle: "",
     Picture: ""
     }
     )
     }
     )
    )

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    'Project Name' is a SP list and delegation facing in Lookup function: 
    && ID = Value(lblID_2.text)

  • WarrenBelz Profile Picture
    154,924 Most Valuable Professional on at

    @Anonymous ,

    I meant the type of field for 'Project Name'. If it is a single Line of Text, disregard, but I am assuming both Label3_10 and lblID_2 are in the gallery ? If so, why bother testing on 'Project Name' when the ID is a unique identifier. To test a theory I have here, just filter on the ID and see if you get the Delegation warning.

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 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard