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 / Create Record in Share...
Power Apps
Answered

Create Record in Sharepoint List using different Sharepoint List as Source Data

(0) ShareShare
ReportReport
Posted on by 221

I am looking to add records to this SharepointList: 'IT-To Do List Status - TEST'

JeffGimo_0-1610468856419.png

Employee: office 365user display name

Training name: IT-To Do List - Test.Task (Please see below)

Status: Null

Date Completed: Null

Attachment: none

URL ; IT-To Do List - Test.URL

 

The records I'd like to insert are records from this sharepoint list: 'IT-To Do List- Test'

JeffGimo_1-1610468941420.png

 

Can you give me an example on how to insert records using data from 'IT-To Do List - test' ?

I am trying to insert using collect or patch but having an issue with the syntax.

 

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @JeffGimo 

    Consider the following for doing what you want:

    Collect('IT-To Do List Status - TEST', 
     ForAll('IT-To Do List - Test', 
     {Employee: User().FullName, 
     'Training Name', Task,
     URL: URL
     }
     )
    )

     

    I hope this is helpful for you.

  • JeffGimo Profile Picture
    221 on at

    The formula can't seem to find the columns of 'IT-To Do List Status - TEST'.

    Any insights on this one?

    JeffGimo_5-1610472516706.png

     

  • Verified answer
    JeffGimo Profile Picture
    221 on at

    Hello,

     

    This code solved my problem. Thanks for the insights that helped me with the problem.

    ForAll('IT-To Do List - Test',
    Collect('IT-To Do List Status - TEST',
    {
    Title: User().FullName, URL:URL,
    'Training Name' : Title
    }))

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @JeffGimo 

    I am first not sure what you are trying to do with the setting of the variable to the datasource - IT-To Do List -Test?

     

    Next, you will not get Formula editor "autocomplete" for column names in the formula.  This just means you will need to specify the column name exactly as it is in the list.

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @JeffGimo 

    Your formula should be:

    Collect('IT-To Do List Status - TEST',
     ForAll('IT-To Do List - Test',
     {
     Title: User().FullName, URL:URL,
     'Training Name' : Title
     }
     )
    )

    As you have it now in the formula you mentioned, your performance will be poor.

    In the above formula we are not "wasting" the output of the ForAll.  We are using it to feed to a Collect function, which will take all the records at once.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard