Thursday 4 April 2019

ODATA filter for Mobile number

When trying to use the mobile number filter criteria in the ODATA functionality, it may not retrieve the data, so there is solution for it.

https://myXXXXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/IndividualCustomerCollection?$filter=Phone eq %2B91 9873263245'

The special character + Indicates a space (and spaces cannot be used in a URL) so you need to replace the character with its hexadecimal value as %2B.

Your corrected filter should then be $filter=Mobile eq '%2B46 123456789'



No comments:

Post a Comment