外部登录身份验证后,我需要导航到动态 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 导航回登录页面。