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 / Patching the columns o...
Power Apps
Unanswered

Patching the columns of lookup value

(0) ShareShare
ReportReport
Posted on by 67
i have two lists in sharepoint positions list and daily activity list , now i have selected a particular postion which is in daily activity list which uses positions list lookup of title column , so while selecting a particular record i want to get defaults value and other text to be filled by user . now at time of patching i want to patch all the defaults value of the selected position and the other details with it in the daily activity list.
 
so title is patching but now i have hr column in  daily activity list which uses created by lookup and the date which also uses from position lookup , i am able to fetch it but how to patch it?
 
 
Patch(
    'Daily Activity',
    LookUp('Daily Activity',ID=selectedDRecordID),
    {
        Title:Text(LookUp(Positions, ID = v_ditem.Position.Id).Title),
       
       
        'Resumes Reviewed':Value(txtEResumesReviewed.Text),
        'Calls Done':Value(txtECallsDone.Text),
        'Resume Uploaded':Value(txtEResumeUploaded.Text),
        'Interviews Schedueld':Value(txtEInterviewsSchedueld.Text),
        Archived:Value(txtEArchived.Text)

    }
           
);
Categories:
I have the same question (0)
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    hi @AP6 ,

    try this:

    Patch(
     'Daily Activity',
     LookUp('Daily Activity', ID = selectedDRecordID),
     {
     Title: LookUp(Positions, ID = v_ditem.Position.Id).Title,
     'Resumes Reviewed': Value(txtEResumesReviewed.Text),
     'Calls Done': Value(txtECallsDone.Text),
     'Resume Uploaded': Value(txtEResumeUploaded.Text),
     'Interviews Schedueld': Value(txtEInterviewsSchedueld.Text),
     Archived: Value(txtEArchived.Text),
     hr: {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims: LookUp(Positions, ID = v_ditem.Position.Id).CreatedBy.Claims,
     DisplayName: LookUp(Positions, ID = v_ditem.Position.Id).CreatedBy.DisplayName,
     Email: LookUp(Positions, ID = v_ditem.Position.Id).CreatedBy.Email,
     Picture: LookUp(Positions, ID = v_ditem.Position.Id).CreatedBy.Picture,
     Department: LookUp(Positions, ID = v_ditem.Position.Id).CreatedBy.Department,
     JobTitle: LookUp(Positions, ID = v_ditem.Position.Id).CreatedBy.JobTitle
     },
     Date: LookUp(Positions, ID = v_ditem.Position.Id).DateColumnName // Replace DateColumnName with the actual column name for the date
     }
    );
  • AP6 Profile Picture
    67 on at

    claims missing error

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard