【问题标题】:Navigating to Dynamic CRM home page after authentication身份验证后导航到 Dynamic CRM 主页
【发布时间】:2013-04-11 03:24:56
【问题描述】:

外部登录验证后,我需要导航到动态 CRM 主页。

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

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

 // 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 导航回登录页面。

【问题讨论】:

    标签: azure dynamics-crm-2011 dynamics-crm dynamics-crm-online


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-17
      • 2017-09-11
      • 1970-01-01
      • 2013-12-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多