cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to check if table is empty for each record and records inside an collection?

Hello,

 

We want to check all INCOTERMS column for each record in the collection but INCOTERM is in the subet collection of same record.

 

Example:

 

ShipTo is First Collection and ShippingInfo is subset of first Collection. (INCOTERMS IS IN THE ShippingInfo Collection)

 

ShipToCollection.PNG

 

ShipTo.PNG

 

Each record has shippingInfo collection as you see above. In ShippingInfo collection, 5 columns exist. See above. First Columns is INCOTERMS.

 

How to perform an mass check to see if each record in the shipTo collection to see - is INCOTERMS blank or not? Like to perform check on all records at once.

 

Some Formulas that we are playing with:

If(IsEmpty(LookUp(ShipTo,First(ShippingInfo).INCOTERMS1 = "")),"No Error","Error")

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

@v-monli-msft  got a figure it out.  Have to use the ForAll function.

 

Example:

If(LookUp(ForAll(ShipTo, First(ShippingInfo).INCOTERMS1 = ""),value = true).Value = true, Set(Var, "Error"), Set(Var,"No Error"))

View solution in original post

3 REPLIES 3
Community Support
Community Support

Hi @Anonymous ,

 

What result do you want to have after the checking? Did you mean that you want to return an error if any one of these records has an empty value for INCOTERMS column?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-monli-msft Yes that is correct

Anonymous
Not applicable

@v-monli-msft  got a figure it out.  Have to use the ForAll function.

 

Example:

If(LookUp(ForAll(ShipTo, First(ShippingInfo).INCOTERMS1 = ""),value = true).Value = true, Set(Var, "Error"), Set(Var,"No Error"))

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (3,680)