CRM 2011 data missing in service - dynamics-crm-2011

I am adding a service reference in VS.NET 2010 using
http://[orgname].api.crm.dynamics.com/XrmServices/2011/Organization.svc?wsdl
URL but it doesn't get the entities from the CRM, just get rest of the information
so how do it add reference to it, i have checked
http://bingsoft.wordpress.com/2010/10/21/crm-2011-beta-discovery-and-web-service-urls/

Have you tried using the crmsvcutil tool. http://msdn.microsoft.com/en-us/library/ff681561.aspx

Here you can find the steps (they are pretty straightforward) you need to follow to work with your CRM Online instance. You use the crmsvcutil.exe tool to generate the metadata of your organization.

Related

ILMerge with CRM plugin and Sharepoint Online

I am trying to us ILMerge via nuget to merge two SharePoint assemblies in to my plugin dll. The assemblies are;
Microsoft.SharePoint.Client (v16.1)
Microsoft.SharePoint.Client.Runtime (v16.1)
They seem to successfully merge in to my single plugin dll and i can see the required classes etc if I inspect the dll with JustDecompile.
When debugging the plugin, it throws a security exception;
Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0
The code successfully steps over the creation of 'ClientContext()' which is located in the Microsoft.SharePoint.Client dll, but then fails when it reaches the 'new SharePointCredentials()' line which is held in the Microsoft.SharePoint.Client.Runtime dll.
using (var srcContext = new ClientContext(url))
{
srcContext.Credentials = new SharePointOnlineCredentials(username, securePassword);
I am stuck as to why this might be happening. It is Dynamics 365 online and SharePoint online. The credentials supplied to the constructor are correct. Any pointers would be greatly appreciated. I really don't want to have to create a web service instead of ILMerging the SharePoint dlls.
This is almost undoubtedly related to the to the method being called requiring permissions that Dynamics 365 Online does not allow. That is usually the cause of a System.Security.Permissions.SecurityPermission error in a Plugin/Workfrom running in Dynamics 365 Online.
It's been a longtime, but if memory serves me correctly the SharePoint client libraries do not work in Dynamics 365 sandbox plugins (and all online plugins are in the sandbox.)
Unless you can find a way to make the calls without the libraries, using the SharePoint REST API, you'll have to either create a web service or (in my opinion the preferable if possible solution is to) use Azure Service Bus to handle the execution.
As Nick says, unfortunatelly Sharepoint.client.dll will throw you a “System.Security.SecurityException: That assembly does not allow partially trusted callers” error even if you use ILMerge to deploy it.
It is a limitation from Sandbox and there is nothing we can do until Microsoft deals with this.
But for the time being, the best way is to do oldschool httprequests as explained here: https://code.msdn.microsoft.com/SharePoint-Integration-c5f21604
Good Luck!

I have found a bug in the Microsoft Dynamics CRM SDK - how and where to report?

So, I believe I have found a bug in the Microsoft.Xrm.Client.dll which is shipped as part of the Microsoft Dynamics CRM SDK.
My question is, is there a correct procedure for reporting bugs with the SDK and what is it?
At the moment I have posted something here: https://community.dynamics.com/crm/f/117/t/144464.aspx but I am not sure this is the correct place?
Official place for bugs in Microsoft products is Microsoft Connect site.
Go to http://connect.microsoft.com/directory/?keywords=dynamics+crm, press "Join" link in the corresponding line.
Product support is available direct from Microsoft, with different ontact points if this is an on-premises installation, CRM Online, or for developers with an MSDN subscription.

Pulling CRM 2011 data into Sharepoint 2013 using a webpart?

I've been hunting all day trying to find some good examples/tutorials on how to pull data into Sharepoint 2013 from CRM 2011. The best thing I have found so far is a SP2010 example, but with VS2012 and SP2013 it seems like so much has changed, and trying to make that tutorial work isn't going well thus far.
I have no experience with SP; with CRM I have used the CrmSvcUtil.exe in the past to generate a class and use that within a .NET app in order to view/update data in CRM. I tried implementing this into my Visual Web Part, but I need to be able to add connection strings to the config file which it doesn't seem are recognized by the web part. I see that I can add a service reference to the CRM Organization service but I'm not sure if/how I can use that to query data. Any help is appreciated, or if anyone could point me in the direction of some good documentation. Thanks!
You have got couple of options.
(1) Use SharePoint 2013 client API.
Consume the client API from your CRM plugin / custom workflow to update the crm data to SharePoint 2013.
(2) Consume SharePoint 2013 webservices from CRM plugin / custom workflow.
I don't think this works in sandbox based solution.

Importing Solution from Dynamic CRM Online Trial to Dynamic CRM On-Premise, activity feed issue

I sign up for Dynamic CRM online trial (30 days) and create an unmanaged custom solution (new fields, some custom entities, etc). Now, I want to export the unmanaged solution and import it to my Dynamic CRM On-Premise 2011 in my server (already get the latest rollup).
However, the solution is failed to be imported. The error message said that:
Import of solution * failed. The following components are missing
in your system and are not included in the solution...
There are two missing components shown. Both are web resource type, with name/Id: msdyn_/ActivityFeeds.Form.Js and msdyn_/RecordWall.htm and both are ActivityFeedsCore (1.0.5.3403) managed solution.
From what I've researched, (please correct me if I'm wrong), the problem is on the Dynamic CRM online Activity Feeds managed solution are already installed and in the Dynamic CRM on-premise, it isn't.
What should I do to be able to import the unmanaged solution without importing the Activity Feeds managed solution?
You need to use solutiondownlevelutility.exe included in the latest CRM 2011 SDK.
You can find a guide on MSDN:
http://msdn.microsoft.com/en-us/library/jj945276.aspx
Another option would be to:
- Import the Activity Feeds.
- Import your unmanaged solution.
- Delete the Activity Feeds.
You can find the activity feeds solution here : http://pinpoint.microsoft.com/en-gb/applications/microsoft-dynamics-crm-activity-feeds-12884926310
Thanks,
Mario

How to write into Crm 2011 Entity from Sharepoint Web part

I'm trying to build a Web part that takes data from Ui and write them into a Crm 2011 entity.
Does anybody know if is it even possible and by which ways?
Thanks!
You could take a look at using BCS:
Connecting SharePoint Online and CRM Online using BCS - 2013 Edition
Still not really seamless because you still need an intermediary application. The example only shows pulling CRM data into SharePoint but I believe it is supposed to be able to push data back as well.

Resources