tomdomurat
(Thomas Domurat)
1
// Need to switch to the receiving company and plant -- worked in E10
this.Session.SetCompany("ABC");
this.Session.PlantID = "XYZ";
This code had worked in E10, but does not in E11. I receive the following errors. What is the equivalent in Kinetics?
aarong
(Aaron Gulley)
2
Please try
Ice.Core.Session s1 = (Ice.Core.Session)this.oTrans.Session;
s1.CompanyID = "ABC";
s1.PlantID = "B";
klincecum
(Kevin Lincecum)
3
He’s in a BPM/UBAQ/Function etc.
klincecum
(Kevin Lincecum)
4
You might want to peruse this thread:
This may also work, unsure if any drawbacks.
var ehsSession = (Epicor.Hosting.Session) Session;
ehsSession.SetCompany("ABC");
ehsSession.PlantID = "XYZ";
``
klincecum
(Kevin Lincecum)
5
Good thread, everyone should read it.
2 Likes
tomdomurat
(Thomas Domurat)
6
Thank you much. I was struggling with this and it had worked what was posted.
1 Like