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 / Passing a value from a...
Power Apps
Answered

Passing a value from a View Form to a New Form

(0) ShareShare
ReportReport
Posted on by 716

Hello Power Apps Community,

Can you help please?

 

In a nutshell, I want to pass a GUID value from one form (Transaction) to another form (Transaction Line Item) only when the form Transaction Line Item is in FormMode.New. Any ideas please? Below is a more detailed explanation.

 

I have two Dataverse for Teams tables:

Transaction (which is the parent)

Transaction Line Item (which is the child)

So one Transaction can have many Transaction Line Items.

 

I have a screen Screen Edit Transaction

On this screen is a form frmEditTransaction this shows a Transaction record

Beneath the form I have another gallery galTransactionTransLineItem this shows all the Transaction Line Item records for the Transaction record in the form.

 

I can click on one of the Transaction Line Item records in the gallery galTransactionTransLineItem

This navigates to another screen Screen Edit Trans Line Item

And displays the clicked Transaction Line Item record in the form frmEditTransLineItem

The OnSelect property is

 

Set(
      gblTransLineItem,
      ThisItem
);
Navigate('Screen Edit Trans Line Item');
ViewForm(frmEditTransLineItem)

 

This works perfectly. 

 

My request:

Now for my question please. On my screen Screen Edit Transaction (which has the Transaction form on it)

I have an icon. It's OnSelect property has the below formula on it.

 

Navigate('Screen Edit Trans Line Item');
NewForm(frmEditTransLineItem);

 

On the form frmEditTransLineItem where I'm creating a new Transaction Line Item, I have a lookup column called TransactionId to the Transaction table. How do I populate that column with the GUID from the Transaction table?

 

Thanks very much, and sorry for such a long description.

Garry

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

    @GarryPope 

    Reference the Default property for the TransactionID back to the gallery where the transaction is selected.  

  • CU01081947-0 Profile Picture
    716 on at

    @Drrickryp Thanks!

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 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard