<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Read, Query &#038; Update Field(s) in Other Microsoft CRM Entities Inside OnLoad, OnSave and OnChange Events Using Jscript</title>
	<link>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/</link>
	<description>Train • Certify • Succeed</description>
	<pubDate>Mon, 06 Oct 2008 19:28:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Stanislav</title>
		<link>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-248</link>
		<dc:creator>Stanislav</dc:creator>
		<pubDate>Sat, 31 May 2008 05:29:19 +0000</pubDate>
		<guid>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-248</guid>
		<description>var specialid=2; // значение для наглядности примера
var xmlHttpRequest = new ActiveXObject("Msxml2.XMLHTTP");
var xmlPost = ''+
''+ 
''+
''+
''+ 
''+
'{5C583880-D02D-DD11-9B54-000C2909D8F5}'+ 
'specialid'+ 
''+ 
''+
''+
''+
'';
xmlHttpRequest.open("POST", "/mscrmservices/2006/CrmService.asmx", false); 
xmlHttpRequest.setRequestHeader("Content-Type", "text/xml; charset=utf-8"); 
xmlHttpRequest.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/crm/2006/WebServices/Execute");
//alert(xmlPost);
xmlHttpRequest.send(xmlPost);</description>
		<content:encoded><![CDATA[<p>var specialid=2; // значение для наглядности примера<br />
var xmlHttpRequest = new ActiveXObject(&#8221;Msxml2.XMLHTTP&#8221;);<br />
var xmlPost = &#8221;+<br />
&#8221;+<br />
&#8221;+<br />
&#8221;+<br />
&#8221;+<br />
&#8221;+<br />
&#8216;{5C583880-D02D-DD11-9B54-000C2909D8F5}&#8217;+<br />
&#8217;specialid&#8217;+<br />
&#8221;+<br />
&#8221;+<br />
&#8221;+<br />
&#8221;+<br />
&#8221;;<br />
xmlHttpRequest.open(&#8221;POST&#8221;, &#8220;/mscrmservices/2006/CrmService.asmx&#8221;, false);<br />
xmlHttpRequest.setRequestHeader(&#8221;Content-Type&#8221;, &#8220;text/xml; charset=utf-8&#8243;);<br />
xmlHttpRequest.setRequestHeader(&#8221;SOAPAction&#8221;, &#8220;http://schemas.microsoft.com/crm/2006/WebServices/Execute&#8221;);<br />
//alert(xmlPost);<br />
xmlHttpRequest.send(xmlPost);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stanislav</title>
		<link>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-247</link>
		<dc:creator>Stanislav</dc:creator>
		<pubDate>Sat, 31 May 2008 05:28:12 +0000</pubDate>
		<guid>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-247</guid>
		<description>Hello, this code is based on your example. Thank you for idea. It's a really elegant solution. But .... it doesn't work. Script works (no syntax errors) but no result. I think the problem with web service (method). Would you please check it?

var test_value="test"; // значение для наглядности примера
var xmlHttpRequest = new ActiveXObject("Msxml2.XMLHTTP");
var xmlPost = ''+
''+ 
''+
''+
''+ 
''+
'' + '{5C583880-D02D-DD11-9B54-000C2909D8F5}' + ''+ 
'' + test_value + ''+ 
''+ 
''+
''+
''+
'';
xmlHttpRequest.open("POST", "/mscrmservices/2006/CrmService.asmx", false); 
xmlHttpRequest.setRequestHeader("Content-Type", "text/xml; charset=utf-8"); 
xmlHttpRequest.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/crm/2006/WebServices/Execute");
//alert(xmlPost);
xmlHttpRequest.send(xmlPost);</description>
		<content:encoded><![CDATA[<p>Hello, this code is based on your example. Thank you for idea. It&#8217;s a really elegant solution. But &#8230;. it doesn&#8217;t work. Script works (no syntax errors) but no result. I think the problem with web service (method). Would you please check it?</p>
<p>var test_value=&#8221;test&#8221;; // значение для наглядности примера<br />
var xmlHttpRequest = new ActiveXObject(&#8221;Msxml2.XMLHTTP&#8221;);<br />
var xmlPost = &#8221;+<br />
&#8221;+<br />
&#8221;+<br />
&#8221;+<br />
&#8221;+<br />
&#8221;+<br />
&#8221; + &#8216;{5C583880-D02D-DD11-9B54-000C2909D8F5}&#8217; + &#8221;+<br />
&#8221; + test_value + &#8221;+<br />
&#8221;+<br />
&#8221;+<br />
&#8221;+<br />
&#8221;+<br />
&#8221;;<br />
xmlHttpRequest.open(&#8221;POST&#8221;, &#8220;/mscrmservices/2006/CrmService.asmx&#8221;, false);<br />
xmlHttpRequest.setRequestHeader(&#8221;Content-Type&#8221;, &#8220;text/xml; charset=utf-8&#8243;);<br />
xmlHttpRequest.setRequestHeader(&#8221;SOAPAction&#8221;, &#8220;http://schemas.microsoft.com/crm/2006/WebServices/Execute&#8221;);<br />
//alert(xmlPost);<br />
xmlHttpRequest.send(xmlPost);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-241</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Fri, 16 May 2008 10:10:14 +0000</pubDate>
		<guid>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-241</guid>
		<description>Hello.

I'm trying something very similar. What I want to do is to check in an onLoad-script in an opportunity, if the opportunityid of a particular opportunity appears in any quote. I tried to use your code as a schema, but my code doesn't work. The browser throws an "object expected"-error.

Since I'm very new to SOAP-requests, it may be a basic error. I tested the SOAP-request with a testing tool. It works. My guess is that it's something around the request or a namespace-issue or stuff like that. How can I debug this?</description>
		<content:encoded><![CDATA[<p>Hello.</p>
<p>I&#8217;m trying something very similar. What I want to do is to check in an onLoad-script in an opportunity, if the opportunityid of a particular opportunity appears in any quote. I tried to use your code as a schema, but my code doesn&#8217;t work. The browser throws an &#8220;object expected&#8221;-error.</p>
<p>Since I&#8217;m very new to SOAP-requests, it may be a basic error. I tested the SOAP-request with a testing tool. It works. My guess is that it&#8217;s something around the request or a namespace-issue or stuff like that. How can I debug this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-216</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Tue, 01 Apr 2008 17:42:26 +0000</pubDate>
		<guid>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-216</guid>
		<description>Could I see a screen shot of the last post and how its set up?</description>
		<content:encoded><![CDATA[<p>Could I see a screen shot of the last post and how its set up?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-215</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Tue, 01 Apr 2008 17:26:23 +0000</pubDate>
		<guid>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-215</guid>
		<description>I think I am having trouble understanding:

"Created a new custom entity called Counter to hold the next available counter value. Added three attributes to this entity:

“ItemType” to hold the type of the item we would want to create serial numbers for. In this scenario there is only one; Widget. The value is “Widget” 
Prefix set to “WID” to hold the Prefix for the serial number 
Countervalue set to 1000 to hold the next available counter value" 

So I am to create 3 attributes in the new counter customer enitity called ItemType, Prefix, and CounterValue. I put those 3 fields on my Counter form, enter the values and save them as a single record?</description>
		<content:encoded><![CDATA[<p>I think I am having trouble understanding:</p>
<p>&#8220;Created a new custom entity called Counter to hold the next available counter value. Added three attributes to this entity:</p>
<p>“ItemType” to hold the type of the item we would want to create serial numbers for. In this scenario there is only one; Widget. The value is “Widget”<br />
Prefix set to “WID” to hold the Prefix for the serial number<br />
Countervalue set to 1000 to hold the next available counter value&#8221; </p>
<p>So I am to create 3 attributes in the new counter customer enitity called ItemType, Prefix, and CounterValue. I put those 3 fields on my Counter form, enter the values and save them as a single record?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Unitek CRM Team</title>
		<link>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-210</link>
		<dc:creator>Unitek CRM Team</dc:creator>
		<pubDate>Mon, 31 Mar 2008 20:44:34 +0000</pubDate>
		<guid>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-210</guid>
		<description>Hi Jeremy, 

I will try and e-mail you the code, I am having issues pasting in the appropriate code.

RM, Microsoft CRM Consultant
Unitek Microsoft CRM Services</description>
		<content:encoded><![CDATA[<p>Hi Jeremy, </p>
<p>I will try and e-mail you the code, I am having issues pasting in the appropriate code.</p>
<p>RM, Microsoft CRM Consultant<br />
Unitek Microsoft CRM Services</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-209</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Mon, 31 Mar 2008 20:11:21 +0000</pubDate>
		<guid>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-209</guid>
		<description>Oh yea...and Prefix (schema: new_prefix 'nvarchar') in the Counter =)</description>
		<content:encoded><![CDATA[<p>Oh yea&#8230;and Prefix (schema: new_prefix &#8216;nvarchar&#8217;) in the Counter =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-208</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Mon, 31 Mar 2008 20:08:47 +0000</pubDate>
		<guid>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-208</guid>
		<description>Is there anyway you could post screen shots of the forms in customization. I have to be  missing something somehwhere. I am trying to mimic exactly what you have. I created an entity labeled Widget (schema: new_widget) with two custom fields Widget Serial Number (schema: new_widgetsn 'nvarchar') and Counter ID (schema new_counterid 'lookup'). I put the code in the onSave of the Widget form. I then created an entity labeled Counter (schema: new_counter) with custom fields Counter Value (schema: new_countervalue 'nvarchar') and Item Type (schema: new_itemtype 'nvarchar'). But yet no avail =(</description>
		<content:encoded><![CDATA[<p>Is there anyway you could post screen shots of the forms in customization. I have to be  missing something somehwhere. I am trying to mimic exactly what you have. I created an entity labeled Widget (schema: new_widget) with two custom fields Widget Serial Number (schema: new_widgetsn &#8216;nvarchar&#8217;) and Counter ID (schema new_counterid &#8216;lookup&#8217;). I put the code in the onSave of the Widget form. I then created an entity labeled Counter (schema: new_counter) with custom fields Counter Value (schema: new_countervalue &#8216;nvarchar&#8217;) and Item Type (schema: new_itemtype &#8216;nvarchar&#8217;). But yet no avail =(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roya</title>
		<link>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-196</link>
		<dc:creator>Roya</dc:creator>
		<pubDate>Wed, 26 Mar 2008 22:08:25 +0000</pubDate>
		<guid>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-196</guid>
		<description>Hi Jeremy,
Yes, this is what you would do.  Did you create the custom entity?  Did you make sure to replace all the field names and variables with your field names?

There is a lot of code here and it is easy to miss something. 

If you have done all this, I suggest putting some alert statements and see where your problem is.

RM, Microsoft CRM Consultant
Unitek Microsoft CRM Services</description>
		<content:encoded><![CDATA[<p>Hi Jeremy,<br />
Yes, this is what you would do.  Did you create the custom entity?  Did you make sure to replace all the field names and variables with your field names?</p>
<p>There is a lot of code here and it is easy to miss something. </p>
<p>If you have done all this, I suggest putting some alert statements and see where your problem is.</p>
<p>RM, Microsoft CRM Consultant<br />
Unitek Microsoft CRM Services</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-194</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Wed, 26 Mar 2008 19:49:58 +0000</pubDate>
		<guid>http://www.unitek.com/training/microsoft/crm/blog/2008/03/10/read-query-update-fields-in-other-microsoft-crm-entities-inside-onload-onsave-and-onchange-events-using-jscript/#comment-194</guid>
		<description>I have a field in the opportunity entity called serial number. I want to increase this by 1 every time a new opportunity is created. Is this the method I would use? Tried getting this code to work with no avail...

Thanks!</description>
		<content:encoded><![CDATA[<p>I have a field in the opportunity entity called serial number. I want to increase this by 1 every time a new opportunity is created. Is this the method I would use? Tried getting this code to work with no avail&#8230;</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
