Hi,
Found out two good article to solve the above problem
http://support.microsoft.com/kb/916165
Bye..
Hi,
Found out two good article to solve the above problem
http://support.microsoft.com/kb/916165
Bye..
Hi,
In callouts in CRM 3.0, for providing configuration information we used to create our own config file.
The naming convention that we used to follow was
AssemblyName.dll.Config
And we used to deploy it at the same location as callout i.e. server/bin/assembly
The structure of the config file used to be
<?xml version=”1.0″ encoding=”utf-8″ ?>
<config>
<crmurl>http://servername:5555/mscrmservices/2006/crmservice.asmx</crmurl>
<loglocation>C:\CrmLog\PluginLog.txt</loglocation>
</config>
To read the config values in the callout we used to have this following code
string assemblyLocation=System.Reflection.Assembly.GetExecutingAssembly().Location;
string crmUrl=GetConfigValue(assemblyLocation,”crmurl”);
The GetConfigValue function
private static string GetConfigValue(string AssemblyName,string KeyValue)
{
string Filename=AssemblyName+”.config”;
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(Filename);
XmlNode crmNode = xmlDoc.SelectSingleNode(“//”+KeyValue);
string tagValue=crmNode.InnerText.ToString();
return tagValue;
}
Actually I was working with callouts after so many months, so thought i should save the above information for future reference!!
Bye…
Hi,
I was occasionally getting this error while trying to open pages within CRM.
This post by helped me solve the issue
http://billoncrmtech.blogspot.com/2008/10/sql-timeouts-in-crm-generic-sql-error.html
Key to change (or add if not there) of type DWORD
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM\OLEDBTimeout
Bye..
Hi,
I got this error while developing a post update callout for CRM 3.0.
The reason for this could be because the Network Service account under which CRM runs may not have appropriate rights for that.
One possible solution is to right click the assembly -> Properties –> Security tab –> Add Network Service account and give it appropriate rights.
That’s it..
Hi,
I never thought creating a dependent picklist in CRM 4.0 could be that easy.
Just download this tool
Microsoft Dynamics CRM Demonstration Tools (for Microsoft Dynamics CRM 4.0)After connecting, click on the Dependent Picklist on the left navigation bar,
Select an entity, and primary and related picklist,
Select an option in primary picklist and check the boxes for the related picklist options and click on map,
same way map other options as well.
Once done, click on get scripts button, we’ll get the onload and onchange code which we need to just copy paste in the form !
That’s it…
Hi while searching for the same,
got the following javascript
q = location.search;
getParam = function(arg) {
if (q.indexOf(arg) >= 0) {
var pntr = q.indexOf(arg) + arg.length + 1;
if (q.indexOf(‘&’, pntr) >= 0) {
return q.substring(pntr, q.indexOf(‘&’, pntr));
} else {
return q.substring(pntr, q.length);
}
} else {
return null;
}
}
var objectId = getParam(‘oId’);
alert(objectId);
or better
function querySt(ji) {
hu = window.location.search.substring(1);
gy = hu.split(“&”);
for (i=0;i<gy.length;i++) {
ft = gy[i].split(“=”);
if (ft[0] == ji) {
return ft[1];
}
}
}
var pId= querySt(“pId”);
alert(pId);
Here oId is the query string parameter whose value we need.
This works even if there are multiple query string parameters !
Bye…