Jose C Gomez
T: 904.469.1524 mobile
Quis custodiet ipsos custodes?
On Thu, Jul 2, 2015 at 3:37 PM, William King wking@... [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p>
Thank you got it working. Shout out to Jose, but close your eyes to the code below
Â
VB.NET code
============
reference the following DLL’s available within the Epicor Client Folder
- Epicor.Mfg.Core.BLConnectionPool.dll
- Epicor.Mfg.Core.Session.dll
- Epicor.Mfg.Proc.IImportEDI.dll
- Epicor.Mfg.Proc.ImportEDI.dll
Â
        Dim _Session As New Session("manager", "manager", "AppServerDC://TAF2K8EPC1:9401", Session.LicenseType.Default)
        Dim _importEDIProc As ImportEDI = New ImportEDI(_Session.ConnectionPool)
        Dim importEDIDS As ImportEDIDataSet = _importEDIProc.GetNewParameters()
        Dim NewRow As ImportEDIDataSet.ImportEDIParamRow = importEDIDS.ImportEDIParam(0)
Â
        NewRow.ProcessingDelay = 1
        NewRow.LogFilename = "C:\Epicor\EpicorData\ImportEDI.log" 'EDI LOG
        NewRow.Inactive = False
        NewRow.InboundPath = "\\taf2k8edi2\epicor\edidata\inbound\demand" 'INPUT PATH
        NewRow.ProcessNum = 0
        NewRow.BackupFile = True
        NewRow.AutoAction = ""
        NewRow.PrinterName = ""
        NewRow.AgentSchedNum = 0
        NewRow.AgentID = "SystemTaskAgent"
        NewRow.AgentTaskNum = 0
        NewRow.RecurringTask = False
        NewRow.RptPageSettings = ""
        NewRow.RptPrinterSettings = ""
        NewRow.RptVersion = ""
        NewRow.ReportStyleNum = 0
        NewRow.WorkstationID = Environment.MachineName + " " + CStr(Process.GetCurrentProcess().SessionId) 'TIS IS IMPORTANT
        NewRow.TaskNote = ""
        NewRow.ArchiveCode = 0
        NewRow.DateFormat = "m/d/yyyy"
        NewRow.NumericFormat = ",."
        NewRow.AgentCompareString = ""
        NewRow.ProcessID = ""
        NewRow.ProcessTaskNum = 0
        NewRow.DecimalsGeneral = 2
        NewRow.DecimalsCost = 5
        NewRow.DecimalsPrice = 5
        NewRow.GlbDecimalsGeneral = 2
        NewRow.GlbDecimalsCost = 5
        NewRow.GlbDecimalsPrice = 5
        NewRow.FaxSubject = ""
        NewRow.FaxTo = ""
        NewRow.FaxNumber = ""
        NewRow.EMailTo = ""
        NewRow.EMailCC = ""
        NewRow.EMailBCC = ""
        NewRow.EMailBody = ""
        NewRow.AttachmentType = ""
        NewRow.ReportCurrencyCode = ""
        NewRow.ReportCultureCode = ""
        NewRow.RowIdent = ""
        NewRow.RowMod = "A"
Â
        _importEDIPRoc.SubmitToAgent(importEDIDS, "SystemTaskAgent", 0, 0, "Epicor.Mfg.UIProc.ImportEDI")
Â
Â
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Thursday, July 02, 2015 9:07 AM
To: Vantage
Subject: Re: [Vantage] Re: Submit the EDI process for outside VB.net programÂ
Â
Here you go
Â
Â
Jose C GomezSoftware Engineer
T: 904.469.1524 mobileE: jose@...
http://www.josecgomez.com
Â
Â
Â
Â
Â
Â
Quis custodiet ipsos custodes?Â
On Thu, Jul 2, 2015 at 8:52 AM, William King wking@... [vantage] <vantage@yahoogroups.com> wrote:
Â
Should be a real simple process. Just trying to fire off the ImportEDI demand process from vb.net with:
1.      backup process checkbox checked
2.      Import folder being \\taf2k8edi1\epicor\edidata\inbound\demand.
3.      Continuous process is false.
Â
Trace
<tracePacket>
               <businessObject>Epicor.Mfg.BO.SysAgent</businessObject>
               <methodName>GetDefaultTaskAgentID</methodName>
               <returnType>void</returnType>
               <localTime>7/1/2015 15:54:16:2612603 PM</localTime>
               <executionTime>17</executionTime>
               <parameters>
                               <parameter name='cc' type='Epicor.Mfg.Core.CallContext.CallContextDataSet' ><CallContextDataSet xmlns="http://www.epicor.com/Mfg/100/BO.CallContext/CallContextDataSet" /></parameter>
                               <parameter name='defaultAgentID' type='string' ><![CDATA[]]></parameter>
               </parameters>
               <returnValues>
               <returnParameter name='defaultAgentID' type='string' ><![CDATA[SystemTaskAgent]]></returnParameter>
               </returnValues>
               <paramDataSetChanges>
               </paramDataSetChanges>
</tracePacket>
Â
Â
<tracePacket>
               <businessObject>Epicor.Mfg.BO.SysAgent</businessObject>
               <methodName>GetAgentSchedList</methodName>
               <returnType>Epicor.Mfg.BO.SysAgentSchedListDataSet</returnType>
               <localTime>7/1/2015 15:54:16:2812613 PM</localTime>
               <executionTime>32</executionTime>
               <parameters>
                               <parameter name='cc' type='Epicor.Mfg.Core.CallContext.CallContextDataSet' ><CallContextDataSet xmlns="http://www.epicor.com/Mfg/100/BO.CallContext/CallContextDataSet" /></parameter>
               <parameter name='agentID' type='string' ><![CDATA[SystemTaskAgent]]></parameter>
               </parameters>
               <returnValues>
                               <returnParameter name='MethodReturned' type='Epicor.Mfg.BO.SysAgentSchedListDataSet' ><SysAgentSchedListDataSet xmlns="http://www.epicor.com/Mfg/100/BO.SysAgent/SysAgentSchedList">
 <SysAgentSchedList>
   <AgentID>SystemTaskAgent</AgentID>
   <AgentSchedNum>0</AgentSchedNum>
   <SchedDesc>Now</SchedDesc>
   <SchedType>Immed</SchedType>
   <NextRunTime>0</NextRunTime>
   <Recurrences>0</Recurrences>
   <MonthlyOption>Day</MonthlyOption>
   <DayOfMonth>31</DayOfMonth>
   <WeekOfMonth>Last</WeekOfMonth>
   <DayOfWeek>6</DayOfWeek>
   <EveryNWeeks>1</EveryNWeeks>
   <LastRunTime>0</LastRunTime>
   <Mondays>false</Mondays>
   <Tuesdays>false</Tuesdays>
   <Wednesdays>false</Wednesdays>
   <Thursdays>false</Thursdays>
   <Fridays>false</Fridays>
   <Saturdays>false</Saturdays>
   <Sundays>false</Sundays>
   <Enabled>true</Enabled>
   <AppSrvConnectionID />
   <IntervalTime>0</IntervalTime>
   <RowIdent />
   <RowMod />
 </SysAgentSchedList>
 <SysAgentSchedList>
   <AgentID>SystemTaskAgent</AgentID>
   <AgentSchedNum>1</AgentSchedNum>
   <SchedDesc>TAF STARTUP</SchedDesc>
   <SchedType>Startup</SchedType>
   <NextRunTime>0</NextRunTime>
   <Recurrences>0</Recurrences>
   <MonthlyOption>Day</MonthlyOption>
   <DayOfMonth>31</DayOfMonth>
   <WeekOfMonth>Last</WeekOfMonth>
   <DayOfWeek>6</DayOfWeek>
   <EveryNWeeks>1</EveryNWeeks>
   <LastRunDate>2015-06-16T00:00:00-05:00</LastRunDate>
   <LastRunTime>40686</LastRunTime>
   <Mondays>false</Mondays>
   <Tuesdays>false</Tuesdays>
   <Wednesdays>false</Wednesdays>
   <Thursdays>false</Thursdays>
   <Fridays>false</Fridays>
   <Saturdays>false</Saturdays>
   <Sundays>false</Sundays>
   <Enabled>true</Enabled>
   <AppSrvConnectionID />
   <IntervalTime>0</IntervalTime>
   <RowIdent>0x003d0da200010000574845524520282850524f47524553535f5245434944203d200000001e0008fffb000000000000000000000000000000ca29292000</RowIdent>
   <RowMod />
 </SysAgentSchedList>
 <SysAgentSchedList>
   <AgentID>SystemTaskAgent</AgentID>
   <AgentSchedNum>2</AgentSchedNum>
   <SchedDesc>Monthly Schedule</SchedDesc>
   <SchedType>Monthly</SchedType>
   <NextRunDate>2015-06-03T00:00:00-05:00</NextRunDate>
   <NextRunTime>3600</NextRunTime>
   <Recurrences>0</Recurrences>
   <MonthlyOption>Day</MonthlyOption>
   <DayOfMonth>3</DayOfMonth>
   <WeekOfMonth>Last</WeekOfMonth>
   <DayOfWeek>6</DayOfWeek>
   <EveryNWeeks>1</EveryNWeeks>
   <LastRunDate>2015-05-03T00:00:00-05:00</LastRunDate>
   <LastRunTime>3602</LastRunTime>
   <Mondays>false</Mondays>
   <Tuesdays>false</Tuesdays>
   <Wednesdays>false</Wednesdays>
   <Thursdays>false</Thursdays>
   <Fridays>false</Fridays>
   <Saturdays>false</Saturdays>
   <Sundays>false</Sundays>
   <Enabled>false</Enabled>
   <AppSrvConnectionID />
   <IntervalTime>0</IntervalTime>
   <RowIdent>0x003d0da200010000574845524520282850524f47524553535f5245434944203d200000001e0008fffb0000000000000000000000000000231a29292000</RowIdent>
   <RowMod />
 </SysAgentSchedList>
 <SysAgentSchedList>
   <AgentID>SystemTaskAgent</AgentID>
   <AgentSchedNum>3</AgentSchedNum>
   <SchedDesc>Sunday Schedule</SchedDesc>
   <SchedType>Weekly</SchedType>
   <NextRunDate>2015-05-31T00:00:00-05:00</NextRunDate>
   <NextRunTime>7200</NextRunTime>
   <Recurrences>0</Recurrences>
   <MonthlyOption>Day</MonthlyOption>
   <DayOfMonth>31</DayOfMonth>
   <WeekOfMonth>Last</WeekOfMonth>
   <DayOfWeek>1</DayOfWeek>
   <EveryNWeeks>1</EveryNWeeks>
   <LastRunDate>2015-05-24T00:00:00-05:00</LastRunDate>
   <LastRunTime>7204</LastRunTime>
   <Mondays>false</Mondays>
   <Tuesdays>false</Tuesdays>
   <Wednesdays>false</Wednesdays>
   <Thursdays>false</Thursdays>
   <Fridays>false</Fridays>
   <Saturdays>false</Saturdays>
   <Sundays>false</Sundays>
   <Enabled>false</Enabled>
   <AppSrvConnectionID />
   <IntervalTime>0</IntervalTime>
   <RowIdent>0x003d0da200010000574845524520282850524f47524553535f5245434944203d200000001e0008fffb000000000000000000000000000036df29292000</RowIdent>
   <RowMod />
 </SysAgentSchedList>
 <SysAgentSchedList>
   <AgentID>SystemTaskAgent</AgentID>
   <AgentSchedNum>4</AgentSchedNum>
   <SchedDesc>Monday Schedule</SchedDesc>
   <SchedType>Weekly</SchedType>
   <NextRunDate>2015-06-01T00:00:00-05:00</NextRunDate>
   <NextRunTime>8160</NextRunTime>
   <Recurrences>0</Recurrences>
   <MonthlyOption>Day</MonthlyOption>
   <DayOfMonth>31</DayOfMonth>
   <WeekOfMonth>Last</WeekOfMonth>
   <DayOfWeek>2</DayOfWeek>
   <EveryNWeeks>1</EveryNWeeks>
   <LastRunDate>2015-05-25T00:00:00-05:00</LastRunDate>
   <LastRunTime>8162</LastRunTime>
   <Mondays>false</Mondays>
   <Tuesdays>false</Tuesdays>
   <Wednesdays>false</Wednesdays>
   <Thursdays>false</Thursdays>
  �
(Message over 64 KB, truncated)