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 / Autopopulate datacard ...
Power Apps
Unanswered

Autopopulate datacard in form with an ID from a different form

(0) ShareShare
ReportReport
Posted on by 44

Hi,

 

I am trying to autopopulate a datacard with an ID from a different form.

The ID from form frmTaskSchedule (datasource: sharepoint list 'Task' should be populated in frmNewComment (datasource: sharepoint list 'Task Comments'). The 'Task Comments' list has a lookup column with the ID from the 'Task' list. 

 

That lookup columns needs to be populated when submitting the form.

At the moment I am only getting a blank in that column when submitting the form.

 

I have a variable 'newID' to load data in the frmTaskSchedule and wanted to use the same for populating the datacard.

It is giving me a 'Expected Record value' when I use the 'newID' in the Default for the datacard.

 

Any suggestions?

 

Regards,

Hans

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Lennova 

    You will need to use Lookup() to identify the record for the form in another data source.  So if the data source is SPlist, then the Item property of the form will need to be Lookup(SPlist, ID=newID).  The Item must match the data source.  

  • Lennova Profile Picture
    44 on at

    Hi @Drrickryp ,

    Thanks for your reply. That is the issue I am having with the item must match the data source.

     

    I have a form where a user can put in a request (to SPlist 'Task'). A different department will then put timings against the request in an edit form (again to SPlist 'Task'). Users should then be able to add comments to the request and those comments are added to a SPlist 'Task Comments' which contains a lookup column to the 'Task' SPlist.

     

    When a user wants to add a new comment they click a button where a form becomes visible with the source 'Task Comments'. When submitting the form I want to have the ID of the 'Task' to be added to the lookup column in 'Task Comments'.

  • Lennova Profile Picture
    44 on at

    Does anyone have any ideas what i can do? 

     

    In the worst case i could do it without using the lookup column in the sharepoint list thus breaking the link between task and comment...

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard