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 / Forall to collect data
Power Apps
Unanswered

Forall to collect data

(0) ShareShare
ReportReport
Posted on by 95

Hi All,

I have multiple Names and Id's in CollectionA.

 

And Names(multiple) are selecting by using combobox. Based in the selected Names I have to select the ID's.

 

I used below code which is not working as expected.

 

ForAll(collectionA.Name,

Collect(collectionX ,Filter(Office365Outlook.GetEventsCalendarViewV2(
LookUp(collectionY,Name in collectionB.Name).ID, // Here im using LookUp and returns same ID eachtime.
Text(DateAdd(dpkFrom.SelectedDate,-1,Hours),UTC),
Text(DateAdd(dpkTo.SelectedDate,1,Days),UTC)).value));

 

Can someone help me on this.

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @BKGOUD ,

     

    Could you please share more details about your scenario? What is the Items property of the Combo Box? What are those collectionY and collectionB? Is that collection A containing some calendars?

     

    Due to lack of information, I could only check the formula and found a problem:

     

    Collect(collectionX ,Filter(Office365Outlook.GetEventsCalendarViewV2(

    LookUp(collectionY,Name in collectionB.Name).ID,

    Text(DateAdd(dpkFrom.SelectedDate,-1,Hours),UTC),

    Text(DateAdd(dpkTo.SelectedDate,1,Days),UTC)).value, logical test))

     

    You have a filer function but without any logical test in your formula.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • BKGOUD Profile Picture
    95 on at

    @v-jefferni ,

    Thanks for helping me. PFB details.

     

    What is the Items property of the Combo Box?  -  collectionA.Name

    What are those collectionY and collectionB?  - collectionY (Having all the calendar Names and ID's)  and collectionB(Typo) is equal to collectionA.

    Is that collection A containing some calendars?  -Yes

     

    ForAll(collectionA.Name,

    Collect(collectionX ,Filter(Office365Outlook.GetEventsCalendarViewV2(
    LookUp(collectionY,Name in collectionB.Name).ID, // Here im using LookUp and returns same ID eachtime.
    Text(DateAdd(dpkFrom.SelectedDate,-1,Hours),UTC),
    Text(DateAdd(dpkTo.SelectedDate,1,Days),UTC)).value),ShowAs="Tentative")

    );

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard