In the latest kinetic 2025.2.14, I have three BPMs that have some obsolete code in them that someone from Epicor wrote about 2 years ago now. In the BPM studio, a warning pops up upon saving that says that there will be errors in the future. I was also told that these should be changed to have the correct sandbox methods.
Iām not looking at all that lol, but Iāll show you mineā¦
var sb = (ISandbox)Sandbox; //Makes autocomplete behave
string dt = DateTime.Now.ToString("yyyy_MM_dd-HH_mm_ss_fff");
//My ServerFolder.FileShare is mapped to the Azure File Share by Epicor
var fp = new FilePath(ServerFolder.FileShare, $@"Bartender/{labelType}{jobNum}{pcid}{lotNum}{pseudoLot}{dt}.json");
sb.IO.File.WriteAllText(fp, labelBuffer);