Answered by:
How do a Connection with CRM 2011

Question
-
Hey guys I did a aspx page but I dont have any ideia how to connect with crm when I click on a button I need to create a record, I already saw the PluginRegistrationTool code and SOAPLogger but I cant do this :(
how can I create this web config ? and what I need to do to create a record because on CRM 4.0 I used to use "DynamicEntity" on CRM 2011 what I need to do ?
thanks
Monday, September 26, 2011 6:04 PM
Answers
-
Hi,
You do not need to use the Plugin Registration tool code or SOAP logger, it depends form where youa re tryign to access the CRM Webservice
You may refer to the following Url if you are developing an ASP.Net webpage to Console/windows application to make a conneciton with Dynamics CRM:
http://msdn.microsoft.com/en-us/library/gg695790.aspx#generate
For Plugin Development you may refer: http://msdn.microsoft.com/en-us/library/gg328490.aspx
For Creating, Retrieveing, Deleting, Updating a record via JScript you may refer: http://msdn.microsoft.com/en-us/library/gg334427.aspx
Jehanzeb Javeed
http://worldofdynamics.blogspot.com
Linked-In Profile |CodePlex Profile
If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
- Proposed as answer by Jehanzeb.Javeed Monday, September 26, 2011 6:37 PM
- Edited by Jehanzeb.Javeed Monday, September 26, 2011 6:39 PM
- Marked as answer by Jamie MileyModerator Tuesday, March 6, 2012 2:56 PM
Monday, September 26, 2011 6:36 PM
All replies
-
The soaplogger and plugin registration tool both use the crmhelpers.cs file which has most of the information for making the connection to CRM and instatiating the service instance you will use.
Once you get the service object instantiated you can use the syntax for your calls similar to what I have done in my blog. Here is a list of examples from my blog: http://mileyja.blogspot.com/p/microsoft-dynamics-crm-2011-sdk-index.html
You can use CrmSvcUtil.exe that comes with the SDK to create strongly typed objects for your instance:
http://msdn.microsoft.com/en-us/library/gg695820.aspx
http://msdn.microsoft.com/en-us/library/gg327844.aspx
or you can just use Entity instead of DynamicEntity in 2011
http://msdn.microsoft.com/en-us/library/gg309272.aspx
This should help!
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!Monday, September 26, 2011 6:33 PMModerator -
Hi,
You do not need to use the Plugin Registration tool code or SOAP logger, it depends form where youa re tryign to access the CRM Webservice
You may refer to the following Url if you are developing an ASP.Net webpage to Console/windows application to make a conneciton with Dynamics CRM:
http://msdn.microsoft.com/en-us/library/gg695790.aspx#generate
For Plugin Development you may refer: http://msdn.microsoft.com/en-us/library/gg328490.aspx
For Creating, Retrieveing, Deleting, Updating a record via JScript you may refer: http://msdn.microsoft.com/en-us/library/gg334427.aspx
Jehanzeb Javeed
http://worldofdynamics.blogspot.com
Linked-In Profile |CodePlex Profile
If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
- Proposed as answer by Jehanzeb.Javeed Monday, September 26, 2011 6:37 PM
- Edited by Jehanzeb.Javeed Monday, September 26, 2011 6:39 PM
- Marked as answer by Jamie MileyModerator Tuesday, March 6, 2012 2:56 PM
Monday, September 26, 2011 6:36 PM