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 Apps
Unanswered

COLLECT Function

(0) ShareShare
ReportReport
Posted on by

Hi there,

 

I am trying to build an app to act as a Conflict of Interest register for my organisation.

 

I have set up a sharepoint list and set some fields to 'Person or Group', I have then created a form in Power Apps. I am now trying to create a function whereas once you haved entered the data into the Power App it adds it to the various fields in the Sharepoint list. I have been trying to use the COLLECT function to do this, but it keeps returning the error below:

Image

 

I have written the formula below just as part of the example of what I am doing:

 

Collect(InterestRegister,{Name:Name1.text})

 

InterestRegister - Sharepoint List

Name - Sharepoint List Column

Name1 - Power Apps form field

 

The column in the Sharepoint List is formatted to 'Person or Group'.

 

Can anyone help how to fix this?

I have the same question (0)
  • iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at
    Hi,
     
    If you've set up a form, why are you using Collect?
    You should be able to use SubmitForm() to submit all datacards and fields listed in the form,
     
    Cheers,
  • Verified answer
    Ravi-Prajapati Profile Picture
    416 Super User 2025 Season 2 on at
    To store the data in Sharepoint list either user SubmitForm(formname) or Patch function.
     
    Patch( List, Defaults(List), {column1: column1.Text, EmployeeColumn: {
               '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
               Claims: "i:0#.f|membership|abc@companyname.com",
               Department: "",
               DisplayName: "User Name",
               Email: "abc@companyname.com",
               JobTitle: "",
               Picture: ""
            }})

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard