web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / there is no data when ...
Power Apps
Answered

there is no data when another account use the app which was shared by me

(0) ShareShare
ReportReport
Posted on by 26

I created a app with template employee enagement survey, run the app , no problem.

then share to another account, use another account login , however,   found no related data in it after open the sharing app.

 

I also shared the excel data to another account through my one drive, but still not work.

 

BTW, how to get the data result if my colleague fill the survey successful (as the excel data was saved in his cloud account, need he email the data file to me? or I can check his survey result in my cloud drive directly? If yes, will be more convenient )

 

shared the power app folder to another account

2016-11-03 09_03_53-Files - OneDrive.png2016-11-03 09_04_24-testdsmw787-w7v - Remote Desktop Connection.png2016-11-03 09_05_02-testdsmw787-w7v - Remote Desktop Connection.png

 

2016-11-02 18_20_23-Microsoft PowerApps.png2016-11-02 18_20_45-Microsoft PowerApps.png2016-11-02 18_23_18-Microsoft PowerApps.png

 

2016-11-02 18_22_06-testdsmw787-w7v - Remote Desktop Connection.png2016-11-02 18_22_51-testdsmw787-w7v - Remote Desktop Connection.png

 

 

But in my app, I can see no problem.

2016-11-03 09_12_03-liangju-w10 - Remote Desktop Connection.png

Categories:
I have the same question (0)
  • Verified answer
    v-yamao-msft Profile Picture
    on at

    Hi Justin,

     

    According to your description, I create an App from the Employee Engagement Survey template then share it to another account with User permission.

    ShareApp.PNG

     

    The Excel file is saved in OneDrive. Without sharing the Excel file to shared user, I get the same issue with you, no data is shown when I open the shared App. Then I try to share the Excel file for a test, after sharing the Excel file, the data is shown.

     

    What is the account being used in your OneDrive connection? Please make sure you share the Excel file to the OneDrive connection account but not the PowerApps sign in account.

    Excel share.PNG

     

    Please try if this work after you shared the Excel with proper connection account. Please let me know if this works for you.

     

    Best regards,
    Mabel Mao

     

  • Justin Profile Picture
    26 on at

    I shared the data excel from my one drive to another account's one drive.

    but found the file is not in default powerapp folder, it is in shared with file tab.

    Do you do copy the data file to defualt folder ? as generally when you create app, it will generate a data excel file in defult folder. but there is not in it now, then is it related when I run the app in another account , no data in it?

     

    2016-11-07 18_17_19-Files - OneDrive33.png

    2016-11-07 18_03_18-Templates - OneDrive2.png

     

     

    found the data file is in shared with me

     

    2016-11-07 18_02_55-Shared with me - OneDrive22.png

     

    2016-11-07 18_12_52-EmployeeEngagementSurvey_d8a5b87f-9963-528c-0a9a-2f39343308fb - OneDrive.png

  • Verified answer
    v-yamao-msft Profile Picture
    on at

    Hi Justin,

     

    When I create an App from template, I select OneDrive to place the Excel file. And the file would be saved in the default PowerApps folder in my account in Files>PowerApps>Templates, a screenshot as below:

    share excel1.PNG

     

    Then I share the Excel file to shared user’s OneDrive account. In the shared OneDrive account, the file would be saved in Shared folder.

    share excel2.PNG

     

     

    Then I share the App to another group account, and when I open the App in the shared account, I switch the OneDrive connection to the account I just shared the Excel with. All the data can be shown in the App. When shared user edit the App and save data, the data would be shown on the Response sheet on the Excel file on both my account and shared account.

    share excel3.PNG


    Best regards,
    Mabel Mao

  • dpreston Profile Picture
    2 on at

    When I run the Engagement Survey PowerApp under my account, the survey response writes to the data.xlsx and I'm able to view later. However, users that I've shared the PowerApp with are unable to save their response to the data.xlsx. The data.xlsx stored under my OneDrive for Business account is shared out with Edit permissions.

     

    Any suggestions how to fix this?

     

    Thanks

  • v-yamao-msft Profile Picture
    on at

    Hi @Justin@dpreston,

     

    Recently, I have seen several related issue about this, when using the connection with OneDrive for Business, shared user cannot create, update, delete though with the Edit permission level on both app and data source.

     

    I have already reported this from my side, I guess PGs are working on this.

     

    As a temporary workaround, may I suggest you use OneDrive? This connection works properly on shared user.

     

    Thanks for your patience. I will update you once I get any useful information.


    Best regards,
    Mabel Mao

  • Community Power Platform Member Profile Picture
    on at

    Hi,

     

    I have tried twice to get this app to work with no luck.

     

    The app is created ok, the data file is created on my OneDrive for business, but no data is ever saved to it.

     

    I run through the app from beginning to end, close the app and check the excel file.  It is still unchanged.  It appears that nothing is ever written to the Responses tab of the Excel file.  I have refreshed the data connection and the App will read changes I make to the questions, but no responses are ever added.

     

    I added a quick display label to see if the app saw my user name, it does.

     

    I have not shared this app with anyone else yet because it doesn't save any of my inputs.

     

    Looking for ways to see what is happening or a good fix.

     

    Thanks.

     

    Ed

  • Community Power Platform Member Profile Picture
    on at

    I have the exact same problem as emegrant. 

     

    Edit:

    Errors(Response) returns no errors (checked with IsEmpty) and yet there is no record added, tested with two different users. No errors are shown during testing and users have read and write access to the excel file and yet there is only one record in Responses where each column entry is "test".

     

    Submit button code:patchCode.PNG

     

     

     

     

    Excel file:excelfile.PNG

     

     

     

     

  • Community Power Platform Member Profile Picture
    on at

    I solved the above issue by changing data source to a Sharepoint list instead of excel file. The same code manages to push data to the Sharepoint list. However the LookUp(<SPLIST>; Title = User().UserName; <SPLIST>) always returns false even though the Title column is already populated by "Title: User().UserName" so the values should be identical. "Title" is the field name of the column (I've made sure by checking the url) but I've also tried using the display name and it also does not work.

  • Community Power Platform Member Profile Picture
    on at

    Hi again,

     

    I have also stumbled on a partial fix.  The last step of Question 5 where you click on the Next button is supposed to populate the spreadsheet with your data and User Name.  As it is, it does not.

     

    If you remove the "!" from the first group of statements it will populate correctly.  However, if the same user re-runs the survey, it will now save an additional entry because it is no longer checking for that user to overwrite their answers.

    So, only a partial win.

     

    Also important, don't forget to share (both read and write) the Excel file or the end user will get a nasty error.

     

    Ed

  • Community Power Platform Member Profile Picture
    on at

    I found the issue. The default code in the Employee Engagement Survey app to check if a record already exists is:

    If( !IsBlank( LookUp( Responses; Username=User().FullName; Responses))...

     

    The LookUp syntax is: LookUp( TableFormula [, ReductionFormula ] ) and

    • ReductionFormula - Optional. This formula is evaluated over the record that was found, and then reduces the record to a single value. You can reference columns within the table. If you don't use this parameter, the function returns the full record from the table. In the UI, the syntax is shown as result above the function box.

    I had assumed that the third parameter was obligatory as the web editor does not mention this detail. Removing the third parameter and just typing LookUp(<data_source>; <condition>) will make the code fully functional since the IsBlank function can check if a record is empty and LookUp returns a record if you don't use the third parameter. So now the app correctly adds and updates records.

     

    I recommend that the PowerApps team adjust the default code to the correct format.

     

    Edit: Ok, there are still problems and I have confirmed it is due to the use of Username=User().FullName; condition. My datasource is a Sharepoint list with less than ten objects so I don't see why this is an issue. 

     

    The code: If(!IsBlank(LookUp(Test; Title = "Name"))... creates new entry if none with Title = "Name" already exists and correctly updates existing records with Title = "Name".

     

    The code: If(!IsBlank(LookUp(Test; Title = User().FullName))... correctly updates records with Title = User().FullName but does not create new records when no records with Title = User().FullName exist. 

     

    Ergo IsBlank(LookUp(Test; Title = User().FullName)) returns FALSE when the list is empty and/or when there are no records with my full name. I have also confirmed this directly by printing it in a label and the label prints false even though it should obviously print true as there are in fact, no records with my name in the title!

     

    I understand if the User() function call might not work with Sharepoint lists with thousands of records but as is it does not even work with 0-10 records. What gives? As it is I have to find some workaround as per specification my solution should utilize a sharepoint list.

     

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard