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 / Collection Path Not Sa...
Power Apps
Answered

Collection Path Not Saving to SharePoint

(0) ShareShare
ReportReport
Posted on by 995

I am trying to Patch my Collection to my SharePoint List.  The collection looks good and has the saved values, but when I Patch that collection to SharePoint, nothing happens.  I'm using a dropdown within my Powerapp for a status field, and saving that to a single line text field in SharePoint.  Could that cause the issue?

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @kmw1130 

    Please post the Patch() function that you are using to save your collection to the SharePoint list.

  • kmw1130 Profile Picture
    995 on at

    This is on the OnSuccess of my Main Form:

    Line... are the names I used to create my Collection.

     

    ForAll(TrackingCollection, If(!IsBlank(LineType),Patch('Program Tracking', Defaults('Program Tracking'),
    {
    Title: LineType,
    'Contract Name': LineProgramName,
    'Assigned To': LineAssignedTo,
    'Date Identified': DateValue(LineDateIdentified),
    'Date Closed': DateValue(LineDateClosed),
    'Description': LineDescription,
    'Tracking Resolution': Value(LineResolution),
    Likelihood: Value(LineLikelihood),
    Impact: Value(LineImpact),
    BU: LineBU,
    ProgramID: FormIssues.LastSubmit.ID})));
    Navigate(TrackingOverviewScreen,ScreenTransition.Fade)

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @kmw1130 

    Is your collection a single record and are you trying to save the record to a different list?

  • kmw1130 Profile Picture
    995 on at

    No, it is multiple records possibly (currently there are 2 items to be patched to my SP List).  I'm using a gallery as my repeating table, which saves to the collection, but then does not save to SP.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@kmw1130,

    Based on the issue that you mentioned, do you want to save the collection to your SP list?

    Could you please tell me that if this collection is your repeating table in the Gallery?

    Actually, you could directly populate a Gallery with the collection, and then patch all the gallery items to SP list.

    Please try the following formula:

    ForAll(
     YouGalleryName.AllItems, 
     If(!IsBlank(LineType),Patch('Program Tracking', 
     Defaults('Program Tracking'), 
     {Title: LineTypeLabel.Text,
     'Contract Name': LineProgramNameLabel.Text,
     'Assigned To': LineAssignedToLabel.Text,
     'Date Identified': DateValue(LineDateIdentifiedLabel.Text),
     'Date Closed': DateValue(LineDateClosedLabel.Text),
     'Description': LineDescriptionLabel.Text,
     'Tracking Resolution': Value(LineResolutionLabel.Text),
     Likelihood: Value(LineLikelihoodLabel.Text),
     Impact: Value(LineImpacLabel.Textt),
     BU: LineBULabel.Text,
     ProgramID: FormIssues.LastSubmit.ID})));
     Navigate(TrackingOverviewScreen,ScreenTransition.Fade)

    Hope it could help.

    Regards,

    Qi

  • kmw1130 Profile Picture
    995 on at

    @v-qiaqi-msft Yes, this is a repeating gallery.  I am trying your suggestion and will follow-up with the results.

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard