Freigeben über


Source Code from my TechEd OSP309 Session

Below you'll find the source code for various demos I used during my OSP309 session at TechEd NA 2011.

These source code projects are provided as-is and are for temporary reference only without any support. They will be removed shortly and the final versions will be posted on MSDN Code Gallery. The link to the Code Gallery Projects will be available in this blog post as soon as they're published.

OSP309 Source Code.zip

Comments

  • Anonymous
    May 18, 2011
    Downloaded your source and ran into a bug.. the constants in the CRMOnlineCOnnector (show below) are different than the property values gen'd in the xml file for the BDC application public class CRMOnlineConnector : ISystemUtility, IAdministrableSystem    { const string crmProxyServiceUrlPropertyName = "CRMProxyServiceReferenceUrl";        const string crmServerPropertyName = "CRMServer"; //the need to be changed to this - or update the xml values gend for the bdc file to import        const string crmProxyServiceUrlPropertyName = "CRMProxyServiceUrl";        const string crmServerPropertyName = "CRMServerUrl";

  • Anonymous
    November 14, 2011
    The /createdevicecredentials switch doesn't exist on the crmbcsutil.exe command.  How do you generate the required device credentials?  I was following the directions in the provide word document in the zip file.  Thanks!

  • Anonymous
    November 14, 2011
    Mike, I'll investigate it when I get a chance. The code is essentially using the DeviceIdManager class to create the device credentials. You can modify the code to do it pretty easily. Please see here for reference: msdn.microsoft.com/.../gg328147.aspx You can also use this tool (created by one of our MVPs) to create the device credentials: archive.msdn.microsoft.com/.../ProjectReleases.aspx. Thanks, -Girish.

  • Anonymous
    November 22, 2011
    The comment has been removed

  • Anonymous
    November 23, 2011
    I was able to solve the import failed issue.  For some reason all the .DLLs did not get put into the GAC during the .wsp upload.  I copied both CRMEntityService.SharePoint and CRMEntityService.SharePoint.Connector dlls into the GAC and then did a iisreset on all the sharepoint servers and it worked. Now the only issue is that I'm getting all the records back that I think I should be.  So I'm looking into what might be causing records to be filtered. Otherwise this thing is pretty cool.  Sure hope it gets more support moving forward.

  • Anonymous
    November 23, 2011
    Glad that you're able to get it working Mike. Regarding the list of records, we're doing a simple pull of data for the current user. You can certainly modify the query to bring the data you need. Thanks, -Girish.

  • Anonymous
    November 23, 2011
    Looks like there is a limit filter setup by default that only retreives 30 rows which is causing the result.  Anyway should be able to remove this from the bdcm file and be good to go.

  • Anonymous
    December 07, 2011
    The comment has been removed

  • Anonymous
    December 07, 2011
    The comment has been removed

  • Anonymous
    January 25, 2012
    The generated BCDM appears to have some superfluous tags, I had to remove all instances of <TypeDescriptors/> for the BCDM file to pass validation.

  • Anonymous
    February 08, 2012
    The comment has been removed

  • Anonymous
    February 09, 2012
    I checked out the ULS logs and there seems to be some exception in the CRMEntityService.SharePoint.Connector.CRMOnlineConnector.ExecuteStatic method. I just uploaded the logs here on <a href="pastebin.com/.../a>. Can you go through it once and tell me where exactly things are going wrong?

  • Anonymous
    February 09, 2012
    The comment has been removed

  • Anonymous
    September 16, 2012
    How to implement the security trim in the search results for the external conten source. Using the above connector i have created a ECT and searching fine. But i need to implent the securit part - how to implement the checkaccess or securitydescriptor methond in the bdcm file for the above connector. is there any articles to follow up by steps.  

  • Anonymous
    October 11, 2012
    Is there a way to filter the results in the finder with a wildcard filter? Today we have 500 accounts and only the first 30 is retrieved. I tried changing the limit filter, but SharePoint still limits it to 200.

  • Anonymous
    November 13, 2012
    The comment has been removed

  • Anonymous
    November 19, 2012
    @Kevin, Can you try changing the list of entities/attributes for which you are generating the model. I'm not sure what the culprit might be.

  • Anonymous
    December 11, 2012
    Hi Girish, I am unable to authenticate the CRM Online. I am getting the following error "Error: An unsecured or incorrectly secured fault was received from the other party.". Do you have any idea?

  • Anonymous
    April 22, 2013
    The comment has been removed

  • Anonymous
    June 12, 2013
    The comment has been removed

  • Anonymous
    October 17, 2013
    Hi Girish, I cannot run your code because the solution is not under source control: I would have to connect to your server. Can you tell me how to do it? Hereafter the error message I got. TF400324: Team Foundation services are not available from server wlgtfs2.intergen.org.nz. Technical information (for administrator):  The remote name could not be resolved: 'wlgtfs2.intergen.org.nz'

  • Anonymous
    November 05, 2013
    Francois, You should be able to disconnect it from TFS using visual studio. Unfortunately I don't have an environment at the moment to do that and repost the code.

  • Anonymous
    January 23, 2014
    Hi Girish, This project has support for CRM field type "Option Set"? Can you give an exemple of the xml file including one entity with one field of this type? Thanks.