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 / Retrieve a field from ...
Power Apps
Unanswered

Retrieve a field from a Form two screens later

(0) ShareShare
ReportReport
Posted on by 11

Good Afternoon,

 

I've got a problem with some field, that I cannot manage to retrieve.

 

I've got in Screen1 a NewForm(Form1) linked to the entity Contact in dynamics 365.

 

 

In this Form1, I have the contactid (DataCard1) of my entity (who is at first empty, because I haven't submitted my Form)

 

Then two screens later, let's say Screen3, I SubmitForm(Form1) ; and now I need to store my Contactid in a Collection. And I cannot manage to give the good name such that, PowerApps recognize that I want the contactid of my lastSubmitted Form.

 

Do you have any idea ?
I've tried a lot of things and nothing seems to work....

 

Thanks a lot

 

Sabrina

Categories:
  • Shanescows Profile Picture
    2,218 Most Valuable Professional on at

    Hi @Sabvalbra I haven't tried exactly what you are saying but my first thought is have you considered storing that ID in a global variable when you leave screen1? That way you would have that value easily accessible? There may be a better way but without digging into the details my first thought is a variable sorts you out pretty easily. 

     


    Shane

  • MB-02102022-0 Profile Picture
    Microsoft Employee on at

    Hey @Sabvalbra, I believe you might be able to use the "LastSubmit" property of the form control like so...

     

    Form1.LastSubmit.ID

    The "LastSubmit" property grabs all of the data you sent via SubmitForm.

     

    Let me know if that doesn't work.

  • Sabvalbra Profile Picture
    11 on at

    Good Afternoon,

     

    And thank you for your so quick answers.

     

    @Shanescows 

    I've already tried this solution and the problem is that before I submit the "Form1", the "contactid" doesn't have a value. So I cannot store it on Screen1. And then on Screen3, when I submit Form1, I would like to recuparate the "contactid", but I cannot manage to retrieve it...

    @mabolan

    That's strange, because with your solution, it works only once on two. Don't know why... Maybe I need a refresh or something...
    I cannot find...
    Capture21.PNG
    Here you can see on the CRM that it works once on two (when it is (Pas de nom), it's correct)
    And the other half of the time I get the error :
    Capture22.PNG

    Here is my code :
    Capture23.JPG

     

    Hope you have an idea...

    I'm triying things but for the moment, unsuccessful

  • Sabvalbra Profile Picture
    11 on at

    (Sorry for posting twice)

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
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard