cancel
Showing results for 
Search instead for 
Did you mean: 

C4C Contacts Filter Conditions - Attributes with AND condition

SCHNEIDERT
Active Contributor
621

Hi Experts,

I want to filter all the Contacts in SAP Sales Cloud that have a given value for four Marketing Attributes.

So, I want to see all Contacts that have the value Z2 for each attribute.

Using the filter in the Contacts overview I can only select multiple attribute values with an OR condition.

Is it somehow possible to change that to an AND condition?

BR Tobias

Khaled_Alkafoury
Active Participant
0 Kudos

https://help.sap.com/docs/SAP_CLOUD_FOR_CUSTOMER/24765b551a014b779b95c7b07d8e9079/bff926eab1494871b5...

Provided if you personalize your solution to make it visible, you can enable your users to access the Attributes field within the advanced search of accounts, contacts and individual customers and maintain conditions there that influence the corresponding search behavior. Once this field is visible and your users select it to maintain conditions, they can specify a combination of attribute sets, attributes, operators and values – for example, Employee Attributes, Region, Equal, and North America, respectively – to apply to the attributes search. Users can also specify additional attribute conditions with the logical operator OR. Once these parameters have been saved, users can apply the associated conditions as an advanced search query to find business partners with corresponding Attributes, and to display them within the attributes tab of the work center view of the associated business partner.

Accepted Solutions (0)

Answers (1)

Answers (1)

palu
Product and Topic Expert
Product and Topic Expert

Hi Tobias,

In C4C Odata, Logical operator AND only works when used between different properties.

Supported:

$filter=OpportunityID ge 'YYYY' and Name/content eq 'Test'

Not Supported:

$filter=PartyID ge 'ZZZZ' and PartyID le 'XXXX'

(YYYY represents the ID of the Opportunity, ZZZZ represents one Party ID and XXXX represents another Party ID)

Similarly,

Logical operator OR only works when used between same properties.

Supported:

$filter=PartyID ge 'ZZZZ' or PartyID le 'XXXX'

Not Supported:

$filter=PartyID ge 'ZZZZ' or OpportunityID le 'XXXX'

Regards,Palani.
WoodyCX
Participant
0 Kudos

- additional info-
This influence request is for now closed (Status: Not Planned):

https://influence.sap.com/sap/ino/#/idea/246092/?section=sectionVotes