We might get the below error while using Xrm.WebAPI. ‘Bad Request – Error in query syntax.’ One of the reasons could be that while setting up the Lookup field, we haven’t removed the curly brackets. Use the below function to replace/remove them. let result = myGuid.replace(/[{}]/g, ”); let result = myGuid.replace(“{“, “”).replace(“}”, “”); Hope it … Continue reading “Fixed – Bad Request –…
Continue Reading Nishant Rana’s Article on their blog
Fixed – Bad Request – Error in query syntax while using Xrm.WebAPI
We might get the below error while using Xrm.WebAPI. ‘Bad Request – Error in query syntax.’ One of the reasons could be that while setting up the Lookup field, we haven’t removed the curly brackets. Use the below function to replace/remove them. let result = myGuid.replace(/[{}]/g, ”); let result = myGuid.replace(“{“, “”).replace(“}”, “”); Hope it…
Blog Syndicated with Nishant Rana’s Permission
More About This Author
Array
Dyn365CE2023.01.26Configuration Migration Tool Filter Updates and the Power Apps Portal
Dyn365CE2023.01.25Marketing Form and required (mandatory) fields in Lead and Contact – Dynamics 365 Marketing
Dyn365CE2023.01.25Sample formula for Associating N:N records and Creating 1:N records in Canvas App (PowerApps / Dataverse)
Dyn365CE2023.01.24How duplicate phone numbers for customers (contact/account) are handled in Voice Channel (Dynamics 365 Omnichannel for Customer Service)