Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Javascript SDK.JQuery.retrieveMultipleRecords issue with boolean

$
0
0

Hi

I have an issue with retrieving the correct boolean value from the Javascript SDK.JQuery.retrieveMultipleRecords method.  In the SuccessCallback part of the method I want to check if the value is True and do stuff according to the condition.  Just a simple example

SDK.JQuery.retrieveMultipleRecords("Contact","$select=*&$filter=ParentCustomerId/Id eq guid'" + AccountId +"'",
		function (results) {
		var firstResult = results[0];
		if (firstResult != null) 
		{
			for (var k = 0; k < results.length; k++) 
			{
				var ContactDetails = results[k];

				
				if (ContactDetails.new_myBoolean = true)
				{
				     alert('true')
				}


..........

In crm the new_myBoolean field is of type two option.  It does not matter whether the field is true all false, it always display true. 


Please vote if you find my post useful. Add me on Skype @ christo.skype1


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>