cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Special Character '&' handling in OData SF API call

former_member440061
Participant
0 Kudos
621

Hello All,

I am getting 400 Bad request error while calling SF OData API to fetch Position Data from SuccessFactors system. Upon analyzing, I found it is because we have '&' in the code. The query is as follows:

----------------------------------------------------------

$select=code,externalName_defaultValue,effectiveStartDate,effectiveEndDate,effectiveStatus,cust_Direct_Indirect,cust_region,company,division,businessUnit,cust_BusinessUnit,costCenter,department,parentPosition/code,jobTitle,cust_LocalJobTitle,costCenterNav/description,costCenterNav/description_defaultValue,description,standardHours,lastModifiedDateTime&$expand=parentPosition,costCenterNav&$filter=code eq 'OKR_F_F&A_IC'&fromDate=1900-01-01&toDate=9999-12-31

----------------------------------------------------------

I have tried suggestions given in this link (replacing & with %26) but it did not work. Also tried using the code in the query as 'OKR_F_F&A_IC', still not working.

Has anyone come across such issue? Any suggestions will be highly appreciated. Thanks in advance!

Regards,

Faisal

View Entire Topic
evanireland
Product and Topic Expert
Product and Topic Expert
0 Kudos

If you have a good channel to server support through SuccessFactors, then that would be the way to go.