cancel
Showing results for 
Search instead for 
Did you mean: 

how to get list of B2B units of B2B customers associated to the login B2B customer?

Former Member
0 Kudos
1,249

how to get list of B2B units of B2B customers associated to the login B2B customer?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

get All b2b units of customer like below

CollectionUtils.predicatedCollection(customer.getGroups(),PredicateUtils.instanceofPredicate(B2BUnitModel.class))

Answers (1)

Answers (1)

Former Member
0 Kudos

B2B units are assigned as User Groups to B2B customer. So, first get the user groups assigned to the customer and check the group type. If the type is of B2BUnit type then capture the ID in a list.