cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

SharePoint

Hi,

 

Hoping someone can help me out... I have a custom form sitting atop SharePoint that has custom logic to display data from a API or Table depending on a property selection, everything is working perfectly and saving correctly.

 

The main issue is when viewing the form after save or on edit. The form is not showing what I selected, instead its showing the first entery from API or table by default. If I look at SharePoint properties of the form itself I can verify the data is saved correctly. How can I tell PowerApps to look at saved data by default other than requerying on edit or view?

 

Items Code:

If(DataCardValue3.Selected.Value="NA3",(AzureResourceManager.SubscriptionsList().value),(Table({displayName:"dev", subscriptionId:"02f37ec2-835b-4a67-87b2-11b38a9f2910"},{displayName: "prod", subscriptionId:"02f37ec2-835b-4a67-87b2-11b38a9f2910"})))

 

I've attached screenshots...

1 REPLY 1
v-xida-msft
Community Support
Community Support

Hi @Anonymous,

Could you please share a bit more about your scenario?

How do you display the data from a API or Table within your app? Using a Gallery?

Where do you put the formula (Items code) that you provided within your app?

Further, could you please share more details about the Item property of the Edit form within your app?

 

Please check if the Item property of the Edit form within your app is set to following formula:

If(
IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),
First('YourDataSource'),
SharePointIntegration.Selected
)

More details about customizing Custom form for a SP list, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/customize-list-form

 

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.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,512)