JavaScript – OData Query

Whilst adding JavaScript to forms in Dynamics 365 we often use OData to query data. But what is OData and how do you write JavaScript to query data? I will try to address these questions in this post.

JavaScript – Refresh Forms

Here is a quick JavaScript code example. Having added a new opportunity on a contact I wanted to refresh the contact form and at the same time save any changes. This concept might be useful in several circumstances, say you have a customization on the opportunity that updates fields on the contact. Then refreshing the…

Javascript – Set any value

Previously I have shown standard functions I use to get text values of attributes and set option sets based on their text value. Here is another common function I use to set the value of any field.(Except lookups which need more parameters, I will cover these later!) // *** FUNCTION : SetValue // *** PARAMS…