cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
taylope99
New Member

AddColumn to Collection - missing records

Hi,

 

So I have created a collection from other collections and then I add a column from another collection.  This added column is present in the Master final collection needed for my app, but not all records have brought over the lookup value ("3month" in this case) ?

 

I have checked the collection that holds this "3month" are the data is present but just not all of it is moving into the Final collection.

This part ";Concurrent(ClearCollect(colCat1,Sort('SAM Catalogue',ID,Ascending)),ClearCollect(colCat2,Sort('SAM Catalogue',ID,Descending)));ClearCollect(colAllData,colCat1,Filter(colCat2,Not(ID in colCat2.ID)));" relates to getting upto 4000 records from SP overcoming to 2k limit.

The bold part is where it is failing to get all lookup records....

 

Code extract below...(Master Final collection is called colAllData2) -

 

 

ClearCollect(colCounterData,'Request Counter');Concurrent(ClearCollect(colCat1,Sort('SAM Catalogue',ID,Ascending)),ClearCollect(colCat2,Sort('SAM Catalogue',ID,Descending)));ClearCollect(colAllData,colCat1,Filter(colCat2,Not(ID in colCat2.ID))); Clear(colCat1);Clear(colCat2);ClearCollect(colAllData2,AddColumns(colAllData,"Monthly",LookUp(colCounterData,Title in colAllData[@Application],'3Month')))

 

1 ACCEPTED SOLUTION

Accepted Solutions
taylope99
New Member

xed - Change "in" in the last part to "=".  All good now.

View solution in original post

1 REPLY 1
taylope99
New Member

xed - Change "in" in the last part to "=".  All good now.

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,244)