tag:blogger.com,1999:blog-86036599809874491632024-03-14T02:14:19.024-07:00Gola's MS TechI am running this Blog to help other guys, who are looking some bits and pieces in terms of MS technology....Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.comBlogger181125tag:blogger.com,1999:blog-8603659980987449163.post-62105614928960756542020-10-20T04:32:00.004-07:002020-10-20T04:32:39.615-07:00Split the String values with a special character in MS Flow to convert this into Array<p> Many times we have a requirement to prepare the Mailing address for some of the documents, suppose there are Address Line1, Address Line2, Address Line3, City, Country and Zip code. your requirement to put this address like below.</p><p>Address Line1</p><p>Address Line2</p><p>Address Line3</p><p>City, Country</p><p>Zip Code</p><p>Now suppose Address Line2 is empty in that case it will show the 2 line space between Address Line1 and Address Line3.</p><p>To remove this space inside the flow we will use the split function, suppose your string variable having the value like- <b>AddVar = Address Line1,Address Line2,Address Line3,City, Country,Zip Code</b></p><p>Now you use an "Apply for each" for this variable and traverse the values and finally append into another string variable "<b>VarActualAddress</b>".</p><p>To Split values use the expression <b>split(Addvar,','), </b>then<b> check the Current value empty condition </b>and finally<b> append the current value into another variable "</b><b>VarActualAddress"</b></p><p>For your reference follow the below image.</p><div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-aVZFwInMEMw/X47KrzATfNI/AAAAAAAAHlk/mlVosQFNUdkNjR5ghSlSP_3nwSjingd8QCLcBGAsYHQ/s1264/split.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="691" data-original-width="1264" height="219" src="https://1.bp.blogspot.com/-aVZFwInMEMw/X47KrzATfNI/AAAAAAAAHlk/mlVosQFNUdkNjR5ghSlSP_3nwSjingd8QCLcBGAsYHQ/w465-h219/split.JPG" width="465" /></a></div><br /><p><br /></p><p><b><br /></b></p>Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-27720611341553900782020-10-19T06:37:00.005-07:002020-10-20T04:10:44.187-07:00Retrieving All Records owned by other Team Members<p> Many times there is a requirement to retrieve all the records of team members where you are a member in those teams. To get them setup the filter as given in image.</p><div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-1aOS90rB8HY/X42WfW-nEoI/AAAAAAAAHlY/RqaG_AuObBMn2Iz9D_qbldW_Ty1wuch-QCLcBGAsYHQ/s712/TeamRecords.JPG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="416" data-original-width="712" height="230" src="https://1.bp.blogspot.com/-1aOS90rB8HY/X42WfW-nEoI/AAAAAAAAHlY/RqaG_AuObBMn2Iz9D_qbldW_Ty1wuch-QCLcBGAsYHQ/w487-h230/TeamRecords.JPG" width="487" /></a></div><br /><p><br /></p>Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-52906319072313249552020-09-02T01:36:00.004-07:002020-09-02T01:36:22.525-07:00Insert New Line in to a String in Power Automate or Flow<p> Many times we have gone through with the requirement like to enter address in word document but if the address present into a multipline textbox in CRM then it will be visible as is. To solve this problem we required to insert the address in Multiline textbox in CRM using <b>New Line character</b>, but it is bit dificult to enter it through the Microsoft flow.</p><p>Below is the text and the image which need to be inserted in place of "\n".</p><p>Text is : <span style="background-color: #f8f8f8; font-family: SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px;">json('{"NL":"\n"}')?['NL']</span></p><p><span style="font-family: SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="background-color: #f8f8f8; font-size: 15px;">you can utilize it like the image given below.</span></span></p><p><span style="font-family: SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif;"></span></p><div class="separator" style="clear: both; text-align: center;"><span style="font-family: SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif;"><a href="https://1.bp.blogspot.com/-JglUxN04oL0/X09ZC0JcWEI/AAAAAAAAHiw/XVE1ZUWqfC0rQsV6Ycmeiedz_3Ut7w01gCLcBGAsYHQ/s659/newline1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="214" data-original-width="659" height="133" src="https://1.bp.blogspot.com/-JglUxN04oL0/X09ZC0JcWEI/AAAAAAAAHiw/XVE1ZUWqfC0rQsV6Ycmeiedz_3Ut7w01gCLcBGAsYHQ/w410-h133/newline1.JPG" width="410" /></a></span></div><span style="font-family: SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif;"><br /><div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-cz0dPRnmCVU/X09ZC2iLVaI/AAAAAAAAHi0/7NYdKYaf3AMuhmPVc3SklePWBwsz4TbrQCLcBGAsYHQ/s547/newline2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="296" data-original-width="547" height="238" src="https://1.bp.blogspot.com/-cz0dPRnmCVU/X09ZC2iLVaI/AAAAAAAAHi0/7NYdKYaf3AMuhmPVc3SklePWBwsz4TbrQCLcBGAsYHQ/w438-h238/newline2.JPG" width="438" /></a></div><br /><span style="background-color: #f8f8f8; font-size: 15px;"><br /></span></span><p></p>Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-13481818939103771032020-08-31T23:11:00.003-07:002020-08-31T23:12:55.019-07:00Timer or Timer Control in JavaScript with Start, Stop and Pause button<p>I gone through one of the Timer requirement in my project on case entity in D365 CRM, to achieve this we will use the below code in HTML web resource and then insert the web resource in entity form.</p><p>Below is the Image of this timer web resource.</p><div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-a7KOX-HgclU/X03lqcjtH8I/AAAAAAAAHiU/nLBp63ThYyssv3QgVi15HwglCe7B4L3zACLcBGAsYHQ/s630/timer.JPG" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="133" data-original-width="630" height="85" src="https://1.bp.blogspot.com/-a7KOX-HgclU/X03lqcjtH8I/AAAAAAAAHiU/nLBp63ThYyssv3QgVi15HwglCe7B4L3zACLcBGAsYHQ/w403-h85/timer.JPG" width="403" /></a></div>Java Script code with HTML buttons:<div><div><!DOCTYPE html></div><div><html></div><div><head></div><div><script></div><div>var t;</div><div>var runningtime;</div><div>var sstime;</div><div>var tsec=0;</div><div>function startTime() {</div><div> //document.getElementById('btnstop').disabled =false;</div><div> //ocument.getElementById('btnpause').disabled =false;</div><div> var d = new Date();</div><div> var year=d.getYear();</div><div> var month = d.getMonth();</div><div> var day = d.getDay();</div><div> var hours=d.getHours(); </div><div> var minutes=d.getMinutes(); </div><div> var seconds=d.getSeconds(); </div><div> var milliseconds=d.getMilliseconds();</div><div> var today = new Date(year, month, day, hours, minutes, seconds, milliseconds);</div><div> </div><div> if(document.getElementById('sttime').innerHTML=='')</div><div> {document.getElementById('sttime').innerHTML =today;</div><div> sstime=today;}</div><div> var h = today.getHours();</div><div> var m = today.getMinutes();</div><div> var s = today.getSeconds();</div><div> m = checkTime(m);</div><div> s = checkTime(s);</div><div> runningtime=new Date(today);</div><div> document.getElementById('txt').innerHTML =</div><div> h + ":" + m + ":" + s; </div><div> t = setTimeout(startTime, 500);</div><div>}</div><div><br /></div><div>function checkTime(i) {</div><div> if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10</div><div> return i;</div><div>}</div><div>function calulatetime()</div><div>{</div><div><span style="white-space: pre;"> </span>document.getElementById('sttime').innerHTML='';</div><div><span style="white-space: pre;"> </span>var ttime= date_diff_inminutes(runningtime,sstime);</div><div><span style="white-space: pre;"> </span>document.getElementById('totime').innerHTML =ttime;<span style="white-space: pre;"> </span></div><div><span style="white-space: pre;"> </span>tsec= date_diff_inseconds(runningtime,sstime) + tsec;</div><div><span style="white-space: pre;"> </span>document.getElementById('tosec').innerHTML =tsec;</div><div><span style="white-space: pre;"> </span>document.getElementById('btnpause').disabled =true;</div><div><span style="white-space: pre;"> </span>//document.getElementById('btnstart').disabled =false;</div><div><span style="white-space: pre;"> </span>document.getElementById('btnstop').disabled =true;</div><div><span style="white-space: pre;"> </span>var tothour=document.getElementById('tosec').innerHTML/3600;</div><div><span style="white-space: pre;"> </span>//var tothour=Math.floor(document.getElementById('tosec').innerHTML/3600);</div><div><span style="white-space: pre;"> </span>//var tothour1=Math.ceil(document.getElementById('tosec').innerHTML/3600);</div><div><span style="white-space: pre;"> </span>//alert("total hours spend " + tothour);</div><div><span style="white-space: pre;"> </span>//alert("total hours spend " + tothour1);</div><div><span style="white-space: pre;"> </span>alert("total hours spend " + tothour.toPrecision(6));</div><div>}</div><div><br /></div><div>function calulatetimeinsec()</div><div>{</div><div><span style="white-space: pre;"> </span>tsec= date_diff_inseconds(runningtime,sstime) + tsec;</div><div><span style="white-space: pre;"> </span>document.getElementById('tosec').innerHTML =tsec;</div><div><span style="white-space: pre;"> </span>document.getElementById('sttime').innerHTML='';</div><div>}</div><div><br /></div><div>var date_diff_inseconds = function diff_seconds(dt2, dt1) </div><div> {</div><div> var diff =(dt2.getTime() - dt1.getTime()); </div><div> var seconds = Math.floor((diff % (1000 * 60)) / 1000);</div><div><br /></div><div> // Display the result in the element with id="demo"</div><div> return seconds; </div><div> }</div><div> </div><div>var date_diff_inminutes = function diff_minutes(dt2, dt1) </div><div> {</div><div> var diff =(dt2.getTime() - dt1.getTime());</div><div> /*var diff =(dt2.getTime() - dt1.getTime()) / 1000;</div><div> diff /= 60;</div><div> return Math.abs(Math.round(diff)); */</div><div> </div><div> </div><div> // Time calculations for days, hours, minutes and seconds</div><div> var days = Math.floor(diff / (1000 * 60 * 60 * 24));</div><div> var hours = Math.floor((diff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));</div><div> var minutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60));</div><div> var seconds = Math.floor((diff % (1000 * 60)) / 1000);</div><div><br /></div><div> // Display the result in the element with id="demo"</div><div> return days + "d " + hours + "h " + minutes + "m " + seconds + "s ";</div><div> </div><div> }</div><div> </div><div>var date_diff_indays = function(date1, date2) {</div><div>dt1 = new Date(date1);</div><div>alert(dt1);</div><div>dt2 = new Date(date2);</div><div>alert(dt2);</div><div>return Math.floor((Date.UTC(dt2.getFullYear(), dt2.getMonth(), dt2.getDate()) - Date.UTC(dt1.getFullYear(), dt1.getMonth(), dt1.getDate()) ) /(1000 * 60 * 60 * 24));</div><div>}</div><div></script></div><div></head></div><div><br /></div><div><body></div><div><button id="btnstart" onclick="startTime()">Start</button></div><div><button id="btnstop" onclick="clearTimeout(t);calulatetime();">Stop</button></div><div><button id="btnpause" onclick="clearTimeout(t);calulatetimeinsec();">Pause</button></div><div><div id="txt"></div></div><div><div id="sttime"></div></div><div><div id="totime"></div></div><div><div id="tosec"></div></div><div><br /></div><div></body></div><div></html></div><div><br /></div><div><br /></div><div><br /></div><p><br /></p></div>Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-37897917264967499562020-08-31T07:45:00.000-07:002020-08-31T07:45:06.551-07:00Steps to Start, build and create a PCF Control from Scratch<p> <b>Following are the high level steps to start and create a PCF control using Visual Studio 2017.</b></p><p>This is devided into three parts:-</p><p>1. Install the required software/Components</p><blockquote style="border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;"><p style="color: #1a1a1a; font-family: abril-text-1; font-size: 12.0pt; margin: 0in;"></p><ul style="text-align: left;"><li><span style="background: white;">Install npm</span></li><li><span style="background: white;">Install PowerApps CLI</span></li><li><span style="background: white;">Install Visual Studio 2017 or later</span></li></ul><p></p></blockquote><p>2. Create a PCF Control</p><blockquote style="border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;"><p></p></blockquote><blockquote style="border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;"><ul style="text-align: left;"><li>Create a new folder for the project.</li><li>Open Developer Command Prompt and Navigate the pointer to the folder created above.</li><li>Run the following command</li><li>pac
pcf init --namespace <specify your namespace here> --name <Name of the
code component> --template <component type</li><li><span style="background-color: white;">Install the project dependencies using command (</span>npm
install<span style="background-color: white;">)</span> </li><li><span style="background: white;">Update </span><span style="background: white;">ControlManifest.Input.xml</span></li><li><span style="background: white;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;">Update </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;">index.ts</span></span></li><li><span style="background: white;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;">Build the project using (npm
run build)</span></span></span></li><li><span style="background: white;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;">Start the Component (npm Start)</span></span></span></li><li><span style="background: white;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;">Create a folder for holding the solution zip and
related files. Navigate to that folder and run the command. (pac
solution init --publisher-name HKPublisher --publisher-prefix hk)</span></span></span></span></li><li><span style="background: white;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;">Add reference of the custom component in the solution<b> (</b></span></span></span></span></span>pac
solution add-reference --path ../ **
Path of SolutionPackage Folder<span style="background-color: white; font-weight: bold;">)</span></li><li><span style="background: white;">To create the Solution Zip File (msbuild
/t:build /restore)</span></li></ul></blockquote><p>3. Import the Solution into your CRM Instance </p><blockquote style="border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;"><ul style="text-align: left;"><li><span style="background: white;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;">Import the solution file and use it inside Dynamics
365 CE</span></span></li></ul></blockquote><blockquote style="border: none; margin: 0px 0px 0px 40px; padding: 0px; text-align: left;"><p></p></blockquote><p><span style="background: white; font-weight: bold;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><br /></span></span></span></p><p> </p><p>
</p><p><br /></p>Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-2744293047466426802015-07-17T00:24:00.003-07:002015-07-17T00:24:53.168-07:00CRM 2013 Subgrid vs. (Expanded) Associated View Records. OR Recent and Associated Entity views<div dir="ltr" style="text-align: left;" trbidi="on">
Sometimes you experienced when you have subgrid in your CRM Form, but when you click the ‘expand’ button to expand the view then it will redirect you to Associated View, but you found the records appear in the list are different.<br />
<br />
to find the solution of that problem then click the below link or directly read the same content from my blog.<br />
<br />
<a href="https://community.dynamics.com/crm/f/117/t/141127">https://community.dynamics.com/crm/f/117/t/141127</a><br />
<br />
<a href="http://missdynamicscrm.blogspot.se/2014/10/crm-2013-subgrid-vs-expanded-associated-view-records.html">http://missdynamicscrm.blogspot.se/2014/10/crm-2013-subgrid-vs-expanded-associated-view-records.html</a><br />
<br />
I have checked this issue.<br />
<br />
So, the issue will be happening if you have one more Opportunity to Account custom N:1 Relationship.<br />
For example:<br />
The standard CRM have 2 normal N1 Relationship to Account, those are Parent Account and Potential Customer.<br />
Then, I added one more relationship with name new_account2 (Account 2) as shown here:<br />
<a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/oppassociatedview2.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/oppassociatedview2.png" /></a><br />
<br />
If you notice, in the subgrid, the Entity (Opportunity) is having setting:<br />
(see the section inside the red-square)<br />
<a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/oppassociatedview1.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/oppassociatedview1.png" /></a><br />
So, it means that only show if the Potential Customer is the respective account, correct.<br />
Then if you click to pop out the associated view, some of your Opportunities are gone and missed out to appear in the list.<br />
After I checked, it was because the missed Opportunities didn't have relationship to the new relationship (in this case is new_account2 or Account 2)<br />
So, I put more detail here.<br />
Now, in the Account, I have two Relationship to Opportunity in the Navigation explorer.<br />
<a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/oppassociatedview3.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/oppassociatedview3.png" /></a><br />
The first one is Account to Opportunity (Custom)<br />
<a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/oppassociatedview4.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/oppassociatedview4.png" /></a><br />
The second one is Account to Opportunity (System)<br />
<a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/oppassociatedview5.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/oppassociatedview5.png" /></a><br />
And if I go to each Associated View, it will give me different result.<br />
Okay, this is from the subgrid:<br />
<a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/oppassociatedview6.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/oppassociatedview6.png" /></a><br />
*You can see 2 Opportunities, correct.<br />
Then, try again to see the Associated View from the Navigation.<br />
This is from the first one (a custom relationship)<br />
<a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/oppassociatedview7.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/oppassociatedview7.png" /></a><br />
*Yes, you can only see 1 Opportunity<br />
And this is the second one (a system relationship)<br />
<a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/7802.oppassociatedview8.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/7802.oppassociatedview8.png" /></a><br />
* You can see two records of opportunity and see the arrow, the new section of filter, showing it is a different associated view<br />
And finally, from the pop out from the Recent Opportunities subgrid.<br />
<a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/oppassociatedview10.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/oppassociatedview10.png" /></a><br />
*As you can see, you can only see one (1) record, so this view, after you pop up out is referring to the custom relationship (to Account 2)<br />
To check deeper, I try to search in the database what is the different between them, and then, yes it is actually because of the disappeared opportunity does not have relationship to Account 2:<br />
<a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/oppassociatedview9.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/oppassociatedview9.png" /></a><br />
*See the null value of Account 2, the rests are same.<br />
And I guess, the missing Opportunities are the existing Opportunities just before you created a new custom relationship.<br />
Because basically, for the new records, CRM will auto populate and auto-mapping all of the lookup relationship to the same entity if newly created from subgrid or associated view., in this case is Account, but not for old records (CRM Mapping behavior concept).<br />
To ensure you and myself, I put the Account fields in to the Opportunity Form.<br />
All of the account fields<br />
<a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/oppassociatedview12.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/oppassociatedview12.png" /></a><br />
and<br />
<a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/oppassociatedview11.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/oppassociatedview11.png" /></a><br />
And you can see that one of them doesn't have value for the Account 2, and the Opportunity with the null value will not show in the Associated View.<br />
To check in your data, you see the missing Opportunities in your data, there are 2 records, which one them is:<br />
<span style="color: blue;">"Leslie Test Lead 0627-16",</span> and the other one I can't see since this is not in the first page.<br />
You can try to go to Associated View and then<span style="color: blue;"> 'Add Existing Opportunity'</span>, then add the<span style="color: blue;"> "Leslie Test Lead 0627-16",</span> now back to your Opportunity Form.<br />
<a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/oppassociatedview13.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/oppassociatedview13.png" /></a><br />
Then,<br />
<a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/oppassociatedview14.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/oppassociatedview14.png" /></a><br />
After that you open the form..<br />
<a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/oppassociatedview15.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/oppassociatedview15.png" /></a><br />
<span style="color: #993300;">Now, you can see that the custom field to custom Account, in my term is Account 2, now is filled up!.</span><br />
<span style="color: #993300;"><span style="color: #33cccc;">I guess this is the answer.</span></span><br />
SO, back to your question.<br />
<strong>How the views are populated?</strong><br />
<span style="color: #333333;">The answer is:</span><br />
<span style="color: #003300;">- For the Recent Opportunities shown in the subgrid, it shows all of the related Opportunity record from the Potential Customer.</span><br />
<span style="color: #003300;">- For the Associated View pop out from the subgrid, it shows all of the related Opportunity record from the new custom relationship.</span><br />
<span style="color: #003300;">And in fact, it picks the first relationship defined in the navigation in order or in sequence (see the solution in the below section for detail)</span><br />
How to solve, there are two solutions basically.<br />
1. You fix the data, fill the value of your new custom relationship (you can use Account 2 field in the Opportunity Form) or can use by adding the Existing Opportunity through the Opportunity Associated View in the Account form, as for this example: <span style="color: blue;">"Leslie Test Lead 0627-16"<span style="color: black;">.</span></span><br />
<span style="color: blue;"><span style="color: black;">Or you can use Workflow or programming to auto-fill the Account 2 aligning with the Potential Customer value.</span></span><br />
<span style="color: blue;"><span style="color: black;">2. You can use either: Remove the Navigation of the Custom relationship</span></span><br />
<span style="color: blue;"><span style="color: black;">OR, just Re-Order the position of those relationship in the navigation area:</span></span><br />
<span style="color: blue;"><span style="color: black;"><a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/oppassociatedview16.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/oppassociatedview16.png" /></a></span></span><br />
So, now this is the result after you re-order, the subgrid after you click the pop up will no longer calling the wrong associated view, instead, it will call the associated view by Potential Customer (since you put it first)<br />
<a href="https://community.dynamics.com/cfs-file.ashx/__key/communityserver-discussions-components-files/117/oppassociatedview17.png"><img alt=" " border="0" src="https://community.dynamics.com/resized-image.ashx/__size/550x0/__key/communityserver-discussions-components-files/117/oppassociatedview17.png" /></a><br />
Now, your customer will see the same for subgrid or associated view after clicking the 'grid' ribbon to show the detailed associated view. And they will not frustrate again.<br />
</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com29tag:blogger.com,1999:blog-8603659980987449163.post-85606199412635222862015-07-17T00:17:00.002-07:002015-07-17T00:17:56.475-07:00Filtered lookup for Dynamics CRM 2013 <div dir="ltr" style="text-align: left;" trbidi="on">
Filtered lookup is a feature which was introduced in Dynamics CRM 2011, a greatly appreciated improvement from CRM 4. Prior to this, developers had to use third party tools to achieve the same result.<br />
So, let’s start at the very beginning<br />
<h4>
What is filtered lookup?</h4>
When you have a large data set, and you want to filter the data in a progressive manner, then you need filtered lookup. You select one criteria/field and the data is filtered as per that. Now, if you choose the next field, then this filter is further applied to the already filtered data so as to give your further specific results.<br />
For example: You have a list of prospective sales leads, and you want to filter out prior to a campaign based on those who are doctors and those who are in the state of Massachusetts. For this data selection, you would require a filtered lookup, so that the state/ profession is first selected and then following which on choosing the second criteria, the filter should be applied to the already once filtered data.<br />
<br />
Now, let us write the code to achieve this.<br />
This piece of code is very small as compared to what we used to write to achieve the same result in CRM 2011.<br />
<br />
<div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important;">
<div class="crayon-line" id="crayon-55a89185a6da5572211840-1">
<span class="crayon-t">function</span><span class="crayon-h"> </span><span class="crayon-e">preFilterLookup</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span><span class="crayon-h"> </span><span class="crayon-sy">{</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-55a89185a6da5572211840-2">
<span class="crayon-h"> </span><span class="crayon-v">debugger</span><span class="crayon-sy">;</span></div>
<div class="crayon-line" id="crayon-55a89185a6da5572211840-3">
<span class="crayon-h"> </span><span class="crayon-v">Xrm</span><span class="crayon-sy">.</span><span class="crayon-v">Page</span><span class="crayon-sy">.</span><span class="crayon-e">getControl</span><span class="crayon-sy">(</span><span class="crayon-s">"new_linkedaccount"</span><span class="crayon-sy">)</span><span class="crayon-sy">.</span><span class="crayon-e">addPreSearch</span><span class="crayon-sy">(</span><span class="crayon-t">function</span><span class="crayon-h"> </span><span class="crayon-sy">(</span><span class="crayon-sy">)</span><span class="crayon-h"> </span><span class="crayon-sy">{</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-55a89185a6da5572211840-4">
<span class="crayon-h"> </span><span class="crayon-e">addLookupFilter</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span></div>
<div class="crayon-line" id="crayon-55a89185a6da5572211840-5">
</div>
<div class="crayon-line crayon-striped-line" id="crayon-55a89185a6da5572211840-6">
<span class="crayon-h"> </span><span class="crayon-sy">}</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span></div>
<div class="crayon-line" id="crayon-55a89185a6da5572211840-7">
<span class="crayon-sy">}</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-55a89185a6da5572211840-8">
<span class="crayon-t">function</span><span class="crayon-h"> </span><span class="crayon-e">addLookupFilter</span><span class="crayon-sy">(</span><span class="crayon-sy">)</span><span class="crayon-h"> </span><span class="crayon-sy">{</span></div>
<div class="crayon-line" id="crayon-55a89185a6da5572211840-9">
<span class="crayon-h"> </span><span class="crayon-t">var</span><span class="crayon-h"> </span><span class="crayon-v">fetchXml</span><span class="crayon-h"> </span><span class="crayon-o">=</span><span class="crayon-h"> </span><span class="crayon-s">'<filter type="and"><condition attribute="industrycode" operator="eq" value="8"></condition></filter>'</span><span class="crayon-sy">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-55a89185a6da5572211840-10">
<span class="crayon-h"> </span><span class="crayon-v">Xrm</span><span class="crayon-sy">.</span><span class="crayon-v">Page</span><span class="crayon-sy">.</span><span class="crayon-e">getControl</span><span class="crayon-sy">(</span><span class="crayon-s">"new_linkedaccount"</span><span class="crayon-sy">)</span><span class="crayon-sy">.</span><span class="crayon-e">addCustomFilter</span><span class="crayon-sy">(</span><span class="crayon-v">fetchXml</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span></div>
<div class="crayon-line" id="crayon-55a89185a6da5572211840-11">
<span class="crayon-sy">}</span></div>
<div class="crayon-line">
<span class="crayon-sy"></span> </div>
<div class="crayon-line">
<span class="crayon-sy"><strong><span style="color: #242424; font-size: small;">NOTE:</span></strong><br />
<span style="font-size: small;">1. addLookupFilter function can only be called from addPreSearch function that binds the function to the Lookup Control. Although, you can provide any filter condition in the fetchxml form (which you can get using advanced find) to see the filtered records.</span><br />
<span style="font-size: small;">2. Two parameters ‘filter’ and ‘entityLogicalName’ are what the addCustomFilter method will accept. If the entityLogicalName is provided (not mandatory), the filter will only be applied to that entity type, else it will be applied to all types of entities returned.</span><br />
<span style="font-size: small;"></span><br />
<span style="font-size: small;"><strong><a href="http://missdynamicscrm.blogspot.se/2014/08/crm-2013-using-addcustomfilter-to-get-filtered-lookup-field-based-on-linked-entity.html" target="_blank">For CRM 2013 Using addCustomFilter() to get Filtered Lookup Field based on Linked Entity</a></strong></span></span></div>
</div>
</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com2tag:blogger.com,1999:blog-8603659980987449163.post-36219962746969056562014-10-09T01:56:00.002-07:002014-10-09T01:56:24.910-07:00ERD Generator for Dynamics CRM 2011/2013<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: white; border: 0px; color: #4a4a49; font-family: Verdana, sans-serif; font-size: 13px; line-height: 22px; margin-bottom: 22px; outline: 0px; padding: 0px; vertical-align: baseline;">
ERD Generator for Dynamics CRM 2011/2013 is a Windows Form application that is can be used for Dynamics CRM 2011 or Dynamics CRM 2013.</div>
<div style="background-color: white; border: 0px; color: #4a4a49; font-family: Verdana, sans-serif; font-size: 13px; line-height: 22px; margin-bottom: 22px; outline: 0px; padding: 0px; vertical-align: baseline;">
URL: <a href="https://erdgeneratorfordynamicscrm.codeplex.com/" sl-processed="1" style="border: 0px; color: #497ca7; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;" title="https://erdgeneratorfordynamicscrm.codeplex.com/">https://erdgeneratorfordynamicscrm.codeplex.com/</a></div>
<div style="background-color: white; border: 0px; color: #4a4a49; font-family: Verdana, sans-serif; font-size: 13px; line-height: 22px; margin-bottom: 22px; outline: 0px; padding: 0px; vertical-align: baseline;">
This tool allows you to build ERD (Entity relationship diagrams) that are dynamically updated based on the published CRM entities and Fields. You can pick a source entity and build ERD around it. It generate a VISIO output but also lets you pick CSV to document Entity relationships.</div>
<div style="background-color: white; border: 0px; color: #4a4a49; font-family: Verdana, sans-serif; font-size: 13px; line-height: 22px; margin-bottom: 22px; outline: 0px; padding: 0px; vertical-align: baseline;">
<br /></div>
</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-7432881265767253452014-07-24T01:41:00.001-07:002014-07-24T01:41:08.431-07:00Use of Shared Variables in Dynamics CRM 2011 Plugins<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 17.25pt; text-align: justify;">
Introduction of Shared Variables in MS CRM2011 Plug-in might not been used by most of us, as we are not aware of its unique feature. This <i>Shared Variables</i> will be useful for sharing the data during complex plug-in development by sharing the data between plug-ins registered on both the pre and post events.<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 17.25pt; text-align: justify;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 17.25pt; text-align: justify;">
Any values can be stored in the plugin context of Pre-event will be available in the Post-event of the plugin. This way we can avoid storing the values in a custom attribute. Certain data validation which needs to be done at post-event can be achieved by passing the value from pre-event of the plugin. This also helps for performing business logics like updating related records asynchronously.<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 17.25pt; text-align: justify;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 17.25pt; text-align: justify;">
The below code snippet illustrates the usage of Shared Variable. This sample explains the data validation done at post-event operation based on the value received from the pre-event operation where a flag is updated with a value at the pre-event level and sent to the post-event through shared variable.<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 17.25pt; text-align: justify;">
<b><u><br /></u></b></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 17.25pt; text-align: justify;">
<b><u>Pre-Create (Entity Name) Plug-in<o:p></o:p></u></b></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">if</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> (pluginContext.MessageName == </span><span style="color: #a31515; font-family: 'Times New Roman', serif; font-size: 9pt;">"Create"</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">)<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">if</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> (pluginContext.InputParameters.ContainsKey(</span><span style="color: #a31515; font-family: 'Times New Roman', serif; font-size: 9pt;">"Target"</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">) && pluginContext.InputParameters[</span><span style="color: #a31515; font-family: 'Times New Roman', serif; font-size: 9pt;">"Target"</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">] </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">is</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: #2b91af; font-family: 'Times New Roman', serif; font-size: 9pt;">Entity</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">)<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: #2b91af; font-family: 'Times New Roman', serif; font-size: 9pt;">Entity</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> targetEntity = context.InputParameters[</span><span style="color: #a31515; font-family: 'Times New Roman', serif; font-size: 9pt;">"Target"</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">] </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">as</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: #2b91af; font-family: 'Times New Roman', serif; font-size: 9pt;">Entity</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">if</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> (targetEntity != </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">null</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">)<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">bool</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> setFlag = </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">false</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: green; font-family: 'Times New Roman', serif; font-size: 9pt;">//Check data validation for attributes </span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">string</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> country = targetEntity.Attributes[</span><span style="color: #a31515; font-family: 'Times New Roman', serif; font-size: 9pt;">"address1_country"</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">];<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: #2b91af; font-family: 'Times New Roman', serif; font-size: 9pt;">OptionSetValue</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> industryCode = (</span><span style="color: #2b91af; font-family: 'Times New Roman', serif; font-size: 9pt;">OptionSetValue</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">)target.Attributes[</span><span style="color: #a31515; font-family: 'Times New Roman', serif; font-size: 9pt;">"industrycode"</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">];<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: green; font-family: 'Times New Roman', serif; font-size: 9pt;">// Country is US and Industry Type is Accounting are Preferred </span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">if</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> (country.ToLower() == </span><span style="color: #a31515; font-family: 'Times New Roman', serif; font-size: 9pt;">"us"</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> && industryCode.Value == 1)<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> setFlag = </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">true</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> } <o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> pluginContext.SharedVariables.Add(</span><span style="color: #a31515; font-family: 'Times New Roman', serif; font-size: 9pt;">"flag"</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">, setFlag);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt; line-height: 13.800000190734863px;"> }</span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 17.25pt; text-align: justify;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 17.25pt; text-align: justify;">
<b><u>Post-Create (Entity Name) Plug-in<o:p></o:p></u></b></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">if</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> (pluginContext.MessageName == </span><span style="color: #a31515; font-family: 'Times New Roman', serif; font-size: 9pt;">"Create"</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">)<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">if</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> (pluginContext.InputParameters.ContainsKey(</span><span style="color: #a31515; font-family: 'Times New Roman', serif; font-size: 9pt;">"Target"</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">) && pluginContext.InputParameters[</span><span style="color: #a31515; font-family: 'Times New Roman', serif; font-size: 9pt;">"Target"</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">] </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">is</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: #2b91af; font-family: 'Times New Roman', serif; font-size: 9pt;">Entity</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">)<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: #2b91af; font-family: 'Times New Roman', serif; font-size: 9pt;">Entity</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> targetEntity = pluginContext.InputParameters[</span><span style="color: #a31515; font-family: 'Times New Roman', serif; font-size: 9pt;">"Target"</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">] </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">as</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: #2b91af; font-family: 'Times New Roman', serif; font-size: 9pt;">Entity</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">if</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> (targetEntity != </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">null</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">)<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">if</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> (pluginContext.SharedVariables.ContainsKey(</span><span style="color: #a31515; font-family: 'Times New Roman', serif; font-size: 9pt;">"flag"</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">))<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">bool</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> recievedFlag = (</span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">bool</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">) pluginContext.SharedVariables[</span><span style="color: #a31515; font-family: 'Times New Roman', serif; font-size: 9pt;">"flag"</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;">];<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> </span><span style="color: blue; font-family: 'Times New Roman', serif; font-size: 9pt;">if</span><span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> (recievedFlag)<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
</div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-family: 'Times New Roman', serif; font-size: 9pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin-bottom: 0.0001pt;">
<span style="font-size: 9.5pt;"><br /></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 17.25pt; text-align: justify;">
This method lets you to pass data between plug-ins without having to customize the system by creating hidden fields on entities.<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 17.25pt; text-align: justify;">
<br /></div>
<b style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px;"><span style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 16.866666793823242px;">Note:</span></b><span style="background-color: white; color: #222222; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 16.866666793823242px;"> <i>SharedVariables (collection of key/value pairs) property is available in the </i></span><em style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px;"><span style="font-family: Calibri, sans-serif; font-size: 11pt; font-style: normal; line-height: 16.866666793823242px;">IPluginExecutionContext </span></em><i style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px;"><span style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 16.866666793823242px;">of the execution pipeline.</span></i><br />
<i style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px;"><span style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 16.866666793823242px;"><br /></span></i>
<i style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px;"><span style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 16.866666793823242px;">For more help <a href="http://congruentdynamics.blogspot.in/search/label/Microsoft%20Dynamics%20CRM" target="_blank">Click</a></span></i></div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-56489066175529610252014-07-24T00:31:00.001-07:002014-07-24T00:31:07.154-07:00Retrieve Linked Entity Column Data using Query Expression using MS CRM 2011 and MS CRM 2013 SDK<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px; margin: 0in 0in 10pt;">
<span style="font-family: Calibri;"><span style="color: black;">Most often you need to retrieve data from primary and related entity. This data can be retrieved using CRM SDK either with FetchXML or Query Expression. In this blog, QueryExpression is used to </span><span style="color: black;">retrieve primary and related entity data with a single database retrieve. Use <o:p></o:p></span></span><b style="font-family: Consolas;"><span style="color: red;">AliasedValue to retrieve Column values from Linked Entity.</span></b></div>
<span style="background-color: white; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px;"><span style="font-family: Calibri;">Below is the syntax of how related entity columns are retrieved.</span></span><br style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px;" /><span style="background-color: white; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px;"><span style="font-family: Calibri;"><o:p></o:p></span></span><br style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px;" /><b style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px;"><u><span style="font-size: 12pt; line-height: 18.399999618530273px;"><span style="font-family: Calibri;">Query Syntax:-</span></span></u></b><br style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px;" /><b style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px;"><u><span style="font-size: 12pt; line-height: 18.399999618530273px;"><span style="font-family: Calibri;"></span></span></u></b><br />
<table cellpadding="0" cellspacing="0" style="background-color: white; color: #222222; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18.479999542236328px;"><tbody>
<tr><td style="background-color: transparent; border: rgb(0, 0, 0);"><b><u><span style="font-family: Calibri;">Parent Entity:-<o:p></o:p></span></u></b><br /><div class="shape" style="padding: 4.35pt 7.95pt;" v:shape="_x0000_s1026">
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<span style="font-family: Calibri;">var query = new QueryExpression(Entityname);<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<span style="font-family: Calibri;">var columnNames = new[] { Columns to be Added };<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<span style="font-family: Calibri;">query.ColumnSet = new ColumnSet(columnNames);</span></div>
<table cellpadding="0" cellspacing="0"><tbody>
<tr><td style="background-color: transparent; border: rgb(0, 0, 0);"><b><u><span style="font-family: Calibri;"></span></u></b><br /><b><u><span style="font-family: Calibri;">Linked Entity:-<o:p></o:p></span></u></b><br /><div class="shape" style="padding: 4.35pt 7.95pt;" v:shape="_x0000_s1026">
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<span style="font-family: Calibri;"><span style="background-color: yellow;">var colsAccount = new[] { LinkEntity Columns to be Added }; <span style="color: green; font-family: Consolas; font-size: 9.5pt;">// Related Entity Fields</span></span></span></div>
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<span style="font-family: Calibri;">LinkEntity linkentity = new LinkEntity() {<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<span style="font-family: Calibri;">LinkFromEntityName = EntityName,<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<span style="font-family: Calibri;">LinkFromAttributeName = EntityFieldName,<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<span style="font-family: Calibri;">LinkToEntityName = LinkEntityName,<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<span style="font-family: Calibri;">LinkToAttributeName = LinkEntityFieldName,<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<span style="font-family: Calibri;">JoinOperator = JoinOperator.Inner, <o:p></o:p></span></div>
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<span style="font-family: Calibri;">Columns = new ColumnSet(colsAccount),<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<span style="font-family: Calibri;">EntityAlias = AliasName<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<span style="font-family: Calibri;"> };<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<span style="font-family: Calibri;">query.LinkEntities.Add(linkentity);</span></div>
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
</div>
<span style="font-family: Calibri;"><span style="font-family: 'Times New Roman';"></span><span style="font-family: 'Times New Roman';"></span><table cellpadding="0" cellspacing="0"><tbody>
<tr><td style="background-color: transparent; border: rgb(0, 0, 0);"><div class="shape" style="padding: 4.35pt 7.95pt;" v:shape="_x0000_s1026">
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<br /></div>
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
This sample shows how to retrieve related entities data using the <a href="http://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.iorganizationservice.retrievemultiple.aspx" style="color: #7c93a1; text-decoration: none;" target="_blank"><span style="color: blue;">RetrieveMultiple</span></a> method using <a href="http://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.query.queryexpression.aspx" style="color: #7c93a1; text-decoration: none;" target="_blank"><span style="color: blue;">QueryExpression</span></a>. The code returns columns from the primary entity Account as well as the <b><i>firstname</i></b> and <b><i>lastname</i></b> from associated Contact record.</div>
<span style="font-family: 'Times New Roman';"></span><span style="font-family: 'Times New Roman';"></span><table cellpadding="0" cellspacing="0"><tbody>
<tr><td style="background-color: transparent; border: rgb(0, 0, 0);"><div class="shape" style="padding: 4.35pt 7.95pt;" v:shape="_x0000_s1026">
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<b><u>Parent Entity:-<o:p></o:p></u></b></div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;"> var</span><span style="font-family: Consolas; font-size: 9.5pt;"> query = <span style="color: blue;">new</span> <span style="color: #2b91af;">QueryExpression</span>(<span style="color: #a31515;">"account"</span>);<o:p></o:p></span></div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> <span style="color: blue;">var</span> columnNames = <span style="color: blue;">new</span>[] { <span style="color: #a31515;">"fullname"</span>, <span style="color: #a31515;">"accountid"</span> };<o:p></o:p></span></div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> query.ColumnSet = <span style="color: blue;">new</span> <span style="color: #2b91af;">ColumnSet</span>(columnNames);<o:p></o:p></span></div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> query.Criteria.AddCondition(<span style="color: #a31515;">"accountid"</span>, <span style="color: #2b91af;">ConditionOperator</span>.Equal, <span style="color: blue;">new</span> <span style="color: #2b91af;">Guid</span>(<span style="color: #a31515;"><<</span><span style="background: yellow;">ENTER GUID HERE</span><span style="color: #a31515;">>></span>));</span><span style="font-family: Consolas; font-size: 9.5pt;"></span></div>
<span style="font-family: 'Times New Roman';"></span><span style="font-family: 'Times New Roman';"></span><table cellpadding="0" cellspacing="0"><tbody>
<tr><td style="background-color: transparent; border: rgb(0, 0, 0);"><div class="shape" style="padding: 4.35pt 7.95pt;" v:shape="_x0000_s1026">
<div class="MsoNoSpacing" style="margin: 0in 0in 0pt;">
<b><u>Linked Entity:-<o:p></o:p></u></b></div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="font-family: Consolas; font-size: 9.5pt;"> colsAccount = <span style="color: blue;">new</span>[] { <span style="color: #a31515;">"firstname"</span>, <span style="color: #a31515;">"lastname"</span> };<o:p></o:p></span></div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> <span style="color: #2b91af;">LinkEntity</span> linkEntityAccount = <span style="color: blue;">new</span> <span style="color: #2b91af;">LinkEntity</span>()<o:p></o:p></span></div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> LinkFromEntityName = <span style="color: #a31515;">"account"</span>,<o:p></o:p></span></div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> LinkFromAttributeName = <span style="color: #a31515;">"primarycontact"</span>,<o:p></o:p></span></div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> LinkToEntityName = <span style="color: #a31515;">"contact"</span>,<o:p></o:p></span></div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> LinkToAttributeName = <span style="color: #a31515;">"contactid"</span>,<o:p></o:p></span></div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> JoinOperator = <span style="color: #2b91af;">JoinOperator</span>.Inner,<o:p></o:p></span></div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> Columns = <span style="color: blue;">new</span> <span style="color: #2b91af;">ColumnSet</span>(colsAccount),<o:p></o:p></span></div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> EntityAlias = <span style="color: #a31515;">"Contacts"</span><o:p></o:p></span></div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> };<o:p></o:p></span></div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<span style="font-family: 'Times New Roman';"></span><br /><div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> query.LinkEntities.Add(linkEntityAccount);</span><span style="font-family: Consolas; font-size: 9.5pt;"><o:p> </o:p></span><span style="font-family: 'Times New Roman';"> </span></div>
<span style="font-family: 'Times New Roman';"></span></div>
<span style="font-family: 'Times New Roman';"></span></td></tr>
</tbody></table>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<span style="font-size: x-small;"><span style="font-family: 'Times New Roman';"><table cellpadding="0" cellspacing="0"><tbody>
<tr><td style="background-color: transparent; border: rgb(0, 0, 0);"><span style="color: green; font-family: Consolas; font-size: 9.5pt;">// Execute Query using RetrieveMultiple</span><br /><span style="color: green; font-family: Consolas; font-size: 9.5pt;"></span><span style="color: green; font-family: Consolas; font-size: 9.5pt;">//The RetrieveMultipleRequest is for returning multiple instances of a particular type of entity.<o:p></o:p></span><br /><div class="shape" style="padding: 4.35pt 7.95pt;" v:shape="_x0000_s1026">
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="color: #2b91af; font-family: Consolas; font-size: 9.5pt;">EntityCollection</span><span style="font-family: Consolas; font-size: 9.5pt;"> _results = _serviceproxy.RetrieveMultiple(query);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> <span style="color: blue;">if</span> (_results != <span style="color: blue;">null</span>)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> <span style="color: blue;">foreach</span> (<span style="color: blue;">var</span> ent <span style="color: blue;">in</span> _results.Entities)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> <span style="color: green;">// Display “First Name” along with Alias</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> <span style="color: #2b91af;">Console</span>.WriteLine((ent.Attributes[<span style="color: #a31515;">"Contacts.firstname"</span>] <span style="color: blue;">as</span> <b><span style="color: red;">AliasedValue</span></b>).Value);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> <span style="color: green;">// Display “Last Name” along with Alias</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
</div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> <span style="color: #2b91af;">Console</span>.WriteLine((ent.Attributes[<span style="color: #a31515;">"Contacts.lastname"</span>] <span style="color: blue;">as</span> <span style="color: #2b91af;">AliasedValue</span>).Value);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt 1.5in; text-indent: 0.5in;">
<span style="font-family: Consolas; font-size: 9.5pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"> }</span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;"><br /></span></div>
<div class="MsoNormal" style="margin: 0in 0in 0pt;">
<span style="font-family: Consolas; font-size: 9.5pt;">For more info please <a href="http://congruentdynamics.blogspot.in/2013/05/retrieve-linked-entity-data-using-query.html" target="_blank">click</a></span></div>
</div>
</td></tr>
</tbody></table>
</span></span></div>
</td></tr>
</tbody></table>
</div>
</td></tr>
</tbody></table>
</span></div>
</td></tr>
</tbody></table>
</div>
</td></tr>
</tbody></table>
</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-40154676331974147502014-05-23T03:42:00.000-07:002014-05-23T03:42:01.191-07:00Cancel save event in MS CRM 2013<div dir="ltr" style="text-align: left;" trbidi="on">
Use the below line of code to cancel the save event in CRM<br />
<br />
Xrm.Page.context.getEventArgs().preventDefault();<br />
<br />
or<br />
<br />
e.getEventArgs().preventDefault();<br />
<br />
e stand for to pass execution context in Java Script method.</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-23199309520924650062014-05-22T00:07:00.000-07:002014-05-22T00:07:00.915-07:00Attach OnClick event in Sub grid Records MS CRM 2013 Using JavaScript<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
Sometimes we have requirements to attach click event to sub-grid. So we could read selected record data and do the stuffs.<o:p></o:p></div>
<br style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;" />
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
Here is sample code to attach click event to sub grid :<o:p></o:p></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
<br /></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">function</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> ReadSelectedSubGridRecords() {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">if</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> (document.getElementById(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"SubGridName"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">)) {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> grid = document.getElementById(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"SubGridName"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">).control;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">for</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> (</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> rowNo = 0; rowNo < grid.get_selectedRecords().length; rowNo++)<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> alert(grid.get_selectedRecords()[rowNo].Name);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">function</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> Form_OnLoad() {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">if</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> (document.getElementById(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"SubGridName"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">)) {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> grid = document.getElementById(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"SubGridName"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Consolas; font-size: 9.5pt;">// Google chrome</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">if</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> (grid.addEventListener) {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> grid.addEventListener(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">'click'</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">, ReadSelectedSubGridRecords, </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">false</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Consolas; font-size: 9.5pt;">// IE</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> } </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">else</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">if</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> (grid.attachEvent) {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> grid.attachEvent(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">'onclick'</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">, ReadSelectedSubGridRecords);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">else</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> setTimeout(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"Form_OnLoad();"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">, 2000);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">}<o:p></o:p></span></div>
<div>
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"><br /></span></div>
<div>
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">For more information please follow this <a href="http://vikramxrm.blogspot.in/2013/11/attach-onclick-event-in-sub-grid.html" target="_blank">BLOG</a></span></div>
</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-85889859836606861112014-05-22T00:01:00.002-07:002014-05-22T00:09:05.355-07:00Read SubGrid Records in MS CRM 2013 using JavaScript<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
Many times we have requirements to read sub grid records and do subtotal or some others stuff with grid data. Here is same code to retrieve entire rows and columns from SubGrid.<o:p></o:p></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
<br /></div>
<div class="MsoNormal" style="background-color: #fefdfa; margin-bottom: 0.0001pt;">
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">function</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> RetrieveSubGridRecords() {<o:p></o:p></span></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">if</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> (document.getElementById(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"SubGridName"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">)) {<o:p></o:p></span></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> grid = document.getElementById(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"SubGridName"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">).control;<o:p></o:p></span></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">for</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> (</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> rowNo = 0; rowNo < grid.GetRecordsFromInnerGrid().length; rowNo++)<o:p></o:p></span></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">for</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> (</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> cellNo = 0; cellNo < grid.GetRecordsFromInnerGrid()[rowNo][3].cells.length; cellNo++)<o:p></o:p></span></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> alert(grid.GetRecordsFromInnerGrid()[rowNo][3].cells[cellNo].outerText);<o:p></o:p></span></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">else</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> setTimeout(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"RetrieveSubGridRecords();"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">, 2500);<o:p></o:p></span></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
<br /></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt; line-height: 14.566666603088379px;">}</span></div>
<div class="MsoNormal">
<div style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt; line-height: 14.566666603088379px;"><br /></span></div>
<div style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt; line-height: 14.566666603088379px;"><br /></span></div>
<span style="background-color: white; color: #333333; font-family: Consolas; font-size: x-small; line-height: 14.566666603088379px;">Read selected SubGrid Records in MS CRM 2013 using JavaScript.</span><br />
<div style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt; line-height: 14.566666603088379px;"><br /></span></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">function</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> ReadSelectedSubGridRecords() {<o:p></o:p></span></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">if</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> (document.getElementById(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 10pt;">SubGridName</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">)) {<o:p></o:p></span></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> grid = document.getElementById(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 10pt;">SubGridName</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">).control;<o:p></o:p></span></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">for</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> (</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> row = 0; row < grid.get_selectedRecords().length; row++)<o:p></o:p></span></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> alert(grid.get_selectedRecords()[row].Name);<o:p></o:p></span></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">}</span></div>
<div style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt; line-height: 14.566666603088379px;"><br /></span></div>
</div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt; line-height: 14.566666603088379px;"><br /></span>
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt; line-height: 14.566666603088379px;">Read sub-Grid cell value in MS CRM 2013 using Javascript.</span><br />
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt; line-height: 14.566666603088379px;"><br /></span>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">function</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> GetSubGridCellValues() {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">if</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> (document.getElementById(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"SubGridName"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">)) {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> grid = document.getElementById(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"SubGridName"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">).control;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> ids = gridControl.get_allRecordIds();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">for</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> (i = 0; i < ids.length; i++) {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> alert(gridControl.getCellValue(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">'fullname'</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">, ids[i]));<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">else</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> setTimeout(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"GetSubGridCellValues();"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">, 2500);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<br />
<div class="MsoNormal" style="line-height: 13.5pt; margin-bottom: 0cm;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">}</span></div>
<div class="MsoNormal" style="line-height: 13.5pt; margin-bottom: 0cm;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"><br /></span></div>
</div>
<div class="MsoNormal" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt; line-height: 14.566666603088379px;">for more info please follow this <a href="http://vikramxrm.blogspot.in/2013/11/read-subgrid-records-ms-crm-2013-using.html" target="_blank">BLOG</a></span></div>
</div>
</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-68229088901821572202014-05-21T23:59:00.003-07:002014-05-22T21:28:13.110-07:00Find account attributes based on account Id using SOAP request MS CRM 2011 and MS CRM 2013<div dir="ltr" style="text-align: left;" trbidi="on">
I need to retrieve all the attribute from account entity based on accountID.<br />
<br />
sample code given below:<br />
<br />
<span style="background-color: white; color: blue; font-family: Consolas; font-size: 9.5pt; line-height: 18.200000762939453px;">function</span><span style="background-color: white; color: #333333; font-family: Consolas; font-size: 9.5pt; line-height: 18.200000762939453px;"> ExecuteRequest(_XML, Message) {</span><br />
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">try</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> _ResultXML = </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">null</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> xmlhttp = </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">new</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> XMLHttpRequest();<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">xmlhttp.open(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"POST"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">, Xrm.Page.context.getServerUrl() +</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"/XRMServices/2011/Organization.svc/web"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">, </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">false</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">xmlhttp.setRequestHeader(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"Accept"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">, </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"application/xml, text/xml, */*"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">xmlhttp.setRequestHeader(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"Content-Type"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">, </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"text/xml; charset=utf-8"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">xmlhttp.setRequestHeader(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"SOAPAction"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">,</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> + Message);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">xmlhttp.send(_XML);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">_ResultXML = xmlhttp.responseXML;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> errorCount = _ResultXML.selectNodes(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">'//error'</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">).length;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">if</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> (errorCount != 0) {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> msg = resultXml.selectSingleNode(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">'//description'</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">).nodeTypedValue;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">alert(msg);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">_ResultXML = </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">null</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">return</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> _ResultXML;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">else</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">return</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> _ResultXML;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">catch</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> (Err) {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">alert(Err);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">return</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">function</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> GetAccountName(accountID) {<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="line-height: 18.200000762939453px;">var request = "<s:Envelope xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'>" +</span></span><br />
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="line-height: 18.200000762939453px;">"<s:Body>" +</span></span><br />
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="line-height: 18.200000762939453px;">"<Retrieve xmlns='http://schemas.microsoft.com/xrm/2011/Contracts/Services' xmlns:i='http://www.w3.org/2001/XMLSchema-instance'>" +</span></span><br />
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="line-height: 18.200000762939453px;">"<entityName>account</entityName>" +</span></span><br />
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="line-height: 18.200000762939453px;">"<id>"+ accountID +"</id>" +</span></span><br />
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="line-height: 18.200000762939453px;">"<columnSet xmlns:a='http://schemas.microsoft.com/xrm/2011/Contracts'>" +</span></span><br />
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="line-height: 18.200000762939453px;">"<a:AllColumns>false</a:AllColumns>" +</span></span><br />
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="line-height: 18.200000762939453px;">"<a:Columns xmlns:b='http://schemas.microsoft.com/2003/10/Serialization/Arrays'>" +</span></span><br />
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="line-height: 18.200000762939453px;">"<b:string>name</b:string>" +</span></span><br />
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="line-height: 18.200000762939453px;">"<b:string>accountnumber</b:string>" +</span></span><br />
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="line-height: 18.200000762939453px;">"</a:Columns>" +</span></span><br />
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="line-height: 18.200000762939453px;">"</columnSet>" +</span></span><br />
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="line-height: 18.200000762939453px;">"</Retrieve>" +</span></span><br />
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="line-height: 18.200000762939453px;">"</s:Body>" +</span></span><br />
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="line-height: 18.200000762939453px;">"</s:Envelope>";</span></span><br />
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="line-height: 18.200000762939453px;">var _ResultXML = ExecuteRequest(request, "Retrieve");</span></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> _AccountName = _ResultXML.selectSingleNode(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"//a:Attributes"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">).selectSingleNode(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"//b:value"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">).text;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">return</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> _AccountName;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt; line-height: 14.566666603088379px;">}</span></div>
</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-69059451245669240712014-05-21T23:49:00.001-07:002014-05-21T23:49:31.559-07:00Read all Notes having attachment related to case entity in MS CRM 2011 and MS CRM 2013<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
<span style="font-family: Consolas; font-size: 9.5pt; line-height: 14.566666603088379px;">Here is the sample code.<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
<span style="font-family: Consolas; font-size: 9.5pt; line-height: 14.566666603088379px;"><br /></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">public</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">static</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">EntityCollection</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> GetAllNotes(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">Guid</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> CaseId, </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">IOrganizationService</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> service)<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">EntityCollection</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> results = </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">null</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">try</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">QueryExpression</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> Query = </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">new</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">QueryExpression</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">EntityName = </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"annotation"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">ColumnSet = </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">new</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">ColumnSet</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"filename"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">, </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"documentbody"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">, </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"filesize"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">, </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"mimetype"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">,</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"isdocument"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">),<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">Criteria = </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">new</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">FilterExpression</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">FilterOperator = </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">LogicalOperator</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">.And,<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">Conditions =<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">new</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">ConditionExpression</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">AttributeName = </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"objectid"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">Operator = </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">ConditionOperator</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">.Equal,<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">Values = { CaseId }<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">},<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">new</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">ConditionExpression</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">AttributeName = </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"isdocument"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">Operator = </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">ConditionOperator</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">.Equal,<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">Values = { </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">true</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">},<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">};<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">results = service.RetrieveMultiple(Query);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">catch</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> (</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">Exception</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> Ex)<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">Console</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">.Write(Ex.Message);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">if</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> (Ex.InnerException != </span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">null</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">)<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">Console</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">.WriteLine(Ex.InnerException.Message);<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #2b91af; font-family: Consolas; font-size: 9.5pt;">Console</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">.ReadLine();<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">return</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> results;<o:p></o:p></span></div>
<br style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;" />
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
<span style="background-color: white; font-family: Consolas; font-size: 9.5pt; line-height: 14.566666603088379px;">}</span></div>
</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-34732599385046491442014-05-21T23:44:00.001-07:002014-05-21T23:44:33.467-07:00How to get/set Form header field in MS CRM 2011 and MS CRM 2013 !!!<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px;">
There is no supported method in SDK to get and set form header field value using JavaScript. However, there is a workaround to achieve this just place field in Form Header and Form as well (You can hide field from Form in case of you don’t want to show the user). Then you can get and set the field values.<o:p></o:p></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Consolas; font-size: 9.5pt;"><br /></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Consolas; font-size: 9.5pt;">// to get field value</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"> Value=Xrm.Page.data.entity.attributes.get(</span><span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: #a31515; font-family: Consolas; font-size: 9.5pt;">"new_field"</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;">).getValue();<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.200000762939453px; margin-bottom: 0.0001pt;">
<span style="background-color: white; background-position: initial initial; background-repeat: initial initial; color: green; font-family: Consolas; font-size: 9.5pt;">// to set field valuenew_field</span><span style="background-color: white; font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<span style="background-color: white; color: #333333; font-family: Consolas; font-size: 9.5pt; line-height: 14.566666603088379px;">Xrm.Page.data.entity.attributes.get(</span><span style="background-color: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; line-height: 14.566666603088379px;">"new_field"</span><span style="background-color: white; color: #333333; font-family: Consolas; font-size: 9.5pt; line-height: 14.566666603088379px;">).setValue(100);</span></div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-60630538817824079292014-05-20T03:25:00.001-07:002014-05-20T03:25:15.239-07:00How to set the value of Boolean attribute in MS CRM 2013<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<span lang="EN-IN" style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">Xrm.Page.getAttribute(</span><span lang="EN-IN" style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;">"alb_trigger"</span><span lang="EN-IN" style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">).setValue(</span><span lang="EN-IN" style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;">true</span><span lang="EN-IN" style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="margin-left: 36.0pt; text-autospace: none; text-indent: 36.0pt;">
<span lang="EN-IN" style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">OR<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 36.0pt; text-autospace: none; text-indent: 36.0pt;">
<br /></div>
<br />
<div class="MsoNormal">
<span lang="EN-IN" style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">Xrm.Page.getAttribute(</span><span lang="EN-IN" style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;">"alb_trigger"</span><span lang="EN-IN" style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">).setValue(</span><span lang="EN-IN" style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-IN;">1</span><span lang="EN-IN" style="background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: Consolas; font-size: 9.5pt;">);<o:p></o:p></span></div>
</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com1tag:blogger.com,1999:blog-8603659980987449163.post-23910917974989032892014-05-20T03:19:00.002-07:002014-05-20T03:19:18.837-07:00Why window.showModalDialog does not refresh<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="border: 0px; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18.211200714111328px; margin-bottom: 18px; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;"><b><u>Problem</u></b></span></div>
<div style="border: 0px; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18.211200714111328px; margin-bottom: 18px; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="background-color: white;">I have some pages that is opened by window.showModalDialog(). But why is it not refreshed?</span></div>
<ul style="border: 0px; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18.211200714111328px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 18px 30px; outline: 0px; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; margin: 0px 0px 5px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="background-color: white;">For example, when there is a compile error in the page, it will show it when opening it. This is correct. But after I correct the error, it will still show the same error. I have to terminate ASP.NET worker process by issuing "iisreset" command. Then it will show the corrected page.</span></li>
<li style="border: 0px; margin: 0px 0px 5px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="background-color: white;">Or when some data is changed. When I open that page, it will still show the old data. Like it is using the browser's local cache. After I clear the brower's cache, then it will show the updated data.</span></li>
</ul>
<div>
<span style="font-family: Segoe UI, Tahoma, Arial, Helvetica, sans-serif; font-size: x-small;"><span style="background-color: white; line-height: 18.211200714111328px;"><b><u>Solution</u></b></span></span></div>
<div>
<span style="font-family: Segoe UI, Tahoma, Arial, Helvetica, sans-serif; font-size: x-small;"><span style="background-color: white; line-height: 18.211200714111328px;"><br /></span></span></div>
<div>
<span style="background-color: white; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18.211200714111328px;">In IE7, go to Tools | Internet Options. Click the Browsing History "Settings" button. Check for newer versions of stored pages: and select "Everytime I visit the page"</span></div>
</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-46167328439370829482014-05-14T01:53:00.004-07:002014-05-14T01:53:50.646-07:00Open an entity record in a new window in MS CRM 2013 by Javascript<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: white; box-sizing: border-box; color: #141412; font-family: 'Source Sans Pro', Helvetica, sans-serif; font-size: 16px; line-height: 24px; margin-bottom: 24px;">
In CRM 2013 opening an entity record differs from previous versions. While CRM 2011 was all about popup windows CRM 2013 has a flat HTML5 navigation style. But you can still open a record in a popup window.</div>
<div style="background-color: white; box-sizing: border-box; color: #141412; font-family: 'Source Sans Pro', Helvetica, sans-serif; font-size: 16px; line-height: 24px; margin-bottom: 24px;">
To open an entity record in a new window pass the following query string parameters.</div>
<table style="background-color: white; border-bottom-color: rgb(237, 237, 237); border-bottom-style: solid; border-bottom-width: 1px; border-collapse: collapse; border-spacing: 0px; box-sizing: border-box; color: #141412; font-family: 'Source Sans Pro', Helvetica, sans-serif; font-size: 14px; line-height: 2; margin: 0px 0px 20px; width: 604px;"><tbody style="box-sizing: border-box;">
<tr style="box-sizing: border-box;"><td style="border-top-color: rgb(237, 237, 237); border-top-style: solid; border-top-width: 1px; box-sizing: border-box; padding: 6px 10px 6px 0px;"><strong style="box-sizing: border-box;">etn</strong></td><td style="border-top-color: rgb(237, 237, 237); border-top-style: solid; border-top-width: 1px; box-sizing: border-box; padding: 6px 10px 6px 0px;">The logical name of the entity</td></tr>
<tr style="box-sizing: border-box;"><td style="border-top-color: rgb(237, 237, 237); border-top-style: solid; border-top-width: 1px; box-sizing: border-box; padding: 6px 10px 6px 0px;"><strong style="box-sizing: border-box;">extraqs</strong></td><td style="border-top-color: rgb(237, 237, 237); border-top-style: solid; border-top-width: 1px; box-sizing: border-box; padding: 6px 10px 6px 0px;">Optional for forms (see Microsoft Dynamics CRM SDK for 2013 documentation)</td></tr>
<tr style="box-sizing: border-box;"><td style="border-top-color: rgb(237, 237, 237); border-top-style: solid; border-top-width: 1px; box-sizing: border-box; padding: 6px 10px 6px 0px;"><strong style="box-sizing: border-box;">pagetype</strong></td><td style="border-top-color: rgb(237, 237, 237); border-top-style: solid; border-top-width: 1px; box-sizing: border-box; padding: 6px 10px 6px 0px;">entityRecord</td></tr>
<tr style="box-sizing: border-box;"><td style="border-top-color: rgb(237, 237, 237); border-top-style: solid; border-top-width: 1px; box-sizing: border-box; padding: 6px 10px 6px 0px;"><strong style="box-sizing: border-box;">id</strong></td><td style="border-top-color: rgb(237, 237, 237); border-top-style: solid; border-top-width: 1px; box-sizing: border-box; padding: 6px 10px 6px 0px;">The id of the entity</td></tr>
<tr style="box-sizing: border-box;"><td style="border-top-color: rgb(237, 237, 237); border-top-style: solid; border-top-width: 1px; box-sizing: border-box; padding: 6px 10px 6px 0px;"><strong style="box-sizing: border-box;">newWindow</strong></td><td style="border-top-color: rgb(237, 237, 237); border-top-style: solid; border-top-width: 1px; box-sizing: border-box; padding: 6px 10px 6px 0px;">true (undocumented)</td></tr>
<tr style="box-sizing: border-box;"><td style="border-top-color: rgb(237, 237, 237); border-top-style: solid; border-top-width: 1px; box-sizing: border-box; padding: 6px 10px 6px 0px;"><strong style="box-sizing: border-box;">histKey</strong></td><td style="border-top-color: rgb(237, 237, 237); border-top-style: solid; border-top-width: 1px; box-sizing: border-box; padding: 6px 10px 6px 0px;">a random numeric sequence (undocumented)</td></tr>
</tbody></table>
<div style="background-color: white; box-sizing: border-box; color: #141412; font-family: 'Source Sans Pro', Helvetica, sans-serif; font-size: 16px; line-height: 24px; margin-bottom: 24px;">
The following sample shows the URL and query string parameters to open an account record in a new window:</div>
<div style="background-color: white; box-sizing: border-box; color: #141412; font-family: 'Source Sans Pro', Helvetica, sans-serif; font-size: 16px; line-height: 24px; margin-bottom: 24px;">
<code class="plain" style="background-image: none !important; border: 0px !important; bottom: auto !important; box-sizing: border-box; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; line-height: 17.600000381469727px; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">window.open(</code><code class="string" style="background-image: none !important; border: 0px !important; bottom: auto !important; box-sizing: border-box; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; line-height: 17.600000381469727px; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"<a href="https://contoso.crm.dynamics.com/main.aspx?etn=account&extraqs=&histKey=469645694&id=" style="box-sizing: border-box; color: blue !important; outline: 0px;">https://contoso.crm.dynamics.com/main.aspx?etn=account&extraqs=&histKey=469645694&id=</a>{02c2e648-0acd-41f0-9ca8-d8d131e5f47b}&newWindow=true&pagetype=entityrecord"</code><code class="plain" style="background-image: none !important; border: 0px !important; bottom: auto !important; box-sizing: border-box; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; line-height: 17.600000381469727px; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">,</code><code class="string" style="background-image: none !important; border: 0px !important; bottom: auto !important; box-sizing: border-box; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; line-height: 17.600000381469727px; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">""</code><code class="plain" style="background-image: none !important; border: 0px !important; bottom: auto !important; box-sizing: border-box; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; line-height: 17.600000381469727px; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">,</code><code class="string" style="background-image: none !important; border: 0px !important; bottom: auto !important; box-sizing: border-box; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; line-height: 17.600000381469727px; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"status=0,resizable=1,width=1000px,height=600px"</code><code class="plain" style="background-image: none !important; border: 0px !important; bottom: auto !important; box-sizing: border-box; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; line-height: 17.600000381469727px; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">);</code></div>
<div style="background-color: white; box-sizing: border-box; color: #141412; font-family: 'Source Sans Pro', Helvetica, sans-serif; font-size: 16px; line-height: 24px; margin-bottom: 24px;">
<code class="plain" style="background-image: none !important; border: 0px !important; bottom: auto !important; box-sizing: border-box; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; line-height: 17.600000381469727px; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><a href="http://www.devvblog.com/?p=161" target="_blank">click here</a> for more info.</code></div>
<div style="background-color: white; box-sizing: border-box; color: #141412; font-family: 'Source Sans Pro', Helvetica, sans-serif; font-size: 16px; line-height: 24px; margin-bottom: 24px;">
<code class="plain" style="background-image: none !important; border: 0px !important; bottom: auto !important; box-sizing: border-box; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; height: auto !important; left: auto !important; line-height: 17.600000381469727px; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><br /></code></div>
</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com1tag:blogger.com,1999:blog-8603659980987449163.post-60804471619196350092014-05-14T01:51:00.000-07:002014-05-14T01:51:00.406-07:00Ribbondiffxml for Custom Button on Form, Home, Sub-Grid in MS CRM 2011 and MS CRM 2013<div dir="ltr" style="text-align: left;" trbidi="on">
<RibbonDiffXml><br />
<CustomActions><br />
<CustomAction Id="alb.alb_aiscontract.Button1.Button.CustomAction" Location="Mscrm.Form.alb_aiscontract.MainTab.Save.Controls._children" Sequence="65"><br />
<CommandUIDefinition><br />
<Button Command="alb.alb_aiscontract.Command0.Command" Id="alb.alb_aiscontract.Button1.Button" Image32by32="$webresource:alb_aiscontractImage32" Image16by16="$webresource:alb_aiscontractImage16" LabelText="$LocLabels:alb.alb_aiscontract.Button1.Button.LabelText" Sequence="65" TemplateAlias="o2" ToolTipTitle="$LocLabels:alb.alb_aiscontract.Button1.Button.ToolTipTitle" /><br />
</CommandUIDefinition><br />
</CustomAction><br />
<CustomAction Id="alb.alb_aiscontract.Button2.Button.CustomAction" Location="Mscrm.HomepageGrid.alb_aiscontract.MainTab.Management.Controls._children" Sequence="45"><br />
<CommandUIDefinition><br />
<Button Command="alb.alb_aiscontract.Command1.Command" Id="alb.alb_aiscontract.Button2.Button" Image32by32="$webresource:alb_aiscontractImage32" Image16by16="$webresource:alb_aiscontractImage16" LabelText="$LocLabels:alb.alb_aiscontract.Button2.Button.LabelText" Sequence="45" TemplateAlias="o2" ToolTipTitle="$LocLabels:alb.alb_aiscontract.Button2.Button.ToolTipTitle" /><br />
</CommandUIDefinition><br />
</CustomAction><br />
<CustomAction Id="alb.alb_aiscontract.Button3.Button.CustomAction" Location="Mscrm.SubGrid.alb_aiscontract.MainTab.Management.Controls._children" Sequence="45"><br />
<CommandUIDefinition><br />
<Button Command="alb.alb_aiscontract.Command1.Command" Id="alb.alb_aiscontract.Button3.Button" Image32by32="$webresource:alb_aiscontractImage32" Image16by16="$webresource:alb_aiscontractImage16" LabelText="$LocLabels:alb.alb_aiscontract.Button3.Button.LabelText" Sequence="45" TemplateAlias="o1" ToolTipTitle="$LocLabels:alb.alb_aiscontract.Button3.Button.ToolTipTitle" /><br />
</CommandUIDefinition><br />
</CustomAction><br />
</CustomActions><br />
<Templates><br />
<RibbonTemplates Id="Mscrm.Templates"></RibbonTemplates><br />
</Templates><br />
<CommandDefinitions><br />
<CommandDefinition Id="alb.alb_aiscontract.Command0.Command"><br />
<EnableRules /><br />
<DisplayRules><br />
<DisplayRule Id="alb.alb_aiscontract.DisplayRule0.DisplayRule" /><br />
</DisplayRules><br />
<Actions><br />
<JavaScriptFunction FunctionName="CreateAISContractVersion" Library="$webresource:alb_aiscontract"><br />
<CrmParameter Value="FirstPrimaryItemId" /><br />
</JavaScriptFunction><br />
</Actions><br />
</CommandDefinition><br />
<CommandDefinition Id="alb.alb_aiscontract.Command1.Command"><br />
<EnableRules><br />
<EnableRule Id="alb.alb_aiscontract.EnableRule0.EnableRule" /><br />
</EnableRules><br />
<DisplayRules /><br />
<Actions><br />
<JavaScriptFunction FunctionName="CreateAISContractVersion" Library="$webresource:alb_aiscontract"><br />
<CrmParameter Value="SelectedControlSelectedItemIds" /><br />
</JavaScriptFunction><br />
</Actions><br />
</CommandDefinition><br />
</CommandDefinitions><br />
<RuleDefinitions><br />
<TabDisplayRules /><br />
<DisplayRules><br />
<DisplayRule Id="alb.alb_aiscontract.DisplayRule0.DisplayRule"><br />
<FormStateRule State="Create" InvertResult="true" /><br />
</DisplayRule><br />
</DisplayRules><br />
<EnableRules><br />
<EnableRule Id="alb.alb_aiscontract.EnableRule0.EnableRule"><br />
<SelectionCountRule AppliesTo="SelectedEntity" Minimum="1" Maximum="1" /><br />
</EnableRule><br />
</EnableRules><br />
</RuleDefinitions><br />
<LocLabels><br />
<LocLabel Id="alb.alb_aiscontract.Button1.Button.LabelText"><br />
<Titles><br />
<Title description="Create Version" languagecode="1033" /><br />
</Titles><br />
</LocLabel><br />
<LocLabel Id="alb.alb_aiscontract.Button1.Button.ToolTipTitle"><br />
<Titles><br />
<Title description="Create Version" languagecode="1033" /><br />
</Titles><br />
</LocLabel><br />
<LocLabel Id="alb.alb_aiscontract.Button2.Button.LabelText"><br />
<Titles><br />
<Title description="Create Version" languagecode="1033" /><br />
</Titles><br />
</LocLabel><br />
<LocLabel Id="alb.alb_aiscontract.Button2.Button.ToolTipTitle"><br />
<Titles><br />
<Title description="Create Version" languagecode="1033" /><br />
</Titles><br />
</LocLabel><br />
<LocLabel Id="alb.alb_aiscontract.Button3.Button.LabelText"><br />
<Titles><br />
<Title description="Create Version" languagecode="1033" /><br />
</Titles><br />
</LocLabel><br />
<LocLabel Id="alb.alb_aiscontract.Button3.Button.ToolTipTitle"><br />
<Titles><br />
<Title description="Create Version" languagecode="1033" /><br />
</Titles><br />
</LocLabel><br />
</LocLabels><br />
</RibbonDiffXml><br />
<div>
<br /></div>
</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-8117400437393888712014-05-14T01:49:00.002-07:002014-05-14T01:49:21.414-07:00Use OData service to Create a Record through Javascript<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
function CreateAISContractVersion(aisContractId)</div>
<div class="MsoNormal">
{</div>
<div class="MsoNormal">
var originRecordType =
"alb_aiscontract";</div>
<div class="MsoNormal">
var originRecordGuid =
aisContractId;</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
var cloneData = {};</div>
<div class="MsoNormal">
var activityId;</div>
<div class="MsoNormal">
var serverUrl =
document.location.protocol + "//" + document.location.host +
"/" + Xrm.Page.context.getOrgUniqueName();</div>
<div class="MsoNormal">
var oDataUri = serverUrl +
"/xrmservices/2011/OrganizationData.svc/" + originRecordType +
"Set?$select=*&$filter=" + originRecordType + "Id eq
guid'" </div>
<div class="MsoNormal">
+
originRecordGuid + "'";</div>
<div class="MsoNormal">
jQuery.support.cors = true;</div>
<div class="MsoNormal">
jQuery.ajax({</div>
<div class="MsoNormal">
type:
"GET",</div>
<div class="MsoNormal">
contentType:
"application/json; charset=utf-8",</div>
<div class="MsoNormal">
datatype:
"json",</div>
<div class="MsoNormal">
url: oDataUri,</div>
<div class="MsoNormal">
async: false,
//Synchronous operation </div>
<div class="MsoNormal">
beforeSend:
function (XMLHttpRequest) {</div>
<div class="MsoNormal">
//Specifying this header ensures that the results will be returned as
JSON. </div>
<div class="MsoNormal">
XMLHttpRequest.setRequestHeader("Accept",
"application/json");</div>
<div class="MsoNormal">
},</div>
<div class="MsoNormal">
success: function
(data, textStatus, XmlHttpRequest) {</div>
<div class="MsoNormal">
if (data && data.d && data.d.results) {</div>
<div class="MsoNormal">
cloneData = data.d.results[0];</div>
<div class="MsoNormal">
//Here insert the code to skip/transform fields such as Record Id, Date fields,
etc..</div>
<div class="MsoNormal">
replacer = function (key, value) {</div>
<div class="MsoNormal">
if (key == "ModifiedOn" || key == originRecordType + "Id"
||</div>
<div class="MsoNormal">
key == "CreatedOn" || key == "StateCode" ||</div>
<div class="MsoNormal">
key == "StatusCode") {</div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
return
undefined;</div>
<div class="MsoNormal">
} else if (key == "alb_contractdate" || key ==
"alb_warrantyperiodstartdate"|| key ==
"alb_warrantyperiodenddate") {</div>
<div class="MsoNormal">
if (value) {</div>
<div class="MsoNormal">
var date =</div>
<div class="MsoNormal">
eval('new ' + </div>
<div class="MsoNormal">
value.replace("/",
"").replace("/", ""));</div>
<div class="MsoNormal">
return date.format('yyyy-MM-dd'); //Format the date</div>
<div class="MsoNormal">
}</div>
<div class="MsoNormal">
}</div>
<div class="MsoNormal">
else if (key == "alb_version") {</div>
<div class="MsoNormal">
if (value)
{
</div>
<div class="MsoNormal">
return
(parseInt(value) + 1).toString(); //Format the date</div>
<div class="MsoNormal">
}</div>
<div class="MsoNormal">
}</div>
<div class="MsoNormal">
else return value;</div>
<div class="MsoNormal">
}</div>
<div class="MsoNormal">
//Create new Activity</div>
<div class="MsoNormal">
var oDataUri = serverUrl +</div>
<div class="MsoNormal">
"/xrmservices/2011/OrganizationData.svc/" +</div>
<div class="MsoNormal">
originRecordType + "Set";</div>
<div class="MsoNormal">
jQuery.support.cors = true;</div>
<div class="MsoNormal">
jQuery.ajax({</div>
<div class="MsoNormal">
type: "POST",</div>
<div class="MsoNormal">
contentType: "application/json; charset=utf-8",</div>
<div class="MsoNormal">
datatype: "json",</div>
<div class="MsoNormal">
url: oDataUri,</div>
<div class="MsoNormal">
async:
false, //Synchronous operation </div>
<div class="MsoNormal">
data:
JSON.stringify(cloneData, replacer),</div>
<div class="MsoNormal">
beforeSend: function (XMLHttpRequest) {</div>
<div class="MsoNormal">
//Specifying this header ensures that the results will be returned as
JSON. </div>
<div class="MsoNormal">
XMLHttpRequest.setRequestHeader("Accept","application/json");</div>
<div class="MsoNormal">
},</div>
<div class="MsoNormal">
success: function (data, textStatus, XmlHttpRequest) {</div>
<div class="MsoNormal">
if (data && data.d) {</div>
<div class="MsoNormal">
activityId = data.d.ActivityId;</div>
<div class="MsoNormal">
}</div>
<div class="MsoNormal">
},</div>
<div class="MsoNormal">
error: function (XmlHttpRequest, textStatus, errorThrown) {</div>
<div class="MsoNormal">
alert("Error : has occured during creation of the activity
" + originRecordType.text + ": " +</div>
<div class="MsoNormal">
XmlHttpRequest.responseText);</div>
<div class="MsoNormal">
}</div>
<div class="MsoNormal">
});</div>
<div class="MsoNormal">
} else {</div>
<div class="MsoNormal">
//No data returned</div>
<div class="MsoNormal">
}</div>
<div class="MsoNormal">
},</div>
<div class="MsoNormal">
error: function
(XmlHttpRequest, textStatus, errorThrown) {</div>
<div class="MsoNormal">
alert("Error : has occured during retrieving of the activity "</div>
<div class="MsoNormal">
+ originRecordType.text + ": " +</div>
<div class="MsoNormal">
XmlHttpRequest.responseText);</div>
<div class="MsoNormal">
}</div>
<div class="MsoNormal">
});</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
alert(activityId);</div>
<br />
<div class="MsoNormal">
}</div>
</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-79536402854812393522014-05-07T03:43:00.005-07:002014-05-07T03:43:48.207-07:00Find GUID of the current record in MS CRM 2013 <div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: left;">
<span style="font-family: inherit;">In CRM 2013 you do not have option to find record GUID in URL.</span></div>
<div style="text-align: left;">
<span style="font-family: inherit;"><br />to retrieve the GUID of the current record follow the below steps:<br />1. press F12 key<br />2. in Console type <span style="background-color: white; white-space: pre-wrap;">frames[0].Xrm.Page.data.entity.getId()</span><span style="background-color: white; white-space: pre-wrap;">3.The result is </span><span style="background-color: white; white-space: pre-wrap;">"</span><span class="console-formatted-string source-code" style="background-color: white; box-sizing: border-box; white-space: pre-wrap;">{101EC4E2-B5D5-E311-93ED-005056B618D8}</span><span style="background-color: white; white-space: pre-wrap;">"</span></span></div>
</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-57631431055395547362014-05-07T03:40:00.000-07:002014-05-07T03:40:20.813-07:00Entity statecodes and statuscodes MS CRM 2011 and MS CRM 2013<div dir="ltr" style="text-align: left;" trbidi="on">
List of <span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 19.600000381469727px;">statecodes and statuscodes of the commonly used entities</span><br />
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 19.600000381469727px;"><br /></span>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background-color: white; border-collapse: collapse; color: #333333; font-family: 'Helvetica Neue Light', HelveticaNeue-Light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.600000381469727px; margin: auto auto auto 4.65pt; width: 613px;"><tbody>
<tr style="height: 15pt;"><td style="background-color: #eaeaea; background-position: initial initial; background-repeat: initial initial; border: 1pt solid windowtext; height: 15pt; padding: 0in 5.4pt; width: 155pt;" valign="top" width="207"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">Entity<o:p></o:p></span></span></div>
</td><td style="background-color: #eaeaea; background-position: initial initial; background-repeat: initial initial; border-color: windowtext windowtext windowtext rgb(0, 0, 0); border-style: solid solid solid none; border-width: 1pt 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">Status (statecode)<o:p></o:p></span></span></div>
</td><td style="background-color: #eaeaea; background-position: initial initial; background-repeat: initial initial; border-color: windowtext windowtext windowtext rgb(0, 0, 0); border-style: solid solid solid none; border-width: 1pt 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">Associated Status Reason (statuscode)<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="2" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Account (account)<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Active<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Active<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Inactive<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Inactive<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="4" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Activity (activitypointer)<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Open<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Open<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Completed<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Completed<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Canceled<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Scheduled<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Scheduled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="6" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Appointment (appointment)<o:p></o:p></span></span></div>
</td><td rowspan="2" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Open<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Free<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Tentative<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Completed<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Completed<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Canceled<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="2" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Scheduled<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">5 Busy<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">6 Out of Office<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="3" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Article (kbarticle)<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Draft<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Draft<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Unapproved<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Unapproved<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Published<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Published<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="6" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Campaign (campaign)<o:p></o:p></span></span></div>
</td><td rowspan="6" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Active<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Proposed<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Ready To Launch<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Launched<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Completed<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">5 Suspended<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="7" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext black; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Campaign Activity (campaignactivity)<o:p></o:p></span></span></div>
</td><td rowspan="5" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Open<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 In Progress<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Proposed<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Pending<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">5 System Aborted<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">6 Completed<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Closed<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Closed<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Canceled<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="3" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext black; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Campaign Response (campaignresponse)<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Open<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Open<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Closed<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Closed<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Canceled<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="6" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Case (incident)<o:p></o:p></span></span></div>
</td><td rowspan="4" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Active<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 In Progress<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 On Hold<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Waiting for Details<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Researching<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Resolved<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">5 Problem Solved<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Canceled<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">6 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="3" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext black; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Case Resolution (incidentresolution, notcustomizable)<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Open<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Open<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Completed<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Closed<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Canceled<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="2" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Contact (contact)<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Active<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Active<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Inactive<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Inactive<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="6" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Contract (contract)<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Draft<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Draft<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Invoiced<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Invoiced<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Active<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Active<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 On Hold<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 On Hold<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Canceled<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">5 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">5 Expired<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">6 Expired<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="4" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Contract Line (contractdetail)<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Existing<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 New<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Renewed<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Renewed<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Canceled<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Expired<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Expired<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="2" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Currency (transactioncurrency)<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Active<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Active<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Inactive<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Inactive<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="2" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Discount (discounttype)<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Active<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">100001 Active<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Inactive<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">100002 Inactive<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="8" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">E-mail (email)<o:p></o:p></span></span></div>
</td><td rowspan="2" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Open<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Draft<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">8 Failed<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="5" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Completed<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Completed<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Sent<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Received<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">6 Pending Send<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">7 Sending<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Canceled<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">5 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="5" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Fax (fax)<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Open<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Open<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="3" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Completed<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Completed<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Sent<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Received<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Canceled<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">5 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="10" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Invoice (invoice)<o:p></o:p></span></span></div>
</td><td rowspan="5" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Active<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 New<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Partially Shipped<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Billed<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">5 Booked (applies to services)<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">6 Installed (applies to services)<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="2" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Closed (deprecated)<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Canceled (deprecated)<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">7 Paid in Full (deprecated<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="2" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Paid<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">100001 Complete<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">100002 Parial<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Canceled<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">100003 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="7" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Lead (lead)<o:p></o:p></span></span></div>
</td><td rowspan="2" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Open<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 New<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Contacted<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Qualified<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Qualified<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="4" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Disqualified<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Lost<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">5 Cannot Contact<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">6 No Longer Interested<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">7 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="5" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Letter (letter)<o:p></o:p></span></span></div>
</td><td rowspan="2" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Open<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Open<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Draft<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="2" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Completed<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Received<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Sent<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Canceled<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">5 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="2" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Marketing List (list)<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Active<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Active<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Inactive<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Inactive<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="5" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Opportunity (opportunity)<o:p></o:p></span></span></div>
</td><td rowspan="2" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Open<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 In Progress<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 On Hold<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Won<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Won<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="2" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Lost<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">5 Out-Sold<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="7" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Order (salesorder)<o:p></o:p></span></span></div>
</td><td rowspan="2" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Active<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 New<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Pending<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Submitted<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 In Progress<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Canceled<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 No Money<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="2" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Fulfilled<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">100001 Complete<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">100002 Partial<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Invoiced<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">10003 Invoiced<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="4" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Phone Call (phonecall)<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Open<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Open<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="2" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Completed<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Made<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Received<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Canceled<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="2" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Price List (pricelevel)<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Active<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">100001 Active<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Inactive<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">10002 Inactive<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="2" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Product (product)<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Active<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Active<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Inactive<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Inactive<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="8" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Quote (quote)<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Draft<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 In Progress<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="2" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Active<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 In Progress<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Open<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="2" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Won<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Won<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">5 Out-Sold<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="3" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Closed<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">5 Lost<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">6 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">7 Revised<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="9" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext black; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Service Activity (serviceappointment)<o:p></o:p></span></span></div>
</td><td rowspan="2" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Open<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Requested<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Tentative<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Closed<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">8 Completed<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="2" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Canceled<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">9 Canceled<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">10 No Show<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td rowspan="4" style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Scheduled<o:p></o:p></span></span></div>
</td><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 Pending<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Reserved<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">6 In Progress<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: transparent; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">7 Arrived<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td nowrap="" rowspan="6" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext; border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; padding: 0in 5.4pt; width: 155pt;" width="207"><div align="center" class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px; text-align: center;">
<span style="color: black;"><span style="font-family: Calibri;">Task (task)<o:p></o:p></span></span></div>
</td><td rowspan="4" style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">0 Open<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Not Started<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">3 In Progress<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">4 Waiting on someone else<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">7 Deferred<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">1 Completed<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">5 Completed<o:p></o:p></span></span></div>
</td></tr>
<tr style="height: 15pt;"><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 169pt;" valign="top" width="225"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">2 Canceled<o:p></o:p></span></span></div>
</td><td style="background-color: #c5d9f1; background-position: initial initial; background-repeat: initial initial; border-color: rgb(0, 0, 0) windowtext windowtext rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; padding: 0in 5.4pt; width: 135.75pt;" valign="top" width="181"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; outline: none; padding: 0px;">
<span style="color: black;"><span style="font-family: Calibri;">6 Canceled</span></span></div>
</td></tr>
</tbody></table>
<br /><div>
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 16.100000381469727px;">The above table is a reference from <a href="http://rc.crm.dynamics.com/rc/regcont/en_us/op/articles/statestatus.aspx" target="_blank">this</a></span><span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 16.100000381469727px;"> wonderful site.</span></div>
<div>
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 16.100000381469727px;"><br /></span></div>
<div>
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 16.100000381469727px;"><b><u>To reactivate the case use below line of code</u></b></span></div>
<div>
<span style="background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 16.100000381469727px;"><br /></span></div>
<div>
<span style="background-color: white;"><div style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 16.100000381469727px;">
SetStateRequest objSetStateRequest = new SetStateRequest();</div>
<div style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 16.100000381469727px;">
objSetStateRequest.EntityMoniker = new EntityReference("incident", caseGuid);</div>
<div style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 16.100000381469727px;">
objSetStateRequest.State = new OptionSetValue(0); //0=Active</div>
<div style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 16.100000381469727px;">
objSetStateRequest.Status = new OptionSetValue(1);//1=In Progress</div>
<div style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 16.100000381469727px;">
service.Execute(objSetStateRequest);</div>
<div style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 16.100000381469727px;">
<br /></div>
<div style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 16.100000381469727px;">
<b><u>To resolve the case use the below line of code</u></b></div>
<div style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 16.100000381469727px;">
<br /></div>
<div>
<div>
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 16.100000381469727px;">CloseIncidentRequest objCloseIncidentRequest = new CloseIncidentRequest();</span></span></div>
<div>
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 16.100000381469727px;">objCloseIncidentRequest.Status = new OptionSetValue(5);</span></span><span style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 16.100000381469727px;"> </span></div>
<div>
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 16.100000381469727px;">Entity objEntity=new Entity("incidentresolution");</span></span></div>
<div>
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 16.100000381469727px;">objEntity.Attributes["subject"]="Resolved";</span></span></div>
<div>
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 16.100000381469727px;">objEntity.Attributes["incidentid"]=new EntityReference("incident", parentCaseId);</span></span></div>
<div>
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 16.100000381469727px;">objCloseIncidentRequest.IncidentResolution = objEntity;</span></span></div>
<div>
<span style="color: #333333; font-family: Arial, sans-serif;"><span style="font-size: 14px; line-height: 16.100000381469727px;">service.Execute(objCloseIncidentRequest);</span></span></div>
</div>
<div style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 16.100000381469727px;">
<br /></div>
</span></div>
</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0tag:blogger.com,1999:blog-8603659980987449163.post-65225935612485729052014-02-25T20:50:00.000-08:002014-02-25T20:50:06.661-08:00How to get Query String parameters from JavaScript<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="WordSection1">
<div class="MsoNormal" style="margin-left: 36.0pt; text-autospace: none;">
<span style="background-color: white; color: #333333; font-family: Verdana; font-size: 12px; line-height: 18px;"><b>We can easily set up a Javascript function that will retrieve the query string and load an array with the values passed in the query string. Here it is. This function goes into the head section of our page.</b></span></div>
<div class="MsoNormal" style="margin-left: 36.0pt; text-autospace: none;">
<span style="background-color: white; color: #333333; font-family: Verdana; font-size: 12px; line-height: 18px;"><br /></span></div>
<div class="MsoNormal" style="margin-left: 36.0pt; text-autospace: none;">
<span style="color: blue; font-family: Consolas; font-size: 9.5pt;">var</span><span style="font-family: Consolas; font-size: 9.5pt;"> qsParm;<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
GetQueryStringParams();<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;"> <span style="color: blue;">function</span> GetQueryStringParams() {<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
<span style="color: darkgreen;">//Holds key:value pairs</span><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
qsParm = <span style="color: blue;">new</span> Array();<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
<span style="color: darkgreen;">//Get querystring from url</span><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
<span style="color: blue;">var</span> requestUrl =
window.location.search.toString();<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
<span style="color: blue;">if</span> (requestUrl != <span style="color: maroon;">''</span>)
{<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
<span style="color: darkgreen;">//window.location.search returns the part of the
URL </span><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;"> <span style="color: darkgreen;">//that follows the ? symbol, including the ? symbol</span><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
<span style="color: blue;">var</span> query = requestUrl.substring(1);<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
<span style="color: darkgreen;">//Get key:value pairs from querystring</span><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
<span style="color: blue;">var</span> parms = query.split(<span style="color: maroon;">'&'</span>);<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
<span style="color: blue;">for</span> (<span style="color: blue;">var</span> i = 0;
i < parms.length; i++) {<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
<span style="color: blue;">var</span> pos = parms[i].indexOf(<span style="color: maroon;">'='</span>);<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
<span style="color: blue;">if</span> (pos > 0) {<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
<span style="color: blue;">var</span> key = parms[i].substring(0, pos);<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
<span style="color: blue;">var</span> val = parms[i].substring(pos + 1);<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
qsParm[key] = val;<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
}<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
}<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;">
}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
</div>
<div class="MsoNormal">
<span style="font-family: Consolas; font-size: 9.5pt;"> }<o:p></o:p></span></div>
</div>
</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com1tag:blogger.com,1999:blog-8603659980987449163.post-64595150761498546782014-02-25T20:38:00.000-08:002014-02-25T20:38:04.689-08:00MS CRM 4.0/2011 : How to get more than 5000 record from CRM database.<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Sometimes you required to retrieve all the entity record from database using FETCH and QUERY EXPRESSION but CRM limitation to not retrieve more than 5000 records. The way to retrieve use the below line of code:</b><br />
<br />
public static List<DynamicEntity> GetAllEntityRecords(CrmService service, string entityName, List<ConditionExpression> conditions, ColumnSet columns)<br />
{<br />
List<DynamicEntity> records = null;<br />
try<br />
{<br />
QueryExpression query = new QueryExpression();<br />
query.EntityName = entityName;<br />
<br />
if (columns != null)<br />
query.ColumnSet = columns;<br />
else<br />
query.ColumnSet = new AllColumns();<br />
<br />
if (conditions != null && conditions.Any())<br />
{<br />
query.Criteria = new FilterExpression();<br />
query.Criteria.FilterOperator = LogicalOperator.And;<br />
<br />
foreach (var cond in conditions)<br />
{<br />
query.Criteria.AddCondition(cond);<br />
}<br />
}<br />
query.PageInfo = new PagingInfo();<br />
query.PageInfo.Count = 100;<br />
query.PageInfo.PageNumber = 1;<br />
query.PageInfo.PagingCookie = null;<br />
<br />
RetrieveMultipleRequest retrieve = new RetrieveMultipleRequest();<br />
retrieve.Query = query;<br />
retrieve.ReturnDynamicEntities = true;<br />
<br />
records = new List<DynamicEntity>();<br />
<br />
while (true)<br />
{<br />
<br />
BusinessEntityCollection results = ((RetrieveMultipleResponse)service.Execute(retrieve)).BusinessEntityCollection;<br />
if (results.BusinessEntities != null)<br />
{<br />
foreach (DynamicEntity de in results.BusinessEntities)<br />
records.Add(de);<br />
}<br />
<br />
// Check for morerecords, if it returns true.<br />
if (results.MoreRecords)<br />
{<br />
// Increment the page number to retrieve the next page.<br />
query.PageInfo.PageNumber++;<br />
// Set the paging cookie to the paging cookie returned from current results.<br />
query.PageInfo.PagingCookie = results.PagingCookie;<br />
}<br />
else<br />
{<br />
// If no more records are in the result nodes, exit the loop.<br />
break;<br />
}<br />
}<br />
}<br />
catch (Exception ex)<br />
{<br />
throw ex;<br />
}<br />
return records;<br />
}</div>
Harish Kumar Golahttp://www.blogger.com/profile/11800693390095889126noreply@blogger.com0