Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

In SDP(Service Data Provider) search and date filters are not working simultaneously

edited Jun 18, 2020 6:39AM in Digital Customer Service 2 comments

Summary

In SDP I have enabled Search on one field and the date filter on another field, When I apply date filter, the search wont work after that & even after resetting the date fields

Version

19.4.3.2

Code Snippet

=====> Search Related Code <===

 "op": "$or",
 "criteria": [
  {
   "op": "$co",
   "attribute": "BackendCustomerName_c",
   "value": "{{ $variables.searchVar }}"
  },
  {
   "op": "$co",
   "attribute": "RecordName",
   "value": "{{ $variables.searchVar }}"
  }
 ]
}

==> For Date filter wrote a button action chain on custom fields <==
{
 "filterCriterion": {
  "criteria": [
   "{{ $page.variables.orderfromdate }}",
   "{{ $page.variables.ordertodate }}"
  ],
  "op": "$and"
 }
}
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!