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
Answered

undefined

(0) ShareShare
ReportReport
Posted on by 51

HI, I got one requirement I already tried but is not working please help me.

Patch(EmpTask,LookUp(EmpTask,ID=Gallery1_1.Selected.ID),{Assignee:NameUser.Text});
in the above formula orange color it showing error i don't know ?
Actually My requirements is NameUser.Text Value i will assigend to the Assignee Field But It is not working. 
 
Show in bellow image. Please help me.
Screenshot 2024-06-28 160059.png
Categories:
I have the same question (0)
  • Fredrik_A Profile Picture
    3,644 Super User 2026 Season 1 on at

    What exactly is the Assignee column? Is it text or a Person column?

    If its a person column you need to patch it differently, if you have the email of the person in NameUser.Text try doing it like this:

    Assignee:{
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Department: "",
     Claims: "i:0#.f|membership|" & NameUser.Text,
     DisplayName: Office365Users.UserProfileV2(NameUser.Text).displayName,
     Email: NameUser.Text,
     JobTitle: "",
     Picture: ""
     }
  • LowCodeJim Profile Picture
    314 Moderator on at

    Hi @Venkateswarlu_1,

     

    You will need to refer to the data text box "DataCardValue3" to get the text value. So your patch should be:

    Patch(EmpTask,LookUp(EmpTask,ID=Gallery1_1.Selected.ID),{Assignee:DataCardValue3.Text});

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
  • Venkateswarlu_1 Profile Picture
    51 on at

    I am try in formula Patch(EmpTask,LookUp(EmpTask,ID=Gallery1_1.Selected.ID),{Assignee:DataCardValue3.Text});

    but DataCardValue3.Text  can not coming to the assignee field show in the below images.

    IN image 1 gallery assignee field is empty in second row.

      

    Screenshot 2024-06-28 162255.png
    Screenshot 2024-06-28 162334.png
  • Venkateswarlu_1 Profile Picture
    51 on at

     Assignee column it is text field with empty data.

  • Verified answer
    LowCodeJim Profile Picture
    314 Moderator on at

    The issue is likely due to the form being reset upon submission, thus the field is blank when you are setting it in your collection. The option would be to either do the patch before the submit or store the variable into a temporary variable and patch it if the submission is successful etc.

  • Venkateswarlu_1 Profile Picture
    51 on at

    Thank you 😊

  • Venkateswarlu_1 Profile Picture
    51 on at

    Hi,SharePointJB I have Another Requirement in below image see i have Gallery, in that when i select first apply button at the time it is disabled remain button's are visible it is possible. Please Help Me.

    I already write some code Please check It once. 

    Screenshot 2024-06-28 170740.png
  • LowCodeJim Profile Picture
    314 Moderator on at

    Are you sure the column name in your collection is "Apply_1"? That looks more likely just the name of the button in the gallery. Change "Apply_1" to whatever the column name is in the EmpTask collection.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
  • Venkateswarlu_1 Profile Picture
    51 on at

    Apply_1 is a button it is there in gallery. In the button come every row of the gallery. i Want hide that fist button when i click on remain button will be visible. 

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard