cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sjcitpro
Level: Powered On

Trying to jump directly to Form using Screen OnStart

if Param "recordID" I want to jump to the form screen and edit that record (recordID) of Sharepoint list ConcreteRequest. I have a button (for testing) on the Main screen with gallery of records. The Button is "Set(varRecordID,19); Navigate(ConcreteFormScreen,ScreenTransition.None)" in the form Item is LookUp(ConcreteRequest, ID=varRecordID). It shows the record values but if I submit form then I get errors. So, how do I pass a record from the sharepoint list ConcreteRequest to the form?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Trying to jump directly to Form using Screen OnStart

Hi @sjcitpro,

Could you please share more details about the error message within your app?

I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:8.JPG

 

9.JPG

Within the first screen, set the OnSelect property of the "Navigate" button to following:

Set(varRecordID, 6);Navigate(Screen2,ScreenTransition.Fade)

Within the second screen, set the Item property of the Edit form to following:

LookUp('20181217_case14',ID = varRecordID) /*<- '20181217_case14' represents my SP list data source */

Set the DataSource property of the Edit form to following:

'20181217_case14'

Please check the attached GIF screenshot for more details:

 

In addition, you could also consider take a try to submit your form data using Patch function instead of SubmitForm function. Please set the OnSelect property of the "Submit" button to following:

Patch(
    'YourSPList',
     LookUp('YourSPList', ID = varRecordID),
     {
       Title: DataCardValue1.Text,
       Column2: DataCardValue2.Text,
       ...
     }
)

Note: The Title, Column2, etc represents the columns in your SP list.

More details about the Patch function, please check the following article:

Patch function

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support Team
Community Support Team

Re: Trying to jump directly to Form using Screen OnStart

Hi @sjcitpro,

Could you please share more details about the error message within your app?

I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:8.JPG

 

9.JPG

Within the first screen, set the OnSelect property of the "Navigate" button to following:

Set(varRecordID, 6);Navigate(Screen2,ScreenTransition.Fade)

Within the second screen, set the Item property of the Edit form to following:

LookUp('20181217_case14',ID = varRecordID) /*<- '20181217_case14' represents my SP list data source */

Set the DataSource property of the Edit form to following:

'20181217_case14'

Please check the attached GIF screenshot for more details:

 

In addition, you could also consider take a try to submit your form data using Patch function instead of SubmitForm function. Please set the OnSelect property of the "Submit" button to following:

Patch(
    'YourSPList',
     LookUp('YourSPList', ID = varRecordID),
     {
       Title: DataCardValue1.Text,
       Column2: DataCardValue2.Text,
       ...
     }
)

Note: The Title, Column2, etc represents the columns in your SP list.

More details about the Patch function, please check the following article:

Patch function

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 163 members 5,581 guests
Please welcome our newest community members: