cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jay0182
Frequent Visitor

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 @Jay0182,

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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (100,687)