Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 9244

Navigating to Dynamic CRM home page after authentication

$
0
0

I need to navigate to dynamic CRM main page after external login authentication.

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

I have successfully able to retrieve the loged user details but i dont know how to redirect to the main page from my external page. below is part of my code.

Response.Redirect navigate back to the login page.

// 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");



Viewing all articles
Browse latest Browse all 9244

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>