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 / SharePoint Integration...
Power Apps
Answered

SharePoint Integration not working correctly using PowerApps Links

(1) ShareShare
ReportReport
Posted on by 222
Hi,
I have a PowerApps to log Issues.  The Powerapps is linked to a SharePoint list.
There is a need to access an Issue from both the SharePoint list and the Powerapp.
To do this, from the Powerapps - OnStart = 
Set(varIssue,Value( Param("IssueID")));
If(varIssue<>0,Set(varEditFeedback,LookUp('Issues Register',ID = varIssue)));
StartScreen = If(!IsBlank(Value(Param("IssueID"))),IssuesForm_Edit,galIssuesScreen);
 
In the SharePoint list, I have updated the formatting of the column
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "a",
"txtContent": "@currentField",
"attributes": {
"target": "_blank",
"href": "='https://apps.powerapps.com/play/e/abe92fe7-cc45-e08f-9547-a494a0cbb2c4/a/29d0622e-900a-4f52-9034-074257aeb86675&IssueID='+[$ID]"
}
}
 
It looks likes this.
I have also integrated from the SharePoint list by using SharePoint-->Integrate-->Customise-->Powerapps forms--> and updated the OnStart with a launch function to the Powerapps.
OnNew for SharePoint Integration has the Launch statement as well.
Problem : 
When the app is played, the powerapps will default to the gallery screen.  This is correct.
When the app is played, and a user needs to edit a loan, the edit pencil can be selected. The Edit screen will be opened. This is correct.
When a loan is selected from the SharePoint list, the JSON code does not work and the powerapps does not open in edit mode, instead the gallery is displayed.
 
How do I get the details of the loan (loanDetailsScreen) to display when accessed from the SharePoint list.
So when the loan hyperlink is clicked, the powerapps should default to the edit page below and show all the details of the request and not the gallery.
Kind regards
 
 
Rene Voller
 
 
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,427 Most Valuable Professional on at
    You have a fundamental problem with Power Apps integrated forms - when they are closed they only close the visibility of the form (that is why you will see RequestHide() in the code).  This is for performance reasons so the user does not have to wait for the form to open every time they select a new record. The only parameter that changes is SharePointIntegration.Selected (the chosen record) - App OnStart and StartScreen do not run, nor does any Screen OnVisible code unless the user refreshes their browser between each record.
     
    If I am off-track on your issue, please let me know.
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
     
     
  • RVoller Profile Picture
    222 on at
     
    Thank you for responding to my post.  It proved immensely helpful in me understanding where the issue lies.
     
    And I am very embarassed to say that I over-complicated a very simple solution.  
     
    All I needed to do was change the OnStart statement and it worked.
    Set(varIssue,Value( Param("IssueID")));
    If(varIssue>0,Set(varEditFeedback,LookUp('Issues Register',ID = varIssue)));
    StartScreen = If(!IsBlank(Value(Param("IssueID"))),IssuesForm_Edit,galIssuesScreen);
     
    I then made sure that the column formatting referenced the ID correctly.
     
    Thanks for your support.
     
    Kind regards
     
     
    Rene Voller

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard