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

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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 (4,018)