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 / How to patch the looku...
Power Apps
Answered

How to patch the lookup value?

(0) ShareShare
ReportReport
Posted on by 177

Kindly help to Patch the below lookup record.

Ganeshtamil_29_0-1636477711942.png

Thanks in Advance.

 

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

    Hi @Ganeshtamil_29 ,

    The output of that (to Patch) is simply

    executor1_1.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.

    Visit my blog Practical Power Apps

     

  • Ganeshtamil_29 Profile Picture
    177 on at

    HI @WarrenBelz 

    I already try this, but error shown.

    Ganeshtamil_29_0-1636516554268.png

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Ganeshtamil_29 

     

    On the screen, the executor shows as text. But looks like executor as the person data type is in Sharepoint. is it correct?

     

    If the executor is a person record then your patch command like

    With({ItemExecutor:LookUp('IFeature Model Parameter', 'DIR Number'=dir_4.Text,Executor)},
    Patch(
     SPDataSource,
     Defaults(SPDataSource),
     {
     Executor: 
     {
     Claims: "i:0#.f|membership|" & ItemExecutor.Email,
     Department: "",
     DisplayName: ItemExecutor.DisplayName,
     Email: ItemExecutor.Email,
     JobTitle: "",
     Picture: ""
     }
     
     }
    )
    )

     

  • Ram Prakash Duraisamy Profile Picture
    5,694 Super User 2026 Season 1 on at

    Hello @Ganeshtamil_29,

     

    Please find my blog for Patching Lookup or Choice Field from PowerApps 

     

    https://microsoftcrmtechie.blogspot.com/2021/09/how-to-patch-choice-field-and-lookup-in.html

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

  • Ganeshtamil_29 Profile Picture
    177 on at

    Hi @rampprakash 

    Below error shown, kindly help to resolve

    Ganeshtamil_29_0-1636520616313.png

     

     

     

  • Ganeshtamil_29 Profile Picture
    177 on at

    Hi @StalinPonnusamy 

    Below error shown, kindly help to resolve

    Ganeshtamil_29_1-1636520687858.png

     

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Ganeshtamil_29 

     

    Is the executor the Lookup field?

     

    If it's a Lookup field then we need to find the ID using the DIR Number and use the syntax (id and Value)

     

    With({ItemExecutor:LookUp('IFeature Model Parameter', 'DIR Number'=dir_4.Text)},
    Patch(
     SPDataSource,
     Defaults(SPDataSource),
     {
     Executor: 
     {
     Id: ItemExecutor.ID,
     Value: ItemExecutor.Title //Columnname that display the text
     } 
     }
    )
    )

     

  • Ganeshtamil_29 Profile Picture
    177 on at

    Still error, 

    Ganeshtamil_29_0-1636541119498.png

     

  • Verified answer
    WarrenBelz Profile Picture
    154,393 Most Valuable Professional on at

    @Ganeshtamil_29 ,

    @StalinPonnusamy is correct - you have the brackets around the wrong way

    With({ItemExecutor:LookUp('IFeature Model Parameter', 'DIR Number'=dir_4.Text)},

     

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard