답변됨 List with a column that looks up from CRM 2011

  • 2012년 8월 17일 금요일 오후 10:30
     
     

    I have a SharePoint site and I would like to be able to create a list of which one column will be linked to a customer account.

    I have seen products that sync data (not really what I want as the CRM will be the single data source), and I have also seen some pretty heavy code in the form of plugins - can anyone recommend a solution that involves a built in lookup wizard or if code is required is minimal?

    Thanks in advance,

    Chris

모든 응답

  • 2012년 8월 18일 토요일 오전 7:22
     
     답변됨 코드 있음

    Hello Chris,

    For this you need to do following things :
    1.First you need to create WCF service which interact with CRM API,We can't access CRM API in SharePoint application due to compatibility reasons (SharePoint built on .Net 3.5 and CRM API built on 4.0) so we need to create WCF service.

    2.After that you need to take instance of web service and call function :

     ServiceReference1.ABCOrganizationServiceClient proxy = new ServiceReference1.KrmOrganizationServiceClient(binding, remoteAddress);
                    proxy.Open();
    
                    ABCCompanyProfile[] AccountCompanyInformation = proxy.Get_Contact_Account(key.Contact_ID.ToString());
                    proxy.Close();
    
                    if (AccountCompanyInformation.Length > 0)
                    {
                        keysABCUserProfile = proxy.GetEmployeesByCompanyId(key.ABC_this_company_pays.ToString());
    
                        if (keysABCUserProfile != null && keysABCUserProfile.Length > 0)
                        {
                            ddlEmployeeName.Items.Insert(0, " Select Participant ");
                            ddlEmployeeName.DataSource = keysSteerUserProfile.ToList<SteerUserProfile>();
                            ddlEmployeeName.DataTextField = "firstname";
                            ddlEmployeeName.DataValueField = "Contact_ID";
                            ddlEmployeeName.DataBind();
                        }
                    }

    Hope it will helpful for you.


    Mukesh Ajmera| LinkedIn | http://mukeshajmera.wordpress.com/|

    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

  • 2012년 8월 20일 월요일 오전 11:37
     
     

    Hi Chris,

    Hi,
    additionally to the one from  Mukesh Ajmera please take a look at this article Integrating Dynamics CRM Data into SharePoint 2010


    Dmitry

    Lightning Tools LogoLightning Tools Check out our SharePoint tools and web parts | Lightning Tools Blog

  • 2012년 8월 22일 수요일 오전 5:41
    중재자
     
     답변됨

    the simplest approach would be create an external content type for CRM customer table(or view). And create a column of type External Data in SharePoint list to pick the CRM customer.

    The link Dmitry post says to create a lookup column to external list, hope it's just a typo.