public static void SLXSocial_OnCreate( ITicketProblemType ticketproblemtype)
 {
     var appCtx = Sage.Platform.Application.ApplicationContext.Current.Services.Get<Sage.Platform.Application.IContextService>();
     if(appCtx.HasContext("NewEntityParameters")){
         var entityParams = appCtx["NewEntityParameters"] as System.Collections.Generic.Dictionary<String,String>;
         if(entityParams != null) {
             ticketproblemtype.Description = (String)entityParams["ProblemDescription"];
             ticketproblemtype.Notes = (String)entityParams["ProblemNotes"];
         }
         appCtx.RemoveContext("NewEntityParameters");
     }
 }
        public static void SLXSocial_OnCreate(ITicketProblemType ticketproblemtype)
        {
            var appCtx = Sage.Platform.Application.ApplicationContext.Current.Services.Get <Sage.Platform.Application.IContextService>();

            if (appCtx.HasContext("NewEntityParameters"))
            {
                var entityParams = appCtx["NewEntityParameters"] as System.Collections.Generic.Dictionary <String, String>;
                if (entityParams != null)
                {
                    ticketproblemtype.Description = (String)entityParams["ProblemDescription"];
                    ticketproblemtype.Notes       = (String)entityParams["ProblemNotes"];
                }
                appCtx.RemoveContext("NewEntityParameters");
            }
        }