Thanks for this – I will have a look shortly. However, I don’t think Db is supported in Epicor Functions (it is in BPM) so I am not sure if this will work.
If I had access to Db then it would have been a quick/easy win… but I do not have it in (our) Epicor Functions.
This is why I am looking at the BPM Temporary Session alternative… hoping one would exist.
If I have Db, then I would have simply done something like:-
var p = Db.Parts.FirstOrDefault(p => p.Company == "COMPANY_I_WANT_DATA" and p.PartNum == PartNumVar);
// etc ... get what I want from p to currentCompany