首页 文章

身份验证后导航到Dynamic CRM主页

提问于
浏览
0

我需要在外部登录身份验证后导航到动态CRM主页面 .

http://msdn.microsoft.com/en-us/library/hh675404.aspx

我已经成功地检索了loged用户的详细信息,但我不知道如何从我的外部页面重定向到主页面 . 下面是我的代码的一部分 .

// This statement is required to enable early-bound type support.
                organizationProxy.EnableProxyTypes();

                // Now make an SDK call with the organization service proxy.
                // Display information about the logged on user.
                Guid userid = ((WhoAmIResponse)organizationProxy.Execute(
                    new WhoAmIRequest())).UserId;
                SystemUser systemUser = organizationProxy.Retrieve("systemuser", userid,
                    new ColumnSet(new string[] { "firstname", "lastname" })).ToEntity<SystemUser>();
                Response.Write("Logged on user is {0} {1}."+
                    systemUser.FirstName+" "+ systemUser.LastName);
                Response.Redirect("https://redrocksoftware.crm5.dynamics.com/default.aspx");

Response.Redirect导航回登录页面 .

1 回答

  • 0

    你问的是奇怪的 . 您提到的文章描述了从客户端软件检索对CRM Web服务的访问 . 但浏览器身份验证绝对不同 . 如果要在浏览器中进行身份验证,则应在登录窗口中输入凭据 .
    您可以找到一些有用的信息here

相关问题