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 / Save data from Gallery...
Power Apps
Answered

Save data from Gallery to Sharepoint, but Gallery pulls the data from PowerBI

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

I have a Gallery in my app that pulls its data via PowerBI (Items: 'PowerBIIntegration'.Data).

 

The goal of the app is to save the data from the gallery to sharepoint via a button. The Gallery has several data sets.


There are several labels in the Gallery:
Label 1: Text: Text(DateTimeValue(ThisItem.kalendertagstufe01_0); "dd.mm.yyyy")
Label 2: Text: ThisItem.fertigungsauftrag_schlüsselnichtgeklammert_0

 

The sharepoint is named "PUL list test". Label 1 is to be stored in the sharepoint in the column "Meldungsdatum" (setting of the column is to date) and label 2 in the column "FAUF-Nr." (setting of the column is number).

 

Unfortunately I can't find an approach to program this and would be very grateful for help.

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Before I posted here, I had tested for a very long time. Now shortly after testing I got it right.

    I wrote the following code in the button under OnSelect:

     

    ClearCollect(CurrentRecords; 'PowerBIIntegration'.Data);;

    ForAll(
    CurrentRecords;
    Patch(
    'PUL-Liste Test';
    Defaults('PUL-Liste Test');
    {
    Meldungsdatum: DateTimeValue(kalendertagstufe01_0);
    'FAUF-Nr.': Value(fertigungsauftrag_schlüsselnichtgeklammert_0)
    }
    )
    )

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard