Nevermind, I found it after some digging through google.
System.Diagnostics.Process.GetCurrentProcess().SessionId.ToString();Thanks for pointing me in the right direction Jose!
So I'm trying to auto print a sales order picklist (or any other report) through some c# script. It's requiring a workstationID which when I look at the trace shows my computer name and a number.
So it looks like "PCU100 3" Does anyone know what that second number is?
I'm using Environment.MachineName but I dont know what the "3" is.
psds.SOPickListReportParam[0].WorkstationID= Environment.MachineName + " " + ????????;
Does anyone know what it is?
Its your session ID from WindowsÂ
Jose C Gomez
Software Engineer
T: 904.469.1524 mobile
Quis custodiet ipsos custodes?
On Thu, Sep 4, 2014 at 7:14 PM, don.n.doan@... [vantage] <vantage@yahoogroups.com> wrote:
Â<div> <p></p><p><span>So I'm trying to auto print a sales order picklist (or any other report) through some c# script. Â It's requiring a workstationID which when I look at the trace shows my computer name and a number. Â </span></p>
So it looks like "PCU100 3" Â Does anyone know what that second number is?
I'm using  Environment.MachineName but I dont know what the "3" is.
psds.SOPickListReportParam[0].WorkstationID=Â Â Environment.MachineName + " " + ????????;
Does anyone know what it is?
</div> <div style="color:#fff;min-height:0;"></div>
How do I retrieve that number?