<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2570382629577518804</id><updated>2025-08-13T22:49:17.645-07:00</updated><category term="MS CRM 2011"/><category term="javascript"/><category term="CRM 2011"/><category term="MS CRM"/><category term="C#"/><category term="Retrieve Multiple"/><category term="soap call in javascript"/><category term=".net"/><category term="Asp.Net"/><category term="BackgroundWorker"/><category term="BackgroundWorker process"/><category term="CRM"/><category term="CRM service"/><category term="CURD Operations in JS"/><category term="Calender"/><category term="Copy website into Dynamics CRM"/><category term="DataTable sorting"/><category term="Date and Time CRM"/><category term="EntityName"/><category term="ExecuteReader ExecuteNonQuery ExecuteScalar"/><category term="Generate ID in Stored Procedure as string format"/><category term="Generate pdf document from report using c#"/><category term="Grid View"/><category term="Gtalk"/><category term="INVENTORY MEMORY MANAGEMENT"/><category term="IP Address"/><category term="MS CM"/><category term="Modify the filter criteria"/><category term="OData"/><category term="Organization ID"/><category term="Organization name"/><category term="Plug in"/><category term="Plug-in"/><category term="RSSFeed Reading in Asp.Net"/><category term="Read excel in C#"/><category term="SQL"/><category term="SQL SERVER"/><category term="SessionStateOFF"/><category term="SharePoint"/><category term="SharePoint calender"/><category term="Stored Procedure Return"/><category term="Telerik RadListView"/><category term="Web services"/><category term="XML"/><category term="custom workflow"/><category term="data migration in CRM using excel"/><category term="html"/><category term="jquerry"/><category term="silverlight"/><category term="silverlight 5"/><category term="webservices in asp.net"/><title type='text'>Learning</title><subtitle type='html'>Place to know new things in technologies.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-6423112459964844305</id><published>2016-08-02T03:32:00.002-07:00</published><updated>2016-08-02T03:32:58.840-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="custom workflow"/><category scheme="http://www.blogger.com/atom/ns#" term="Generate pdf document from report using c#"/><category scheme="http://www.blogger.com/atom/ns#" term="MS CRM"/><category scheme="http://www.blogger.com/atom/ns#" term="Plug in"/><title type='text'>Create PDF from report and attach it to note or email using plug in.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Create PDF from report and attach it to note or email using
plug in.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Limitations: &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;-&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-numeric: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;i&gt;&amp;nbsp;&amp;nbsp;
&lt;/i&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;i&gt;Will only work for on-premise/ IFD CRM.&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Create fetch based SSRS report and “Publish report for
external Use”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Now go to report server url (&lt;a href=&quot;http://servername/Reports&quot;&gt;http://servername/Reports&lt;/a&gt;). And identify
your report and select and click on manage.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Window will open looks like below,&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeQO7ZDXQ6iSM15Cmh-kESLFZp_80-T_OgRE-AlQgiJUkoDbOUZSdEu31ax7n8ivUIVDtPtNbOUx5gWVaRI3C-lWodGYLW85CWpfBeQC3WshOEPIrTnqcL96_ZVffmY1BFmLzhMYC5UFXY/s1600/Report+Server.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeQO7ZDXQ6iSM15Cmh-kESLFZp_80-T_OgRE-AlQgiJUkoDbOUZSdEu31ax7n8ivUIVDtPtNbOUx5gWVaRI3C-lWodGYLW85CWpfBeQC3WshOEPIrTnqcL96_ZVffmY1BFmLzhMYC5UFXY/s320/Report+Server.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;-&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-numeric: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;Select data source as Microsoft Dynamics CRM
Fetch.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;-&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-numeric: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;Connection string as Organization Name “DEV”&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;-&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-numeric: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;!--[endif]--&gt;Select windows integrated security and test
connection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Note: Make sure the service account has the permissions to
execute the reports.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Now you are done with the configuration let’s write code for
plugin to understand this configuration and execute the report.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;ReportExecutionService&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; rs = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;ReportExecutionService&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;rs.Credentials = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; System.Net.&lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;NetworkCredential&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;&quot;username&quot;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;&quot;password&quot;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;&quot;domain&quot;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rs.Url = @XMLReportingServiceUrl;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: white; color: green; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;//
Render arguments&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;[] result = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; reportPath = XMLCRMReportID;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; format = &lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;&quot;pdf&quot;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; historyID = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; devInfo = &lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;@&quot;&amp;lt;DeviceInfo&amp;gt;&amp;lt;Toolbar&amp;gt;False&amp;lt;/Toolbar&amp;gt;&amp;lt;/DeviceInfo&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;ReportParameter&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; re = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;ReportParameter&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;List&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;ParameterValue&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt; lstParameterValues = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;List&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;ParameterValue&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;ParameterValue&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; p1 = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;ParameterValue&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p1 = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;ParameterValue&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p1.Name = &lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;&quot;ApplicationID&quot;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;;
// This will differ for the report to get to know the valid parameters go to
report click on “Manage” and select Parameters here you can see the parameter
names and its properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p1.Value = target.Id.ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lstParameterValues.Add(p1);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; encoding;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; mimeType;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; extension;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;Warning&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;[] warnings = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;[] streamIDs = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;ExecutionInfo&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; execInfo = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;ExecutionInfo&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;ExecutionHeader&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; execHeader = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;ExecutionHeader&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rs.ExecutionHeaderValue =
execHeader;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;execInfo = rs.LoadReport(reportPath,
historyID);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
rs.SetExecutionParameters(lstParameterValues.ToArray(), &lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;&quot;en-us&quot;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = rs.Render(format, devInfo,
&lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; line-height: 115%; mso-highlight: white;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt; line-height: 115%;&quot;&gt; extension, &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; line-height: 115%; mso-highlight: white;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt; line-height: 115%;&quot;&gt; encoding, &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; line-height: 115%; mso-highlight: white;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt; line-height: 115%;&quot;&gt; mimeType, &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; line-height: 115%; mso-highlight: white;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt; line-height: 115%;&quot;&gt;
warnings, &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; line-height: 115%; mso-highlight: white;&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt; line-height: 115%;&quot;&gt; streamIDs);&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; line-height: 115%;&quot;&gt;Pass the result to create annotation.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; CreateNotesAttachment(&lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;Entity&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; entity, &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;IOrganizationService&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; service, &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;Byte&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;[] reportData, &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; reportVersion, &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; reportFileName)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;Entity&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; attachment = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;Entity&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;&quot;annotation&quot;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attachment.Attributes[&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;&quot;subject&quot;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;] =
reportVersion;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attachment.Attributes[&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;&quot;objectid&quot;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;EntityReference&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;(entity.LogicalName,
entity.Id);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attachment.Attributes[&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;&quot;objecttypecode&quot;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;]
= entity.LogicalName;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attachment.Attributes[&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;&quot;filename&quot;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;] =
reportFileName;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attachment.Attributes[&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;&quot;documentbody&quot;&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;]
= &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;&quot;&gt;Convert&lt;/span&gt;&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;.ToBase64String(reportData);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; service.Create(attachment);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background: white; font-family: Consolas; font-size: 9.5pt; line-height: 115%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; line-height: 115%;&quot;&gt;Happy coding… &lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; font-size: 9.5pt; line-height: 115%;&quot;&gt;J&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/6423112459964844305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2016/08/create-pdf-from-report-and-attach-it-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/6423112459964844305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/6423112459964844305'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2016/08/create-pdf-from-report-and-attach-it-to.html' title='Create PDF from report and attach it to note or email using plug in.'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeQO7ZDXQ6iSM15Cmh-kESLFZp_80-T_OgRE-AlQgiJUkoDbOUZSdEu31ax7n8ivUIVDtPtNbOUx5gWVaRI3C-lWodGYLW85CWpfBeQC3WshOEPIrTnqcL96_ZVffmY1BFmLzhMYC5UFXY/s72-c/Report+Server.PNG" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Hyderabad, Telangana, India</georss:featurename><georss:point>17.385044 78.486671</georss:point><georss:box>16.9002155 77.841224 17.8698725 79.132118</georss:box></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-1794758424058938706</id><published>2014-04-30T23:38:00.000-07:00</published><updated>2014-04-30T23:39:13.161-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2011"/><category scheme="http://www.blogger.com/atom/ns#" term="MS CRM 2011"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL SERVER"/><title type='text'>Get multi records values into single column in SQL Server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
by using STUFF function wih the help of XML PATH we can put rows into 1 column&lt;br /&gt;
&lt;span style=&quot;color: #76a5af;&quot;&gt;select filteredserviceappointment.activityid,filteredserviceappointment.createdon,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #76a5af;&quot;&gt;Resources = STUFF( (SELECT &#39;,&#39; + ResourcesMas.partyidname&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #76a5af;&quot;&gt;FROM FilteredActivityParty &amp;nbsp;AS ResourcesMas&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #76a5af;&quot;&gt;WHERE ResourcesMas.activityid= filteredserviceappointment.activityid&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #76a5af;&quot;&gt;AND ResourcesMas.participationtypemask=10&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #76a5af;&quot;&gt;FOR XML PATH(&#39;&#39;)), 1, 1, &#39;&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #76a5af;&quot;&gt;from filteredserviceappointment&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/1794758424058938706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2014/04/get-multi-records-values-into-single.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/1794758424058938706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/1794758424058938706'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2014/04/get-multi-records-values-into-single.html' title='Get multi records values into single column in SQL Server'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-521159288419447547</id><published>2013-06-18T03:30:00.001-07:00</published><updated>2013-06-18T03:30:36.612-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Modify the filter criteria"/><category scheme="http://www.blogger.com/atom/ns#" term="MS CRM"/><category scheme="http://www.blogger.com/atom/ns#" term="MS CRM 2011"/><category scheme="http://www.blogger.com/atom/ns#" term="Plug-in"/><category scheme="http://www.blogger.com/atom/ns#" term="Retrieve Multiple"/><title type='text'>Modify the filter criteria on retrieve multiple of an entity.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To modify the filter criteria for retrieve multiple message of any entity you can do something like this.&lt;br /&gt;
&lt;br /&gt;
if (context.InputParameters.Contains(&quot;Query&quot;))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var qe = (QueryExpression)context.InputParameters[&quot;Query&quot;];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; ConditionExpression conExp1= new ConditionExpression(&quot;name&quot;, ConditionOperator.something val1);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; FilterExpression fexp1 = new FilterExpression()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FilterOperator = LogicalOperator.And,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Conditions = {&amp;nbsp;conExp1}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; qe.Criteria.AddFilter(fexp1);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; context.InputParameters[&quot;Query&quot;] = qe;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
While registering the plug in give entity name and operation step as Pre -Operation.&lt;br /&gt;
&lt;br /&gt;
And check the data now this filtering will apply in all areas where ever retrieve multiple operation comes in (Examples main grid,sub grid or look ups).&lt;br /&gt;
&lt;br /&gt;
If &amp;nbsp;you want to use same plug in for multiple entities then you can check the entity name like&lt;br /&gt;
if(qe.EntityName==&quot;account&quot;)&lt;br /&gt;
{&lt;br /&gt;
//do something..&lt;br /&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Happy Coding &amp;nbsp;:)&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/521159288419447547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2013/06/modify-filter-criteria-on-retrieve.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/521159288419447547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/521159288419447547'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2013/06/modify-filter-criteria-on-retrieve.html' title='Modify the filter criteria on retrieve multiple of an entity.'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-6401385493304743227</id><published>2013-06-18T03:11:00.002-07:00</published><updated>2013-06-18T03:11:27.456-07:00</updated><title type='text'>Pass Multiple Values to a Web Resource Through the Data Parameter</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
How to open HTML Web Resource with some parameters?&lt;br /&gt;
check the bellow link.&lt;br /&gt;
&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/gg327945.aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/gg327945.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/6401385493304743227/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2013/06/pass-multiple-values-to-web-resource.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/6401385493304743227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/6401385493304743227'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2013/06/pass-multiple-values-to-web-resource.html' title='Pass Multiple Values to a Web Resource Through the Data Parameter'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-184783181312025084</id><published>2013-03-14T03:44:00.000-07:00</published><updated>2013-03-14T03:44:08.565-07:00</updated><title type='text'>Days Difference between two date-times in java-script </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&amp;nbsp;function daysBetween(first, second) {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Copy date parts of the timestamps, discarding the time parts.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var one = new Date(first.getFullYear(), first.getMonth(), first.getDate());&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var two = new Date(second.getFullYear(), second.getMonth(), second.getDate());&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Do the math.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var millisecondsPerDay = 1000 * 60 * 60 * 24;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var millisBetween = two.getTime() - one.getTime();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var days = millisBetween / millisecondsPerDay;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Round down.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Math.floor(days);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
returns number of Days.&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/184783181312025084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2013/03/days-difference-between-two-date-times.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/184783181312025084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/184783181312025084'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2013/03/days-difference-between-two-date-times.html' title='Days Difference between two date-times in java-script '/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-1934110529535492488</id><published>2013-03-14T03:39:00.000-07:00</published><updated>2013-03-14T03:45:14.160-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM"/><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2011"/><category scheme="http://www.blogger.com/atom/ns#" term="Date and Time CRM"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="MS CRM"/><category scheme="http://www.blogger.com/atom/ns#" term="MS CRM 2011"/><category scheme="http://www.blogger.com/atom/ns#" term="OData"/><category scheme="http://www.blogger.com/atom/ns#" term="soap call in javascript"/><title type='text'>Working with DateTime in CRM 2011 using Javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Working with SOAP and REST end points from javascript in crm 2011.&lt;br /&gt;
&lt;br /&gt;
Converting CRM SOAP result datetime to normal date.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;var sdate = businessEntities[i].selectSingleNode(&#39;./q1:scheduledstart&#39;);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;var firstpart =&amp;nbsp;sdate&amp;nbsp;.split(&#39;T&#39;)[0];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var parts = [];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; parts = firstpart.split(&#39;-&#39;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;sdate&amp;nbsp;= parts[1] + &quot;/&quot; + parts[2] + &quot;/&quot; + parts[0]; &amp;nbsp; &amp;nbsp; &amp;nbsp; //mm/dd/yyyy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and while send date to CRM&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;sdate = (new Date(sdate)).toCRMFormat();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;//CRM Date Format&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Date.prototype.toCRMFormat = function () {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var d = this;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var f = d.Format(&quot;yyyy-mm-ddThh:MM:ss-&quot; + &quot;05:00&quot;);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return f;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Formats the date into a certain format&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Date.prototype.Format = function (format) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var d = this;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var f = &quot;&quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; f = f + format.replace(/dd|mm|yyyy|MM|hh|ss|ms|APM|\s|\/|\-|,|\./ig,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; function match() {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch (arguments[0]) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case &quot;dd&quot;:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var dd = d.getDate();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (dd &amp;lt; 10) ? &quot;0&quot; + dd : dd;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case &quot;mm&quot;:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var mm = d.getMonth() + 1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (mm &amp;lt; 10) ? &quot;0&quot; + mm : mm;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case &quot;yyyy&quot;: return d.getFullYear();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case &quot;hh&quot;:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var hh = d.getHours();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (hh &amp;lt; 10) ? &quot;0&quot; + hh : hh;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case &quot;MM&quot;:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var MM = d.getMinutes();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (MM &amp;lt; 10) ? &quot;0&quot; + MM : MM;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case &quot;ss&quot;:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var ss = d.getSeconds();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (ss &amp;lt; 10) ? &quot;0&quot; + ss : ss;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case &quot;ms&quot;: return d.getMilliseconds();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case &quot;APM&quot;:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var apm = d.getHours();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (apm &amp;lt; 12) ? &quot;AM&quot; : &quot;PM&quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; default: return arguments[0];&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; });&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (err) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return f;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
Converting CRM REST result datetime to normal date.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;var sdate = new Date(parseInt(this.ScheduledStart.replace(&quot;/Date(&quot;, &quot;&quot;).replace(&quot;)/&quot;, &quot;&quot;), 10));&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and send date back to CRM SOAP format can be use.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/1934110529535492488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2013/03/working-with-datetime-in-crm-2011-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/1934110529535492488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/1934110529535492488'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2013/03/working-with-datetime-in-crm-2011-using.html' title='Working with DateTime in CRM 2011 using Javascript'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Chennai, Tamil Nadu, India</georss:featurename><georss:point>13.060422 80.24958300000003</georss:point><georss:box>12.565430500000002 79.604136000000025 13.5554135 80.895030000000034</georss:box></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-8509402377229462519</id><published>2012-12-02T22:27:00.001-08:00</published><updated>2012-12-02T22:27:58.095-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Calender"/><category scheme="http://www.blogger.com/atom/ns#" term="MS CM"/><category scheme="http://www.blogger.com/atom/ns#" term="MS CRM 2011"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint calender"/><title type='text'>Reading SharePoint Calender using c#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Here is code for reading sharePoint calnder all events,&lt;br /&gt;
SharePoint any list you can read by using this code.Am using CAML query .&lt;br /&gt;
&amp;nbsp; &amp;nbsp;MsOnlineClaimsHelper claimsHelper = new MsOnlineClaimsHelper(&quot;https://sitename.sharepoint.com&quot;,&lt;br /&gt;
&quot;test@123&quot;, &quot;********&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; using (ClientContext context = new ClientContext(&quot;https://sitename.sharepoint.com&quot;))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; context.ExecutingWebRequest += claimsHelper.clientContext_ExecutingWebRequest;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; context.Load(context.Web);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; context.ExecuteQuery();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Name of the web is: &quot; + context.Web.Title);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Web oWebsite = context.Web;&lt;br /&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
context.Load(oWebsite, website =&amp;gt; website.Webs, website =&amp;gt; website.Title);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; context.ExecuteQuery();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Available sites Count: &quot; + oWebsite.Webs.Count);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 0; i != oWebsite.Webs.Count; i++)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Site Title: &quot; + oWebsite.Webs[i].Title);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ListCollection collList = oWebsite.Webs[i].Lists;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; context.Load(collList);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; context.ExecuteQuery();&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (List oList in collList)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Title: {0} Created: {1}&quot;, oList.Title, oList.Created.ToString());&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (oList.Title == &quot;Calendar&quot;)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CamlQuery query = new CamlQuery();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query.ViewXml = &quot;&amp;lt;View&amp;gt;&amp;lt;Query&amp;gt;&amp;lt;OrderBy&amp;gt;&amp;lt;FieldRef Name=&#39;Created&#39; Ascending=&#39;True&#39;&amp;gt;&amp;lt;/FieldRef&amp;gt;&amp;lt;/OrderBy&amp;gt;&amp;lt;/Query&amp;gt;&amp;lt;/View&amp;gt;&quot;;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ListItemCollection ItemsColl = oList.GetItems(query);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; context.Load(ItemsColl);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; context.ExecuteQuery();&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/8509402377229462519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2012/12/reading-sharepoint-calender-using-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/8509402377229462519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/8509402377229462519'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2012/12/reading-sharepoint-calender-using-c.html' title='Reading SharePoint Calender using c#'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-839163466171915219</id><published>2012-11-29T05:18:00.001-08:00</published><updated>2012-11-29T05:20:44.341-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="jquerry"/><title type='text'>Back page in javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To go back to last page. you can do this from Javascript.&lt;br /&gt;
simply &amp;nbsp;run this in javascript &lt;b&gt;documet.&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px;&quot;&gt;histroy.back();&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;will redirect to privous page. or&lt;/span&gt;&lt;br /&gt;
if you are in&amp;nbsp;Iframe&amp;nbsp;and want to go back.we can do it from script like&lt;br /&gt;
&amp;nbsp;&lt;b&gt; window.open(document.referrer, &#39;_self&#39;, false);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
simple&amp;nbsp;but helps a lot while making redirect.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/839163466171915219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2012/11/back-page-in-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/839163466171915219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/839163466171915219'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2012/11/back-page-in-javascript.html' title='Back page in javascript'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-2684618516974805102</id><published>2012-11-26T01:46:00.002-08:00</published><updated>2012-11-26T01:46:35.130-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="CRM service"/><category scheme="http://www.blogger.com/atom/ns#" term="MS CRM"/><category scheme="http://www.blogger.com/atom/ns#" term="MS CRM 2011"/><category scheme="http://www.blogger.com/atom/ns#" term="Web services"/><title type='text'>Working with Multiple CRM Instances  </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
When you need to connect multiple CRM instances in MS CRM Dynamics with an Organization Service &amp;nbsp;Proxy is to &amp;nbsp;should be generate one service for any instance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Before Office 365 enabled logIn to CRM Dynamics. We do have &quot;https://Orgname.crm.dynamics.com/XRMServices/2011/Discovery.svc&quot;. And for connect office 365 enabled crm we need to replace above discovery url like,&lt;br /&gt;
&quot;https://disco.crm.dynamics.com/XRMServices/2011/Discovery.svc&quot;.&lt;br /&gt;
&lt;br /&gt;
The 4.0 SDK can&#39;t able to connect to office 365 CRM from Pulg-In register tool. so, you can go the above modifications either go download 5.0 SDK.&lt;br /&gt;
&lt;br /&gt;
here is the my code you can connect with any of the MS CRM&amp;nbsp;Web service except IFD.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #region Meathod to Get Device Credentials for Online CRM&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private static ClientCredentials GetDeviceCredentials()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Microsoft.Crm.Services.Utility.DeviceIdManager.LoadOrRegisterDevice();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #endregion&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #region Meathod to Get Onpremise CRM Service&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private static OrganizationServiceProxy creatlocalservice()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ClientCredentials cred = new ClientCredentials();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cred.Windows.ClientCredential = new System.Net.NetworkCredential(UserName, Password, Domain);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OrganizationServiceProxy proxy = new OrganizationServiceProxy(new Uri(ServerURL + &quot;/&quot; + OrgName + &quot;/XRMServices/2011/Organization.svc&quot;), null, cred, null);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OrganizationServiceProxy service = (OrganizationServiceProxy)proxy;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WhoAmIRequest who = new WhoAmIRequest();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WhoAmIResponse ah = (WhoAmIResponse)service.Execute(who);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (service);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (Exception ex)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return null;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static OrganizationDetailCollection GetOnPremiseOrganizations(string UserName, string Password, string Domain, string URL)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Microsoft.Xrm.Sdk.Discovery.RetrieveOrganizationsResponse res = new Microsoft.Xrm.Sdk.Discovery.RetrieveOrganizationsResponse();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ClientCredentials cred = new ClientCredentials();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cred.Windows.ClientCredential = new System.Net.NetworkCredential(UserName, Password, Domain);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DiscoveryServiceProxy _serviceProxy = new DiscoveryServiceProxy(new Uri(URL + &quot;/XRMServices/2011/Discovery.svc&quot;), null, cred, GetDeviceCredentials());&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Microsoft.Xrm.Sdk.Discovery.RetrieveOrganizationsRequest orgs = new Microsoft.Xrm.Sdk.Discovery.RetrieveOrganizationsRequest()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AccessType = EndpointAccessType.Default,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Release = OrganizationRelease.Current&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; res = (Microsoft.Xrm.Sdk.Discovery.RetrieveOrganizationsResponse)_serviceProxy.Execute(orgs);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (Exception ex)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MessageBox.Show(&quot;Unable to Retrieve Organization Name.&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (res != null)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return res.Details;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return null;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #endregion&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #region Get Office 365 Serivce&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static OrganizationServiceProxy GetService()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String _discoveryServiceAddress = &quot;https://disco.crm.dynamics.com/XRMServices/2011/Discovery.svc&quot;;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IServiceManagement&amp;lt;IOrganizationService&amp;gt; orgServiceManagement = ServiceConfigurationFactory.CreateManagement&amp;lt;IOrganizationService&amp;gt;(new Uri(ServerURL + &quot;/XRMServices/2011/Organization.svc&quot;));&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Set the credentials.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AuthenticationCredentials credentials = GetCredentials(AuthenticationProviderType.ActiveDirectory);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; credentials.ClientCredentials.UserName.UserName = UserName;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; credentials.ClientCredentials.UserName.Password = Password;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; using (OrganizationServiceProxy organizationProxy = GetProxy&amp;lt;IOrganizationService, OrganizationServiceProxy&amp;gt;(orgServiceManagement, credentials))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // This statement is required to enable early-bound type support.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; organizationProxy.EnableProxyTypes();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Now make an SDK call with the organization service proxy.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Display information about the logged on user.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Guid userid = ((WhoAmIResponse)organizationProxy.Execute(new WhoAmIRequest())).UserId;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SystemUser systemUser = organizationProxy.Retrieve(&quot;systemuser&quot;, userid,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new ColumnSet(new string[] { &quot;firstname&quot;, &quot;lastname&quot; })).ToEntity&amp;lt;SystemUser&amp;gt;();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return organizationProxy;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private static AuthenticationCredentials GetCredentials(AuthenticationProviderType endpointType)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AuthenticationCredentials authCredentials = new AuthenticationCredentials();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch (endpointType)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case AuthenticationProviderType.ActiveDirectory:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; authCredentials.ClientCredentials.Windows.ClientCredential = new System.Net.NetworkCredential(UserName, Password);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; default: // For Federated and OnlineFederated identities. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; authCredentials.ClientCredentials.UserName.UserName = UserName;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; authCredentials.ClientCredentials.UserName.Password = Password&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Alternately, for OnlineFederated single-sign on, you could just use current&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // UserPrincipalName instead of passing the user name and password.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Example: authCredentials.UserPrincipalName = UserPrincipal.Current.UserPrincipalName;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return authCredentials;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private static TProxy GetProxy&amp;lt;TService, TProxy&amp;gt;(IServiceManagement&amp;lt;TService&amp;gt; serviceManagement, AuthenticationCredentials authCredentials)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; where TService : class&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; where TProxy : ServiceProxy&amp;lt;TService&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type classType = typeof(TProxy);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (serviceManagement.AuthenticationType !=&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AuthenticationProviderType.ActiveDirectory)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AuthenticationCredentials tokenCredentials =&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; serviceManagement.Authenticate(authCredentials);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Obtain discovery/organization service proxy for Federated, LiveId and OnlineFederated environments.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Instantiate a new class of type using the 2 parameter constructor of type IServiceManagement and SecurityTokenResponse.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (TProxy)classType&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .GetConstructor(new Type[] { typeof(IServiceManagement&amp;lt;TService&amp;gt;), typeof(SecurityTokenResponse) })&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Invoke(new object[] { serviceManagement, tokenCredentials.SecurityTokenResponse });&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Obtain discovery/organization service proxy for ActiveDirectory environment.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Instantiate a new class of type using the 2 parameter constructor of type IServiceManagement and ClientCredentials.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (TProxy)classType&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .GetConstructor(new Type[] { typeof(IServiceManagement&amp;lt;TService&amp;gt;), typeof(ClientCredentials) })&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Invoke(new object[] { serviceManagement, authCredentials.ClientCredentials });&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #endregion&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/2684618516974805102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2012/11/working-with-multiple-crm-instances.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/2684618516974805102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/2684618516974805102'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2012/11/working-with-multiple-crm-instances.html' title='Working with Multiple CRM Instances  '/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-3923698852908474294</id><published>2012-11-23T00:14:00.000-08:00</published><updated>2012-11-23T00:15:22.029-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="BackgroundWorker"/><category scheme="http://www.blogger.com/atom/ns#" term="BackgroundWorker process"/><category scheme="http://www.blogger.com/atom/ns#" term="MS CRM"/><category scheme="http://www.blogger.com/atom/ns#" term="silverlight"/><category scheme="http://www.blogger.com/atom/ns#" term="silverlight 5"/><title type='text'>BackgroundWorker in Silverlight</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
MultiThreading &amp;nbsp;in .net we can implement in different ways based on the requirement and application you are using.To implement this in silverlight is&amp;nbsp;difficult. Here all calls are basically Asynchronous. So at first i went through Dispatchers. but dispatcher not able to sync with UI thread. I want to display no records are completed and which records is going with details in UI. So i decided to implement&amp;nbsp;BackgroundWorker Process. it&#39;s quite suitable for me.&lt;br /&gt;
here is the code.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;BackgroundWorker bw = new BackgroundWorker();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bw.WorkerSupportsCancellation = true;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bw.WorkerReportsProgress = true;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bw.DoWork += new DoWorkEventHandler(bw_DoWork);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bw.ProgressChanged += new ProgressChangedEventHandler(bw_ProgressChanged);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bw_RunWorkerCompleted);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;private void bw_DoWork(object sender, DoWorkEventArgs e)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BackgroundWorker worker = sender as BackgroundWorker;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ((worker.CancellationPending == true))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.Cancel = true;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Perform a time consuming operation and report progress.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while ((CurrentProcess != null &amp;amp;&amp;amp; CurrentProcess.Attributes.ContainsKey(&quot;statuscode&quot;) &amp;amp;&amp;amp; ((OptionSetValue)CurrentProcess[&quot;statuscode&quot;]).Value != 2) || CurrentProcess == null)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thread.Sleep(5000);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GetUpdatedWorkFlowValues();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; worker.ReportProgress((10));&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
private void bw_ProgressChanged(object sender, ProgressChangedEventArgs e)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (CurrentProcess != null)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (CurrentProcess.Attributes.ContainsKey(&quot;mtc_status&quot;) &amp;amp;&amp;amp; CurrentProcess[&quot;mtc_status&quot;] != null)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Status = CurrentProcess[&quot;mtc_status&quot;].ToString();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UpdateStatus = Visibility.Visible;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (CurrentProcess.Attributes.ContainsKey(&quot;mtc_errorstaus&quot;) &amp;amp;&amp;amp; CurrentProcess[&quot;mtc_errorstaus&quot;] != null)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RuntimeStatus = CurrentProcess[&quot;mtc_errorstaus&quot;].ToString();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!string.IsNullOrEmpty(RuntimeStatus))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ErrorStatus = Visibility.Visible;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RunsyncButton = Visibility.Collapsed;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (CurrentProcess.Attributes.ContainsKey(&quot;statuscode&quot;) &amp;amp;&amp;amp; ((OptionSetValue)CurrentProcess[&quot;statuscode&quot;]).Value == 2)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bw.CancelAsync();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BusyIndicator = Visibility.Collapsed;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MessageBox.Show(&quot;Sync successfully completed&quot;, &quot;Success Response&quot;, MessageBoxButton.OK);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private void bw_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
//successfully completed&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/3923698852908474294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2012/11/backgroundworker-in-silverlight.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/3923698852908474294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/3923698852908474294'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2012/11/backgroundworker-in-silverlight.html' title='BackgroundWorker in Silverlight'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-1785485352709703159</id><published>2012-10-09T05:26:00.000-07:00</published><updated>2012-10-09T05:26:02.376-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="MS CRM 2011"/><category scheme="http://www.blogger.com/atom/ns#" term="Organization ID"/><category scheme="http://www.blogger.com/atom/ns#" term="Organization name"/><category scheme="http://www.blogger.com/atom/ns#" term="soap call in javascript"/><title type='text'>Get Organization Name and OrgUniquieID in Javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Get OrgName:&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;var orgname = Xrm.Page.context.getOrgUniqueName();&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Get OrgID:&lt;/b&gt;&lt;br /&gt;
by using WhoAmIRequest we can get organization ID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;function WhoAmIRequest() {&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var requestMain = &quot;&quot;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; requestMain += &quot;&amp;lt;s:Envelope xmlns:s=\&quot;http://schemas.xmlsoap.org/soap/envelope/\&quot;&amp;gt;&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; requestMain += &quot; &amp;nbsp;&amp;lt;s:Body&amp;gt;&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; requestMain += &quot; &amp;nbsp; &amp;nbsp;&amp;lt;Execute xmlns=\&quot;http://schemas.microsoft.com/xrm/2011/Contracts/Services\&quot; xmlns:i=\&quot;http://www.w3.org/2001/XMLSchema-instance\&quot;&amp;gt;&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; requestMain += &quot; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;request i:type=\&quot;b:WhoAmIRequest\&quot; xmlns:a=\&quot;http://schemas.microsoft.com/xrm/2011/Contracts\&quot; xmlns:b=\&quot;http://schemas.microsoft.com/crm/2011/Contracts\&quot;&amp;gt;&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; requestMain += &quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;a:Parameters xmlns:c=\&quot;http://schemas.datacontract.org/2004/07/System.Collections.Generic\&quot; /&amp;gt;&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; requestMain += &quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;a:RequestId i:nil=\&quot;true\&quot; /&amp;gt;&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; requestMain += &quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;a:RequestName&amp;gt;WhoAmI&amp;lt;/a:RequestName&amp;gt;&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; requestMain += &quot; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/request&amp;gt;&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; requestMain += &quot; &amp;nbsp; &amp;nbsp;&amp;lt;/Execute&amp;gt;&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; requestMain += &quot; &amp;nbsp;&amp;lt;/s:Body&amp;gt;&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; requestMain += &quot;&amp;lt;/s:Envelope&amp;gt;&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var req = new XMLHttpRequest();&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; req.open(&quot;POST&quot;, _getServerUrl(), false)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Responses will return XML. It isn&#39;t possible to return JSON.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; req.setRequestHeader(&quot;Accept&quot;, &quot;application/xml, text/xml, */*&quot;);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; req.setRequestHeader(&quot;Content-Type&quot;, &quot;text/xml; charset=utf-8&quot;);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; req.setRequestHeader(&quot;SOAPAction&quot;, &quot;http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/Execute&quot;);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var successCallback = null;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var errorCallback = null;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; req.onreadystatechange = function () { WhoAmIResponse(req); };&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; req.send(requestMain);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp;function _getError(faultXml) {&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var errorMessage = &quot;Unknown Error (Unable to parse the fault)&quot;;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (typeof faultXml == &quot;object&quot;) {&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var bodyNode = faultXml.firstChild.firstChild;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Retrieve the fault node&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (var i = 0; i &amp;lt; bodyNode.childNodes.length; i++) {&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var node = bodyNode.childNodes[i];&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //NOTE: This comparison does not handle the case where the XML namespace changes&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (&quot;s:Fault&quot; == node.nodeName) {&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (var j = 0; j &amp;lt; node.childNodes.length; j++) {&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var faultStringNode = node.childNodes[j];&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (&quot;faultstring&quot; == faultStringNode.nodeName) {&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errorMessage = faultStringNode.text;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (e) { };&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(errorMessage);&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function WhoAmIResponse(req) {&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (req.readyState == 4) {&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (req.status == 200) {&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OnSuccessCallBack(req);&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else {&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _getError(req.responseXML);&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function OnSuccessCallBack(data) {&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var Attributes = data.responseXML.selectNodes(&quot;//a:KeyValuePairOfstringanyType&quot;);&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (i = 0; i &amp;lt; Attributes.length; i++) {&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var attr = Attributes[i];&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var key = attr.selectSingleNode(&quot;c:key&quot;);&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (key != null &amp;amp;&amp;amp; key.text == &quot;OrganizationId&quot;) {&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OrgID = attr.selectSingleNode(&quot;c:value&quot;).text;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
This is great feature in MS CRM. C# is no need.&lt;br /&gt;
You can&amp;nbsp;customize&amp;nbsp;the your CRM as you expected that&#39;s ur&#39;s&amp;nbsp;patience.&lt;br /&gt;
&lt;br /&gt;
nice tips for&amp;nbsp;java script&amp;nbsp;from Naresh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/1785485352709703159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2012/10/get-organization-name-and-orguniquieid.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/1785485352709703159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/1785485352709703159'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2012/10/get-organization-name-and-orguniquieid.html' title='Get Organization Name and OrgUniquieID in Javascript'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-4739507612862434987</id><published>2012-03-30T04:50:00.000-07:00</published><updated>2012-03-30T04:52:04.352-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="IP Address"/><title type='text'>C# How To Get Computer IP Address</title><content type='html'>&lt;div&gt;private void GetIP()&lt;/div&gt;&lt;div&gt;        {&lt;/div&gt;&lt;div&gt;            string strHostName = &quot;&quot;;&lt;/div&gt;&lt;div&gt;            strHostName = System.Net.Dns.GetHostName();&lt;/div&gt;&lt;div&gt;            IPHostEntry ipEntry = System.Net.Dns.GetHostEntry(strHostName);&lt;/div&gt;&lt;div&gt;            Console.WriteLine(&quot;Host Name :&quot; + ipEntry.HostName);&lt;/div&gt;&lt;div&gt;            Console.WriteLine(&quot;Family Address :&quot; + ipEntry.AddressList[0]);&lt;/div&gt;&lt;div&gt;            Console.WriteLine(&quot;IP Address :&quot; + ipEntry.AddressList[1]);&lt;/div&gt;&lt;div&gt;        }&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/4739507612862434987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2012/03/c-how-to-get-computer-ip-address.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/4739507612862434987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/4739507612862434987'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2012/03/c-how-to-get-computer-ip-address.html' title='C# How To Get Computer IP Address'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-7716369687084647277</id><published>2012-03-26T04:45:00.002-07:00</published><updated>2012-03-26T04:48:14.418-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2011"/><category scheme="http://www.blogger.com/atom/ns#" term="CURD Operations in JS"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>CURD Operations in JS</title><content type='html'>Curd operations in javascript using JSON Script. follow this  url  &lt;a href=&quot;http://inogic.blogspot.in/2011/12/performing-crud-operations.html&quot;&gt;http://inogic.blogspot.in/2011/12/performing-crud-operations.html&lt;/a&gt;&lt;div&gt; for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/7716369687084647277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2012/03/curd-operations-in-js.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/7716369687084647277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/7716369687084647277'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2012/03/curd-operations-in-js.html' title='CURD Operations in JS'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-7055622345544470339</id><published>2012-03-16T05:02:00.002-07:00</published><updated>2012-12-02T22:19:58.742-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2011"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="Retrieve Multiple"/><title type='text'>Retrieve Multiple records using java script  in CRM </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Retrieve Multiple records for a &lt;/span&gt;particular&lt;span style=&quot;font-size: 100%;&quot;&gt; entity in &lt;/span&gt;java script&lt;span style=&quot;font-size: 100%;&quot;&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;div&gt;
function PerformRetrieveMultiple(entityName, columns, constraints) {&lt;/div&gt;
&lt;div&gt;
var authenticationHeader = GenerateAuthenticationHeader();&lt;/div&gt;
&lt;div&gt;
var query = &quot;&lt;!--?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?--&gt;&quot; +&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&quot;&lt;soap:envelope div=&quot;&quot; soap=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;&lt;/soap:envelope&gt;&lt;br /&gt;
&lt;div&gt;
&quot; xmlns:xsi=&#39;http://www.w3.org/2001/XMLSchema-instance&#39;&quot; +&lt;/div&gt;
&lt;div&gt;
&quot; xmlns:xsd=&#39;http://www.w3.org/2001/XMLSchema&#39;&amp;gt;&quot; +&lt;/div&gt;
&lt;div&gt;
authenticationHeader +&lt;/div&gt;
&lt;div&gt;
&quot;&lt;soap:body&gt;&quot; +&lt;/soap:body&gt;&lt;/div&gt;
&lt;div&gt;
&quot;&lt;retrievemultiple xmlns=&quot;http://schemas.microsoft.com/crm/2007/WebServices&quot;&gt;&quot; +&lt;/retrievemultiple&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&quot;&lt;query div=&quot;&quot; q1=&quot;http://schemas.microsoft.com/crm/2006/Query&quot;&gt;&lt;/query&gt;&lt;br /&gt;
&lt;div&gt;
&quot; xsi:type=&#39;q1:QueryExpression&#39;&amp;gt;&quot; +&lt;/div&gt;
&lt;div&gt;
&quot;&lt;q1:entityname&gt;&quot; + entityName + &quot;&lt;/q1:entityname&gt;&quot;;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
query += &quot;&lt;q1:columnset type=&quot;\&amp;quot;q1:ColumnSet\&amp;quot;&quot;&gt;&quot;;&lt;/q1:columnset&gt;&lt;/div&gt;
&lt;div&gt;
query += &quot; &lt;q1:attributes&gt;&quot;;&lt;/q1:attributes&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
for (var i = 0; i &amp;lt; columns.length; i++) {&lt;/div&gt;
&lt;div&gt;
query += &quot;&lt;q1:attribute&gt;&quot; + columns[i] + &quot;&lt;/q1:attribute&gt;&quot;;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
query += &quot; &quot;;&lt;/div&gt;
&lt;div&gt;
query += &quot;&quot;;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
query += &quot;&lt;q1:distinct&gt;false&lt;/q1:distinct&gt;&quot;;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
query += &quot;&lt;q1:criteria&gt;&quot;;&lt;/q1:criteria&gt;&lt;/div&gt;
&lt;div&gt;
query += &quot;&lt;q1:filteroperator&gt;And&lt;/q1:filteroperator&gt;&quot;;&lt;/div&gt;
&lt;div&gt;
query += &quot;&lt;q1:conditions&gt;&quot;;&lt;/q1:conditions&gt;&lt;/div&gt;
&lt;div&gt;
for (var i = 0; i &amp;lt; constraints.length; i++) {&lt;/div&gt;
&lt;div&gt;
var splitResult = constraints[i].split(&quot;=&quot;);&lt;/div&gt;
&lt;div&gt;
if (splitResult.length &amp;gt; 1) {&lt;/div&gt;
&lt;div&gt;
query += &quot;&lt;q1:condition&gt;&quot;;&lt;/q1:condition&gt;&lt;/div&gt;
&lt;div&gt;
query += &quot;&lt;q1:attributename&gt;&quot; + splitResult[0] + &quot;&lt;/q1:attributename&gt;&quot;;&lt;/div&gt;
&lt;div&gt;
query += &quot;&lt;q1:operator&gt;Like&lt;/q1:operator&gt;&quot;;&lt;/div&gt;
&lt;div&gt;
query += &quot;&lt;q1:values&gt;&quot;;&lt;/q1:values&gt;&lt;/div&gt;
&lt;div&gt;
query += &quot;&lt;q1:value type=&quot;\&amp;quot;xsd:string\&amp;quot;&quot;&gt;&quot; + splitResult[1] + &quot;&lt;/q1:value&gt;&quot;;&lt;/div&gt;
&lt;div&gt;
query += &quot;&quot;;&lt;/div&gt;
&lt;div&gt;
query += &quot;&quot;;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
query += &quot;&quot;;&lt;/div&gt;
&lt;div&gt;
query += &quot;&quot;;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
query += &quot;&quot; +&lt;/div&gt;
&lt;div&gt;
&quot;&quot; +&lt;/div&gt;
&lt;div&gt;
&quot;&quot; +&lt;/div&gt;
&lt;div&gt;
&quot;&quot;;&lt;/div&gt;
&lt;div&gt;
// Prepare the xmlHttpObject and send the request.&lt;/div&gt;
&lt;div&gt;
var xHReq = new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);&lt;/div&gt;
&lt;div&gt;
xHReq.Open(&quot;POST&quot;, &quot;/mscrmservices/2007/CrmService.asmx&quot;, false);&lt;/div&gt;
&lt;div&gt;
xHReq.setRequestHeader(&quot;SOAPAction&quot;, &quot;http://schemas.microsoft.com/crm/2007/WebServices/RetrieveMultiple&quot;);&lt;/div&gt;
&lt;div&gt;
xHReq.setRequestHeader(&quot;Content-Type&quot;, &quot;text/xml; charset=utf-8&quot;);&lt;/div&gt;
&lt;div&gt;
xHReq.setRequestHeader(&quot;Content-Length&quot;, query.length);&lt;/div&gt;
&lt;div&gt;
xHReq.send(query);&lt;/div&gt;
&lt;div&gt;
var resultXml = xHReq.responseXML;&lt;/div&gt;
&lt;div&gt;
var results = resultXml.getElementsByTagName(&#39;BusinessEntity&#39;);&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
var MultiArray = new Array();&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
for (j = 0; j &amp;lt; results.length; j++) {&lt;/div&gt;
&lt;div&gt;
var ar = new Array();&lt;/div&gt;
&lt;div&gt;
for (var i = 0; i &amp;lt; columns.length; i++) {&lt;/div&gt;
&lt;div&gt;
var columnName = columns[i];&lt;/div&gt;
&lt;div&gt;
ar[columnName] = results[j].selectSingleNode(&#39;./q1:&#39; + columns[i])&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
MultiArray[j] = ar;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
//var name = results[0].selectSingleNode(&#39;./q1:dm_fiscaldateid&#39;).nodeTypedValue;&lt;/div&gt;
&lt;div&gt;
return MultiArray;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/7055622345544470339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2012/03/retrieve-multiple-records-using-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/7055622345544470339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/7055622345544470339'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2012/03/retrieve-multiple-records-using-java.html' title='Retrieve Multiple records using java script  in CRM '/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-7785248496005452062</id><published>2012-03-16T04:13:00.002-07:00</published><updated>2012-03-16T05:02:18.723-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CRM 2011"/><category scheme="http://www.blogger.com/atom/ns#" term="EntityName"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>How to get Current record entity Name in javascript</title><content type='html'>&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;text-align: left; font-size: 14px; line-height: 21px;&quot;&gt;&lt;span &gt;Retrieving current record entity name in javascript.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;span &gt;&lt;span style=&quot;font-size: 14px; line-height: 21px; &quot;&gt;var entityname=Xrm.page.data.entity.getEntityName();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;span  &gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; font-family: Georgia, serif; font-size: 100%; line-height: normal; &quot;&gt;&lt;span &gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; text-align: -webkit-auto; background-color: rgb(102, 187, 51); &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; font-family: Georgia, serif; font-size: 100%; line-height: normal; &quot;&gt;&lt;span &gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; text-align: -webkit-auto; background-color: rgb(102, 187, 51); &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-style: normal; font-variant: normal; font-weight: normal; text-align: -webkit-auto; &quot;&gt;&lt;span  &gt;&lt;span style=&quot;font-size: 14px; line-height: 21px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/7785248496005452062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2012/03/how-to-get-current-record-entity-name.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/7785248496005452062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/7785248496005452062'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2012/03/how-to-get-current-record-entity-name.html' title='How to get Current record entity Name in javascript'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-8814416560504184145</id><published>2012-01-17T06:28:00.002-08:00</published><updated>2012-01-17T07:01:12.538-08:00</updated><title type='text'>Background music for web page</title><content type='html'>Hi All,&lt;br /&gt;This is pretty tag in html.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;bgsound&gt;&lt;/bgsound&gt;&lt;/span&gt; by using this tag we can seta background music for the site.here the synatx is&lt;br /&gt;&quot;&amp;lt;&quot;bgsound src=&quot;smpletest.wmv&quot; loop=&quot;0&quot; vloume=&quot;3&quot; &quot;&amp;gt;&quot;&lt;br /&gt;&lt;bgsound&gt;&lt;/bgsound&gt; is only allowed inside the  element.&lt;br /&gt;The sound file specified in its src attribute.&lt;br /&gt;The file format can be in the .wav, .au, or .mid formats.&lt;br /&gt;&lt;br /&gt;Happy coding...</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/8814416560504184145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2012/01/background-music-for-web-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/8814416560504184145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/8814416560504184145'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2012/01/background-music-for-web-page.html' title='Background music for web page'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-8447066612859835856</id><published>2012-01-12T06:49:00.000-08:00</published><updated>2012-01-12T07:08:55.468-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Copy website into Dynamics CRM"/><title type='text'>Copy website into Dynamics CRM</title><content type='html'>Hi all,&lt;br /&gt;In webportal we need to intigrate website into Dynamics CRM.&lt;br /&gt;here we can go with 3 types of CRM Online, On-premises and IFD.&lt;br /&gt;fisrt we need the Customazation.xml file and website zip content.&lt;br /&gt;Then open your CRM&lt;br /&gt;Follow the steps....&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Settings &gt; Solutions &gt; Import&lt;/span&gt;&lt;br /&gt;select the website zip content and Click on &lt;span style=&quot;font-weight:bold;&quot;&gt; select the showing Check box.&lt;br /&gt;next&lt;/span&gt;&lt;br /&gt;Select Dropdowndown list item for your CRM and give the credentials and Click on &lt;span style=&quot;font-weight:bold;&quot;&gt;Connect &lt;/span&gt; then select Organization from Dropdown list and Click on Next, before that Click on Save button and copy the Connection string for your future purpose. . Click on Next and close.&lt;br /&gt;Click on &lt;span style=&quot;font-weight:bold;&quot;&gt;Publish all&lt;/span&gt; button in CRM and refresh it.&lt;br /&gt; Next and Finsh....&lt;br /&gt;enjoy.....&lt;br /&gt;If have any doubts contact by mail ........</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/8447066612859835856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2012/01/copy-website-into-dynamics-crm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/8447066612859835856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/8447066612859835856'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2012/01/copy-website-into-dynamics-crm.html' title='Copy website into Dynamics CRM'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-7919056662246535378</id><published>2011-12-21T03:33:00.000-08:00</published><updated>2011-12-21T03:36:10.129-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="data migration in CRM using excel"/><category scheme="http://www.blogger.com/atom/ns#" term="Read excel in C#"/><title type='text'>Read excel in C#</title><content type='html'>string excelfile = &quot;Data Source=Account.xls&quot;;&lt;br /&gt;            string xlsstrCon = &quot;Provider = Microsoft.Jet.OLEDB.4.0;&quot;;&lt;br /&gt;            xlsstrCon += excelfile + &quot;;&quot;;&lt;br /&gt;            xlsstrCon += &quot;Extended Properties=Excel 8.0&quot;;&lt;br /&gt;            OleDbDataAdapter da = new OleDbDataAdapter(&quot;select * from  [Sheet1$]&quot;, xlsstrCon);&lt;br /&gt;            DataTable dt = new DataTable();&lt;br /&gt;            da.Fill(dt);&lt;br /&gt;OrganizationServiceProxy _servproxy = getonlineservice();&lt;br /&gt;            foreach (DataRow dr in dt.Rows)&lt;br /&gt;            {&lt;br /&gt; if (_servproxy != null)&lt;br /&gt;                {&lt;br /&gt;                    Entity ent = new Entity();&lt;br /&gt;&lt;br /&gt;                    ent.LogicalName = &quot;new_migrationexcel&quot;;&lt;br /&gt;                    ent.Attributes.Add(&quot;new_name&quot;, &quot;MTC&quot; + cnt.ToString());&lt;br /&gt;&lt;br /&gt;                    ent.Attributes.Add(&quot;new_address1&quot;, Convert.ToString(dr[5]));&lt;br /&gt;                    ent.Attributes.Add(&quot;new_address2&quot;, Convert.ToString(dr[6]));&lt;br /&gt;                    ent.Attributes.Add(&quot;new_address3&quot;, Convert.ToString(dr[7]));}}</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/7919056662246535378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2011/12/read-excel-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/7919056662246535378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/7919056662246535378'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2011/12/read-excel-in-c.html' title='Read excel in C#'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-4471526274264469822</id><published>2011-11-30T06:10:00.000-08:00</published><updated>2011-11-30T06:15:23.858-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="DataTable sorting"/><category scheme="http://www.blogger.com/atom/ns#" term="Grid View"/><title type='text'>DataTable sorting</title><content type='html'>&lt;div&gt;Hi all,&lt;/div&gt;&lt;div&gt;when we are need to sort the the data source before bind to Data Control,&lt;/div&gt;&lt;div&gt;am taking the source into a DataTable and now I can do what ever I want on datatable Default View&lt;/div&gt;&lt;div&gt;here is the my code....&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;am sorting with name Column wise .&lt;/div&gt;&lt;div&gt; dt.DefaultView.Sort = &quot;Name ASC&quot;;&lt;/div&gt;&lt;div&gt;                dtSort = dt.DefaultView.ToTable();&lt;/div&gt;&lt;div&gt;                pds.DataSource = dt.DefaultView;&lt;/div&gt;&lt;div&gt;                dataListBindingPaging();&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Happy!!!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/4471526274264469822/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2011/11/datatable-sorting.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/4471526274264469822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/4471526274264469822'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2011/11/datatable-sorting.html' title='DataTable sorting'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-5507495706258989350</id><published>2011-11-25T11:44:00.000-08:00</published><updated>2011-11-25T12:00:02.065-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SessionStateOFF"/><title type='text'>SessionStateOFF</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Yes,&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;we can off session state for the application.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;If you don&#39;t want to use sessions in your site simply set this line of code in web.config file.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; white-space: pre-wrap; background-color: rgb(255, 255, 255); &quot;&gt;&lt;sessionstate mode=&quot;&amp;lt;/span&quot;&gt;&lt;span class=&quot;code-string&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; text-align: -webkit-auto; white-space: pre-wrap; background-color: rgb(255, 255, 255); color: purple; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); &quot;&gt;&amp;lt; sessionstate mode=&lt;/span&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; text-align: -webkit-auto; white-space: pre-wrap; background-color: rgb(255, 255, 255); color: purple; &quot;&gt;Off&quot;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, mono; font-size: 12px; text-align: -webkit-auto; white-space: pre-wrap; background-color: rgb(255, 255, 255); &quot;&gt; /&amp;gt;&lt;/span&gt;&lt;/sessionstate&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-align: -webkit-auto; background-color: rgb(255, 255, 255); &quot;&gt;&lt;ul style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 13px; white-space: normal; &quot;&gt;&lt;p style=&quot;text-align: justify;font-size: 10pt; &quot;&gt;If parts of your application need session state, identify pages that do not use it and disable it for those pages by using the following page level attribute.&lt;/p&gt;&lt;li style=&quot;text-align: justify;font-size: 10pt; &quot;&gt;Minimizing the use of session state increases the performance of your application.&lt;/li&gt;&lt;li style=&quot;text-align: justify;font-size: 10pt; &quot;&gt;Do you have pages that do not write to a session?&lt;/li&gt;&lt;p style=&quot;text-align: justify;font-size: 10pt; &quot;&gt;Page requests using session state internally use a ReaderWriterLock to manage access to the session state. For pages that only read session data, consider setting EnableSessionState to ReadOnly.&lt;/p&gt;&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;pre lang=&quot;cs&quot; id=&quot;pre2&quot; style=&quot;text-align: justify;padding-top: 6px; padding-right: 6px; padding-bottom: 6px; padding-left: 6px; font: normal normal normal 9pt/normal &#39;Courier New&#39;, Courier, mono; white-space: pre-wrap; overflow-x: auto; overflow-y: auto; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(251, 237, 187); border-right-color: rgb(251, 237, 187); border-bottom-color: rgb(251, 237, 187); border-left-color: rgb(251, 237, 187); word-wrap: break-word; margin-top: 0px; &quot;&gt;&lt;span class=&quot;code-pagedirective&quot; style=&quot;background-color: yellow; &quot;&gt;&amp;lt;%@&lt;/span&gt;&lt;span class=&quot;code-leadattribute&quot; style=&quot;color: rgb(128, 0, 0); &quot;&gt; Page EnableSessionState&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue; &quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;color: blue; &quot;&gt;ReadOnly&quot;&lt;/span&gt;&lt;span class=&quot;code-attribute&quot; style=&quot;color: red; &quot;&gt; . . .&lt;/span&gt;&lt;span class=&quot;code-pagedirective&quot; style=&quot;background-color: yellow; &quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;font-family: Verdana, Arial, sans-serif; font-size: 13px; &quot;&gt;&lt;p style=&quot;text-align: justify;font-size: 10pt; &quot;&gt;This is particularly useful when you use HTML frames. The default setting (due to ReaderWriterLock) serializes the page execution. By setting it to ReadOnly, you prevent blocking and allow more parallelism.&lt;/p&gt;&lt;li style=&quot;text-align: justify;font-size: 10pt; &quot;&gt;Do you check for nulls before accessing items in session state?&lt;/li&gt;&lt;p style=&quot;text-align: justify;font-size: 10pt; &quot;&gt;You can improve performance by checking for null before accessing the item, as shown in the following code.&lt;/p&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/5507495706258989350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2011/11/sessionstateoff.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/5507495706258989350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/5507495706258989350'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2011/11/sessionstateoff.html' title='SessionStateOFF'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-2776937889109306041</id><published>2011-11-16T04:23:00.000-08:00</published><updated>2011-11-16T04:35:16.620-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Telerik RadListView"/><title type='text'>Telerik RadListView Repeat columns</title><content type='html'>&lt;div&gt;&lt;br /&gt;Hi,&lt;div&gt;I am using RadListview to bind DB data and we can&#39;t repeat columns as Daatalist,So for that,&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAlzAjqM_C5uaoeNcaqygAdoE3FoUc6zlfZH2n1GC8Hxk3Cbt6iG7pMZ_Sm2b7PVd3sJvPh9-qtte14svdxkee3JsmaPQhqAFCKQLeUEw6LEOK9EjyP1VxbHiDrDavhyTNHoLqolNpPjcn/s1600/RadListView.png&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 155px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAlzAjqM_C5uaoeNcaqygAdoE3FoUc6zlfZH2n1GC8Hxk3Cbt6iG7pMZ_Sm2b7PVd3sJvPh9-qtte14svdxkee3JsmaPQhqAFCKQLeUEw6LEOK9EjyP1VxbHiDrDavhyTNHoLqolNpPjcn/s400/RadListView.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5675571175346698706&quot; /&gt;&lt;/a&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/2776937889109306041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2011/11/telerik-radlistview-repeat-columns.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/2776937889109306041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/2776937889109306041'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2011/11/telerik-radlistview-repeat-columns.html' title='Telerik RadListView Repeat columns'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAlzAjqM_C5uaoeNcaqygAdoE3FoUc6zlfZH2n1GC8Hxk3Cbt6iG7pMZ_Sm2b7PVd3sJvPh9-qtte14svdxkee3JsmaPQhqAFCKQLeUEw6LEOK9EjyP1VxbHiDrDavhyTNHoLqolNpPjcn/s72-c/RadListView.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-4255775497566713379</id><published>2011-11-13T10:42:00.000-08:00</published><updated>2011-11-13T11:14:22.230-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="webservices in asp.net"/><title type='text'>writing webservice and consume it</title><content type='html'>Hi friends,&lt;div&gt;am happy to give a small introduction about web services.&lt;/div&gt;&lt;div&gt;we can create a web service very easily  in vs .net.&lt;/div&gt;&lt;div&gt;How to create a your own web service?&lt;/div&gt;&lt;div&gt;go to File&amp;gt;New Website&amp;gt;Add Item&amp;gt;web Service(select Template)&lt;/div&gt;&lt;div&gt;There you can find Public Service() method and &lt;/div&gt;&lt;div&gt;[web method]&lt;/div&gt;&lt;div&gt;public Helloworld(){return &quot;helloworld&quot;};&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;this is sample web service given by Micro Soft.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;in helloworld method you can write your own logic Like Add,Sub..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;what am trying to do here is am taking a string array&lt;/div&gt;&lt;div&gt;string [] whishes=new string[5];&lt;/div&gt;&lt;div&gt;public service(){  &lt;/div&gt;&lt;div&gt;whishes[0]=&quot;happy Birthday to you Friend&quot;;&lt;/div&gt;&lt;div&gt;whishes[1]=&quot;happy Christmas&quot;;&lt;/div&gt;&lt;div&gt;whishes[2]=&quot;happy Diwali&quot;;&lt;/div&gt;&lt;div&gt;whishes[3]=&quot;happy vinayaka chavithi&quot;;&lt;/div&gt;&lt;div&gt;whishes[4]=&quot;happy ramjan byya..&quot;;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;am changing helloworld method to&lt;/div&gt;&lt;div&gt;public GetWhishes()&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;//here am playing alogic to get a random whishes any every time on Refresh the browser&lt;/div&gt;&lt;div&gt;Random rm=new Random()&lt;/div&gt;&lt;div&gt;int value=(int)Math.Floor(rm.NextDouble * whishes.Length())&lt;/div&gt;&lt;div&gt;return whishes[value];&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;that&#39;s it..&lt;/div&gt;&lt;div&gt;Build it..&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Now go to your .aspx page take a label/texbox  Then right click on Soution Add Webrefrence&lt;/div&gt;&lt;div&gt;here you can find a window you will find 3 links, Select webservices in this soultion then u can see GetWhishes() in right side pane web service Name(locallhost),give  your service name &lt;/div&gt;&lt;div&gt;am giving as mywebservice&lt;/div&gt;&lt;div&gt;Click on Add Service.&lt;/div&gt;&lt;div&gt;ok&lt;/div&gt;&lt;div&gt; goto aspx.cs&lt;/div&gt;&lt;div&gt;create a object for the added web service   &lt;/div&gt;&lt;div&gt;in Page_Load()&lt;/div&gt;&lt;div&gt;if your using VS 2005&lt;/div&gt;&lt;div&gt;mywebservice.service sampleobj=new mywebservice.service();&lt;/div&gt;&lt;div&gt;label1.Text=sampleobj.GetWhishes();&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;if you are using VS 2010&lt;/div&gt;&lt;div&gt;&lt;div&gt;mywebservice.webservice sampleobj=new mywebservice.webservice();&lt;/div&gt;&lt;div&gt;label1.Text=sampleobj.GetWhishes();&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Bulid after sucessfully build Run it&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;O/P: happy ramjan bayya.....!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Write your comments on this post...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;on this video will coming soon....&lt;/div&gt;&lt;div&gt;All the Best@&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/4255775497566713379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2011/11/writing-webservice-and-consume-it.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/4255775497566713379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/4255775497566713379'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2011/11/writing-webservice-and-consume-it.html' title='writing webservice and consume it'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-2400557256301356348</id><published>2011-11-12T07:55:00.000-08:00</published><updated>2011-11-13T08:40:17.327-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Stored Procedure Return"/><title type='text'>StoredProcedure return view</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(255, 255, 255); &quot;&gt;Hi,Guys I am going 2 talk what storedprocedure return.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(255, 255, 255); &quot;&gt;I have a SQL Server stored procedure that is returning a 0 if the&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); &quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;execution was OK and 1 if not.&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(255, 255, 255); &quot;&gt;I am trying to capture this return value in my C# &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(255, 255, 255); &quot;&gt;what you should do is create a parameterized command.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(255, 255, 255); &quot;&gt;and attach a parameter where the Direction property&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); &quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;is ParameterDirection.ReturnValue.&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(255, 255, 255); &quot;&gt;This parameter will then get the return&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); &quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;value result.&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span style=&quot;white-space: nowrap; background-color: rgb(255, 255, 255); font-size: medium; &quot;&gt;SqlParameter retval = cmd.Parameters.Add&lt;/span&gt;&lt;span style=&quot;white-space: nowrap; background-color: rgb(255, 255, 255); font-size: medium; &quot;&gt;(&lt;/span&gt;&lt;span style=&quot;white-space: nowrap; background-color: rgb(255, 255, 255); font-size: medium; &quot;&gt;&quot;return_value&quot;&lt;/span&gt;&lt;span style=&quot;white-space: nowrap; background-color: rgb(255, 255, 255); font-size: medium; &quot;&gt;, SqlDbType.Int&lt;/span&gt;&lt;span style=&quot;white-space: nowrap; background-color: rgb(255, 255, 255); font-size: medium; &quot;&gt;)&lt;/span&gt;&lt;span style=&quot;white-space: nowrap; background-color: rgb(255, 255, 255); font-size: medium; &quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: nowrap; background-color: rgb(255, 255, 255); font-size: medium; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;retval.Direction = ParameterDirection.ReturnValue;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: nowrap; background-color: rgb(255, 255, 255); font-size: medium; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;(or)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(250, 250, 250); color: rgb(49, 60, 70); font-family: Arial, Helvetica, sans-serif; line-height: 16px; text-align: -webkit-auto; &quot;&gt;cmd.Parameters.Direction = &lt;/span&gt;&lt;span style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(250, 250, 250); font-family: Arial, Helvetica, sans-serif; line-height: 16px; text-align: -webkit-auto; &quot;&gt;ParameterDirection&lt;/span&gt;&lt;span style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(250, 250, 250); color: rgb(49, 60, 70); font-family: Arial, Helvetica, sans-serif; line-height: 16px; text-align: -webkit-auto; &quot;&gt;.Output;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(250, 250, 250); color: rgb(49, 60, 70); font-family: Arial, Helvetica, sans-serif; line-height: 16px; text-align: -webkit-auto; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(250, 250, 250); color: rgb(49, 60, 70); font-family: Arial, Helvetica, sans-serif; line-height: 16px; text-align: -webkit-auto; &quot;&gt;I think it will helps you...!&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/2400557256301356348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2011/11/storedprocedure-return-view.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/2400557256301356348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/2400557256301356348'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2011/11/storedprocedure-return-view.html' title='StoredProcedure return view'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-8390278472722460118</id><published>2011-11-12T07:20:00.000-08:00</published><updated>2011-11-12T07:22:11.565-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ExecuteReader ExecuteNonQuery ExecuteScalar"/><title type='text'>Difference among ExecuteReader.ExecuteNonQuery andExecuteScalar   and</title><content type='html'>&lt;ul style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 24px; margin-left: 1.5em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; list-style-type: square; list-style-position: initial; list-style-image: initial; color: rgb(51, 51, 51); font-family: Georgia, &#39;Bitstream Charter&#39;, serif; line-height: 24px; text-align: -webkit-auto; &quot;&gt;&lt;li style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;strong style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; font-weight: bold; background-position: initial initial; background-repeat: initial initial; &quot;&gt;ExecuteReader &lt;/strong&gt;: Use for accessing data. It provide a forward-only, read-only, connected recordset.&lt;/li&gt;&lt;li style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;strong style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; font-weight: bold; background-position: initial initial; background-repeat: initial initial; &quot;&gt;ExecuteNonQuery &lt;/strong&gt;: Use for data manipulation, such as Insert, Update, Delete.&lt;/li&gt;&lt;li style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; background-position: initial initial; background-repeat: initial initial; &quot;&gt;&lt;strong style=&quot;background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; vertical-align: baseline; font-weight: bold; background-position: initial initial; background-repeat: initial initial; &quot;&gt;ExecuteScalar &lt;/strong&gt;: Use for retrieving 1 row 1 col. value.,i.e, Single value. eg: for retrieving aggregate funtion. It is faster than other ways of retrieving a single value from DB&lt;/li&gt;&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/8390278472722460118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2011/11/difference-among-executereaderexecuteno.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/8390278472722460118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/8390278472722460118'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2011/11/difference-among-executereaderexecuteno.html' title='Difference among ExecuteReader.ExecuteNonQuery andExecuteScalar   and'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2570382629577518804.post-36765492360534305</id><published>2011-11-05T05:28:00.000-07:00</published><updated>2011-11-13T11:33:02.606-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Gtalk"/><title type='text'>Multiple Gtalk instantaneous on your PC</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Hi all,&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Right Click on Gtalk instantaneous&amp;gt;Properties&amp;gt;Target change target path to&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt; &quot;C:\Users\NARESH\AppData\Roaming\Google\Google Talk\googletalk.exe&quot; /nomutex&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: georgia; &quot;&gt;now u can access multiple Gtalk a/c&#39;s...&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: georgia; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: georgia; &quot;&gt;Hurry!.. u Got it!!!&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://veginatidotnet.blogspot.com/feeds/36765492360534305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://veginatidotnet.blogspot.com/2011/11/multiple-gtalk-instantaneous-on-your-pc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/36765492360534305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2570382629577518804/posts/default/36765492360534305'/><link rel='alternate' type='text/html' href='http://veginatidotnet.blogspot.com/2011/11/multiple-gtalk-instantaneous-on-your-pc.html' title='Multiple Gtalk instantaneous on your PC'/><author><name>Naresh Veginati</name><uri>http://www.blogger.com/profile/04156358315159164338</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>