Unified Service Desk – Logged in user details in Hosted controls

Hi, You may need Logged in user details for different purposes in hosted controls. Here is the way to get them from replaced parameters. // This will give you actual logged in customer var customer = (Microsoft.Crm.UnifiedServiceDesk.Dynamics.DynamicsCustomerRecord)localSession.Customer.DesktopCustomer; Dictionary<string, CRMApplicationData> userInfo = null; if (!customer.CapturedReplacementVariables.TryGetValue(“$User”, out userInfo)) return; CRMApplicationData fullname = null; if (!userInfo.TryGetValue(“fullname”, out fullname))Continue reading “Unified Service Desk – Logged in user details in Hosted controls”