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 / SharePoint List to col...
Power Apps
Unanswered

SharePoint List to collection issue (What in the id10t did I do wrong)

(0) ShareShare
ReportReport
Posted on by

The top table is loaded from my Sharepoint Litst. The bottom table is the collection that the list was loaded into. Im just doing the clearcollect function. 

 

 

DavidLaz_0-1651678947132.png

 

What did I break? 

 

Categories:
I have the same question (0)
  • AsanKani Profile Picture
    710 on at

    Hi @Anonymous 
    Let me know the error message and what here you do explain more...

  • Community Power Platform Member Profile Picture
    on at

    The issue is that the content fields aren't matching up. 

  • AsanKani Profile Picture
    710 on at

    Hi @Anonymous 

    You are using Bottom table with collection. Let me know the Collection coding where to collect. and where to use clear collect? 

  • Community Power Platform Member Profile Picture
    on at

    yes the bottom table is directly showing the collection created by Collect(inspectors1, 'Livestock Inspectors')

  • AsanKani Profile Picture
    710 on at

    Hi @Anonymous 

    Ok. Where to use ClearCollect function?

    You can directly use ClearCollect(inspectors1, 'Livestock Inspectors'). What do you say ?

    Still you are not give enough data... like below
    Collection used data Livestock inspectors from where?

    Why/where you used clearcollect function? what is the purpose?

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways or you liked the post and want to show some appreciation, please give it a Thumbs

  • Community Power Platform Member Profile Picture
    on at

    Hi @Anonymous ,

     

    Is that a screenshot from DataTable or Gallery control in your application? Wich displays records from the List and Collection respectively? 
    If yes, then you can't display Author or Editor directly in the Label fields of DataTable or Gallery. 
    You have to use either Author.DisplayName or (Email, claims, Jobtitle, Department, Picture (in image control), etc. ) of the Author or Editor to display it on the table.

    (ex. ThisItem.'Created By'.DisplayName &

    ThisItem.Author.DisplayName &

    ThisItem.Author.Email &

    ThisItem.Author.Department, etc.

    ).

    If there is any Lookup or choice field then append ThisItem.FieldName.Value
    Refer screenshot below,

    VishuS_0-1651731771889.png

    There is no error in "ClearCollect(CollectDemo,TestDemo)" here "CollectDemo" is Collection & "TestDemo" is List.
    ___________________________________________________________________________________________________________________________________
    If this post helps you to resolve your issue, then mark it as an answer/ solution for future reference.

  • Community Power Platform Member Profile Picture
    on at

    The top data table is directly refrencing the sharpoint list 

     

    the second is referencing a collection that was built using the clearcollect control and the list. 

     

    if you look the bottom table doesn't have the correct field names instead it's feild_1 feild_2 ..... 

  • Community Power Platform Member Profile Picture
    on at

    Hi @Anonymous ,

    Refer to my previous reply. 
    I suggest you verify column names in the collection (From the view tab => select collections=> verify Fields names in your Collection.)

    • Consider your Fields name is field_1 (Single or Multiline Text field ) then ThisItem.field_1 will be the text property for the respective column inside your Data Table/ Gallery.
    • If it is the Person column then ThisItem.field_1.DisplayName or ThisItem.field_1.Email will be the text property for the respective column.  
    • If it is the Choice or Lookup column then ThisItem.field_1.Value will be the text property for the respective column.  

    ___________________________________________________________________________________________________
    If this post helps you to resolve your issue 👍, then mark it as an answer/ solution ✔️ for future reference.

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