Lazy again - anyone know what I could use instead of SessionMod.Login?

For the curious, this is my code block in the BPM. (Yes, I did a code block; I guess I cringed at the 5 nested if statements that would be the alternative.) And yes, the code really does thank @josecgomez. Gotta give credit.

// Thank you Jose: https://www.epiusers.help/t/epicor-license-guids/61669

switch (this.Session.SessionType.ToString().ToUpper()) 
{
  case "00000003-B615-4300-957B-34956697F040":
  MySessionType = "Default";
  break;
  
  case "00000003-B8EB-40C4-8897-248CB30C5D47":
  MySessionType = "Data Collection";
  break;
  
  case "00000003-9439-4B30-A6F4-6D2FD4B9FD0F":
  MySessionType = "Web Service";
  break;
  
  case "00000003-C071-4FD8-900D-F58EE96BBCCE":
  MySessionType = "Enterprise Processing";
  break;
  
  case "00000003-94E7-4DCB-BAFD-A6CA7F21AA9B":
  MySessionType = "Data Administraion"; 
  //What is this? See Ice.License.SessionTypes.DataAdministration
  break;
  
  default:
  MySessionType = "Other/Unknown";
  break;
 
}
1 Like