So this might be an easy one, but I somehow can't wrap my head around it. I am trying to find a business partner by its e-mail address using the SAP Cloud SDK.
This is what I have so far:
final List<BusinessPartner> businessPartners = new DefaultBusinessPartnerService()
.getAllBusinessPartner()
.select(BusinessPartner.BUSINESS_PARTNER,
BusinessPartner.TO_BUSINESS_PARTNER_ADDRESS
.select(BusinessPartnerAddress.TO_EMAIL_ADDRESS
.select(AddressEmailAddress.SEARCH_EMAIL_ADDRESS)))
.filter(AddressEmailAddress.SEARCH_EMAIL_ADDRESS.eq(email)) //something like this?
.top(10)
.execute();
Now, how can I perform a filter operation on the expanded entity AddressEmailAddress
? The one I came up with obviously doesn't. I have troubles navigating to the expanded entity using the fluent API.
Any ideas?