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
Dyn365CE16 July 2024Set an app (Model-driven or Canvas App) as a startup app – Power Apps Mobile
Dyn365CE16 July 2024Mobile Offline Profile – Select columns to be downloaded (Dynamics 365 / Model-driven apps)
Dyn365CE10 July 2024Perform Age calculation using Formula Columns in Dataverse / Dynamics 365
Dyn365CE8 July 2024Using Homogenous Batch / Bulk operation messages for improved performance – Data Migration / Dataverse