Skip to main content
Community site session details

Community site session details

Session Id : 942lH8MdMTI9EkZru2v5sS
Power Apps - Building Power Apps
Answered

Creating a collection from sharepoint

Like (0) ShareShare
ReportReport
Posted on 22 Jun 2022 21:35:31 by

I have created a collection from SharePoint. In the SharePoint this column is set up as choices.

 

I have created a collection using this formula

 

ClearCollect(Deadline, {Result: "All"}); Collect(Deadline, Choices('Test Closing calendar'.'Deadline Day'))

 

However the items collected from SharePoint are displayed or collected as values not results.

 

Can I change them into results? or when using this collection for filtering the gallery I need to play with formula a bit?

  • WarrenBelz Profile Picture
    148,929 Most Valuable Professional on 23 Jun 2022 at 08:00:18
    Re: Creating a collection from sharepoint

    @Anonymous ,

    No it is not - the field name is field_4 you must have imported this from Excel - you need

     field_4.Value = 'Deadline Selection'.Selected.Value

     

    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, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    on 23 Jun 2022 at 06:23:24
    Re: Creating a collection from sharepoint

    Got the same link 

    Anna_Krause_0-1655965392319.png

     

  • WarrenBelz Profile Picture
    148,929 Most Valuable Professional on 23 Jun 2022 at 01:41:50
    Re: Creating a collection from sharepoint

    @Anonymous ,

    You are missing the end - another way is to hover over the field name and the URL is at the bottom. 

    WarrenBelz_0-1655948493785.png

     

  • Community Power Platform Member Profile Picture
    on 23 Jun 2022 at 00:34:41
  • WarrenBelz Profile Picture
    148,929 Most Valuable Professional on 23 Jun 2022 at 00:26:49
    Re: Creating a collection from sharepoint

    @Anonymous ,

    Maybe it should be

    'Deadline Day'.Value

    or you could also try

    Deadline_x0020_Day'.Value

    The actual name is at the end of the URL of the screen you have posted.

     

    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, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    on 23 Jun 2022 at 00:22:16
    Re: Creating a collection from sharepoint

    If you mean what is the Dropdown box that shows the collection of Deadline it's exactly the list you see as Choice (WD1, WD2, ...)

  • Community Power Platform Member Profile Picture
    on 23 Jun 2022 at 00:20:45
    Re: Creating a collection from sharepoint

    I am sorry but on the settings for this field I don't see any URL

    Anna_Krause_1-1655944237614.pngAnna_Krause_2-1655944251882.png

     

     

     

  • WarrenBelz Profile Picture
    148,929 Most Valuable Professional on 23 Jun 2022 at 00:11:57
    Re: Creating a collection from sharepoint

    @Anonymous ,

    Go to your SharePoint List Settings, select Deadline_Day and look at the end of the top URL to see the actual field name. Also what are the Items of the Combo Box ?

  • Community Power Platform Member Profile Picture
    on 23 Jun 2022 at 00:05:53
    Re: Creating a collection from sharepoint

    When I type this one in, I got an error message "Name isn't valid. Value isn't recognized".

     

    On the SharePoint this field is a single choice field.

     

     

  • WarrenBelz Profile Picture
    148,929 Most Valuable Professional on 22 Jun 2022 at 23:50:27
    Re: Creating a collection from sharepoint

    @Anonymous ,

    That is why I used .Value - are you saying there is an error on

     Deadline_Day.Value = 'Deadline Selection'.Selected.Value

    also what are the Items of 'Deadline Selection' and is Deadline_Day a single or multiple choice in SharePoint ? 

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2