Submit the EDI process for outside VB.net program

Couldn't help myself now I am all itchy... look at that hideous Dim X.... and CString.... *shudder*
hehe Glad it worked out!


Jose C Gomez
Software Engineer


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

Â

Â



Jose C Gomez

Software Engineer


T: 904.469.1524 mobile

E: 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)

I am trying to fire off the ImportEDI process within a VB.net script.

 

Intellisense works great until I enter (maintProgram:="Epicor.Mfg.UIProc.ImportEDI"), then I get SubmitToAgent with blue lines (Reference to a non-shared member requires an object reference.)

 

Any help would be appreciated. Or a point in the right direction.

 

 

Code

+++++++++

 

Imports Epicor.Mfg.Core.Session

Imports Epicor.Mfg.Proc.ImportEDI

Imports Epicor.Mfg.UI.Proc.ImportEDI

 

Public Class Form1

 

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

          SubmitToAgent(ds:="ImportEDIdataSet", agentID:="SystemTaskAgent", agentSchedNum:="0", agentTaskNum:=0, maintProgram:="Epicor.Mfg.UIProc.ImportEDI")

    End Sub

End Class

 

 

The DataSet (ds) should be an ACTUAL DataSet
ImportEDIdataSet


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Tue, Jun 30, 2015 at 12:24 PM, William King wking@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p>

I am trying to fire off the ImportEDI process within a VB.net script.

Â

Intellisense works great until I enter (maintProgram:="Epicor.Mfg.UIProc.ImportEDI"), then I get SubmitToAgent with blue lines (Reference to a non-shared member requires an object reference.)

Â

Any help would be appreciated. Or a point in the right direction.

Â

Â

Code

+++++++++

Â

Imports Epicor.Mfg.Core.Session

Imports Epicor.Mfg.Proc.ImportEDI

Imports Epicor.Mfg.UI.Proc.ImportEDI

Â

Public Class Form1

Â

   Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        SubmitToAgent(ds:="ImportEDIdataSet", agentID:="SystemTaskAgent", agentSchedNum:="0", agentTaskNum:=0, maintProgram:="Epicor.Mfg.UIProc.ImportEDI")

   End Sub

End Class

Â

Â

</div>
 


<div style="color:#fff;min-height:0;"></div>

Corrected the case in the ds:="ImportEDIDataSet". Still getting the blue squigglies. 

Any other suggestion?
I is this your entire code? If so you need to populate the values in your DataSet and all that. Run a TRACE in Epicor and minic what Epicor Does line by line.


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Wed, Jul 1, 2015 at 11:26 AM, wking@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p>Corrected the case in the ds:=&quot;ImportEDIDataSet&quot;. Still getting the blue squigglies. </p><div><br></div><div>Any other suggestion?</div><p></p>

</div>
 


<div style="color:#fff;min-height:0;"></div>

Thank you for your reply. I have been trying to figure what to call. Full trace below.

 

Imports Epicor.Mfg.Core.Session

Imports Epicor.Mfg.Proc.ImportEDI

Imports Epicor.Mfg.UI.Proc.ImportEDI

Imports Epicor.Mfg.Core.CallContext.CallContextDataSet

Imports System.Data

Imports System.Data.SqlClient

 

Public Class Form1

 

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

          Dim ccEPICOR As New Epicor.Mfg.Core.CallContext.CallContextDataSet

          Dim dsEDI As New Epicor.Mfg.Proc.ImportEDIDataSet

 

          dsEDI.ImportEDIParam.ContinuousColumn = False        'This is giving blue squigglies, with error ContinuousColumn is readonly.

          'MessageBox.Show(vImportParams.InboundPathColumn.Container.Components.Item) ‘this show true

 

          'SubmitToAgent(ds:=dsEDI, agentID:="SystemTaskAgent", agentSchedNum:=0, agentTaskNum:=0, maintProgram:="Epicor.Mfg.UIProc.ImportEDI")

    End Sub

End Class

 

 

Full trace.

=============================

<tracePacket>

                <businessObject>Epicor.Mfg.Proc.ImportEDI</businessObject>

                <methodName>SubmitToAgent</methodName>

                <returnType>void</returnType>

                <localTime>6/30/2015 08:56:06:1673242 AM</localTime>

                <executionTime>2272.5482</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='ds' type='ImportEDIDataSet' ><ImportEDIDataSet xmlns="http://www.epicor.com/Mfg/100/Proc.ImportEDI/ImportEDI">

  <ImportEDIParam>

    <Continuous>false</Continuous>

    <ProcessingDelay>1</ProcessingDelay>

    <LogFilename>C:/Epicor/EpicorData/ImportEDI.log</LogFilename>

    <Inactive>false</Inactive>

    <InboundPath>\\TAF2K8ED12\EPICOR\EDIData\Inbound\Demand</InboundPath>

    <ProcessNum>0</ProcessNum>

    <BackupFile>true</BackupFile>

    <AutoAction />

    <PrinterName />

    <AgentSchedNum>0</AgentSchedNum>

    <AgentID>SystemTaskAgent</AgentID>

    <AgentTaskNum>0</AgentTaskNum>

    <RecurringTask>false</RecurringTask>

    <RptPageSettings />

    <RptPrinterSettings />

    <RptVersion />

    <ReportStyleNum>0</ReportStyleNum>

    <WorkstationID>TAF2K8EPC-TEST 2</WorkstationID>

    <TaskNote />

    <ArchiveCode>0</ArchiveCode>

    <DateFormat>m/d/yyyy</DateFormat>

    <NumericFormat>,.</NumericFormat>

    <AgentCompareString />

    <ProcessID />

    <ProcessTaskNum>0</ProcessTaskNum>

    <DecimalsGeneral>2</DecimalsGeneral>

    <DecimalsCost>5</DecimalsCost>

    <DecimalsPrice>5</DecimalsPrice>

    <GlbDecimalsGeneral>2</GlbDecimalsGeneral>

    <GlbDecimalsCost>5</GlbDecimalsCost>

    <GlbDecimalsPrice>5</GlbDecimalsPrice>

    <FaxSubject />

    <FaxTo />

    <FaxNumber />

    <EMailTo />

    <EMailCC />

    <EMailBCC />

    <EMailBody />

    <AttachmentType />

    <ReportCurrencyCode />

    <ReportCultureCode />

    <RowIdent />

    <RowMod>A</RowMod>

  </ImportEDIParam>

</ImportEDIDataSet></parameter>

                <parameter name='agentID' type='string' ><![CDATA[SystemTaskAgent]]></parameter>

                <parameter name='agentSchedNum' type='int' ><![CDATA[0]]></parameter>

                <parameter name='agentTaskNum' type='int' ><![CDATA[0]]></parameter>

                <parameter name='maintProgram' type='string' ><![CDATA[Epicor.Mfg.UIProc.ImportEDI]]></parameter>

                </parameters>

                <paramDataSetChanges>

                                <paramDataSet name='ds' useDataSetNbr='0' >

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='Continuous' ><![CDATA[False]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessingDelay' ><![CDATA[1]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='LogFilename' ><![CDATA[C:/Epicor/EpicorData/ImportEDI.log]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='Inactive' ><![CDATA[False]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='InboundPath' ><![CDATA[\\TAF2K8ED12\EPICOR\EDIData\Inbound\Demand]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessNum' ><![CDATA[0]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='BackupFile' ><![CDATA[True]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AutoAction' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='PrinterName' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentSchedNum' ><![CDATA[0]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentID' ><![CDATA[SystemTaskAgent]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentTaskNum' ><![CDATA[0]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RecurringTask' ><![CDATA[False]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptPageSettings' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptPrinterSettings' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptVersion' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ReportStyleNum' ><![CDATA[0]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='WorkstationID' ><![CDATA[TAF2K8EPC-TEST 2]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='TaskNote' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ArchiveCode' ><![CDATA[0]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DateFormat' ><![CDATA[m/d/yyyy]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='NumericFormat' ><![CDATA[,.]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentCompareString' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessID' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessTaskNum' ><![CDATA[0]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DecimalsGeneral' ><![CDATA[2]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DecimalsCost' ><![CDATA[5]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DecimalsPrice' ><![CDATA[5]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='GlbDecimalsGeneral' ><![CDATA[2]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='GlbDecimalsCost' ><![CDATA[5]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='GlbDecimalsPrice' ><![CDATA[5]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='FaxSubject' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='FaxTo' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='FaxNumber' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='EMailTo' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='EMailCC' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='EMailBCC' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='EMailBody' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AttachmentType' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ReportCurrencyCode' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ReportCultureCode' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RowIdent' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RowMod' ><![CDATA[A]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DBRowIdent' ><![CDATA[]]></changedValue>

                                </paramDataSet>

                </paramDataSetChanges>

</tracePacket>

 

William R. King
IT Analyst
Topura America Fastener, Inc.
1070 Monterey Court - Bowling Green, KY  42101
Voice: 270-901-1579

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Wednesday, July 01, 2015 12:16 PM
To: Vantage
Subject: Re: [Vantage] Re: Submit the EDI process for outside VB.net program

 

 

I is this your entire code? If so you need to populate the values in your DataSet and all that. Run a TRACE in Epicor and minic what Epicor Does line by line.



Jose C Gomez

Software Engineer


T: 904.469.1524 mobile


Quis custodiet ipsos custodes?

 

On Wed, Jul 1, 2015 at 11:26 AM, wking@... [vantage] <vantage@yahoogroups.com> wrote:

 

Corrected the case in the ds:="ImportEDIDataSet". Still getting the blue squigglies. 

 

Any other suggestion?

 

All these fields in the trace need to be filled in / passed in.
If you look a the trace before there should be a GetNewXX and afew other methods.

 <paramDataSet name='ds' useDataSetNbr='0' >

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='Continuous' ><![CDATA[False]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessingDelay' ><![CDATA[1]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='LogFilename' ><![CDATA[C:/Epicor/EpicorData/ImportEDI.log]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='Inactive' ><![CDATA[False]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='InboundPath' ><![CDATA[\\TAF2K8ED12\EPICOR\EDIData\Inbound\Demand]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='BackupFile' ><![CDATA[True]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AutoAction' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='PrinterName' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentSchedNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentID' ><![CDATA[SystemTaskAgent]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentTaskNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RecurringTask' ><![CDATA[False]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptPageSettings' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptPrinterSettings' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptVersion' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ReportStyleNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='WorkstationID' ><![CDATA[TAF2K8EPC-TEST 2]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='TaskNote' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ArchiveCode' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DateFormat' ><![CDATA[m/d/yyyy]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='NumericFormat' ><![CDATA[,.]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentCompareString' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessID' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessTaskNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DecimalsGeneral' ><![CDATA[2]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DecimalsCost' ><![CDATA[5]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DecimalsPrice' ><![CDATA[5]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='GlbDecimalsGeneral' ><![CDATA[2]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='GlbDecimalsCost' ><![CDATA[5]]></changedValue>

                                              <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='GlbDecimalsPrice' ><![CDATA[5]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='FaxSubject' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='FaxTo' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='FaxNumber' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='EMailTo' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='EMailCC' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='EMailBCC' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='EMailBody' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AttachmentType' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ReportCurrencyCode' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ReportCultureCode' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RowIdent' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RowMod' ><![CDATA[A]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DBRowIdent' ><![CDATA[]]></changedValue>

                               </paramDataSet>



Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Wed, Jul 1, 2015 at 2:39 PM, William King wking@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p>

Thank you for your reply. I have been trying to figure what to call. Full trace below.

Â

Imports Epicor.Mfg.Core.Session

Imports Epicor.Mfg.Proc.ImportEDI

Imports Epicor.Mfg.UI.Proc.ImportEDI

Imports Epicor.Mfg.Core.CallContext.CallContextDataSet

Imports System.Data

Imports System.Data.SqlClient

Â

Public Class Form1

Â

   Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        Dim ccEPICOR As New Epicor.Mfg.Core.CallContext.CallContextDataSet

        Dim dsEDI As New Epicor.Mfg.Proc.ImportEDIDataSet

Â

        dsEDI.ImportEDIParam.ContinuousColumn = False       'This is giving blue squigglies, with error ContinuousColumn is readonly.

        'MessageBox.Show(vImportParams.InboundPathColumn.Container.Components.Item) ‘this show true

Â

        'SubmitToAgent(ds:=dsEDI, agentID:="SystemTaskAgent", agentSchedNum:=0, agentTaskNum:=0, maintProgram:="Epicor.Mfg.UIProc.ImportEDI")

   End Sub

End Class

Â

Â

Full trace.

=============================

<tracePacket>

               <businessObject>Epicor.Mfg.Proc.ImportEDI</businessObject>

               <methodName>SubmitToAgent</methodName>

               <returnType>void</returnType>

               <localTime>6/30/2015 08:56:06:1673242 AM</localTime>

               <executionTime>2272.5482</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='ds' type='ImportEDIDataSet' ><ImportEDIDataSet xmlns="http://www.epicor.com/Mfg/100/Proc.ImportEDI/ImportEDI">

 <ImportEDIParam>

   <Continuous>false</Continuous>

   <ProcessingDelay>1</ProcessingDelay>

   <LogFilename>C:/Epicor/EpicorData/ImportEDI.log</LogFilename>

   <Inactive>false</Inactive>

   <InboundPath>\\TAF2K8ED12\EPICOR\EDIData\Inbound\Demand</InboundPath>

   <ProcessNum>0</ProcessNum>

   <BackupFile>true</BackupFile>

   <AutoAction />

   <PrinterName />

   <AgentSchedNum>0</AgentSchedNum>

   <AgentID>SystemTaskAgent</AgentID>

   <AgentTaskNum>0</AgentTaskNum>

   <RecurringTask>false</RecurringTask>

   <RptPageSettings />

   <RptPrinterSettings />

   <RptVersion />

   <ReportStyleNum>0</ReportStyleNum>

   <WorkstationID>TAF2K8EPC-TEST 2</WorkstationID>

   <TaskNote />

   <ArchiveCode>0</ArchiveCode>

   <DateFormat>m/d/yyyy</DateFormat>

   <NumericFormat>,.</NumericFormat>

   <AgentCompareString />

   <ProcessID />

   <ProcessTaskNum>0</ProcessTaskNum>

   <DecimalsGeneral>2</DecimalsGeneral>

   <DecimalsCost>5</DecimalsCost>

   <DecimalsPrice>5</DecimalsPrice>

   <GlbDecimalsGeneral>2</GlbDecimalsGeneral>

   <GlbDecimalsCost>5</GlbDecimalsCost>

   <GlbDecimalsPrice>5</GlbDecimalsPrice>

   <FaxSubject />

   <FaxTo />

   <FaxNumber />

   <EMailTo />

   <EMailCC />

   <EMailBCC />

   <EMailBody />

   <AttachmentType />

   <ReportCurrencyCode />

   <ReportCultureCode />

   <RowIdent />

   <RowMod>A</RowMod>

 </ImportEDIParam>

</ImportEDIDataSet></parameter>

               <parameter name='agentID' type='string' ><![CDATA[SystemTaskAgent]]></parameter>

               <parameter name='agentSchedNum' type='int' ><![CDATA[0]]></parameter>

               <parameter name='agentTaskNum' type='int' ><![CDATA[0]]></parameter>

               <parameter name='maintProgram' type='string' ><![CDATA[Epicor.Mfg.UIProc.ImportEDI]]></parameter>

               </parameters>

               <paramDataSetChanges>

                               <paramDataSet name='ds' useDataSetNbr='0' >

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='Continuous' ><![CDATA[False]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessingDelay' ><![CDATA[1]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='LogFilename' ><![CDATA[C:/Epicor/EpicorData/ImportEDI.log]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='Inactive' ><![CDATA[False]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='InboundPath' ><![CDATA[\\TAF2K8ED12\EPICOR\EDIData\Inbound\Demand]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='BackupFile' ><![CDATA[True]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AutoAction' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='PrinterName' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentSchedNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentID' ><![CDATA[SystemTaskAgent]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentTaskNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RecurringTask' ><![CDATA[False]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptPageSettings' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptPrinterSettings' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptVersion' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ReportStyleNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='WorkstationID' ><![CDATA[TAF2K8EPC-TEST 2]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='TaskNote' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ArchiveCode' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DateFormat' ><![CDATA[m/d/yyyy]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='NumericFormat' ><![CDATA[,.]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentCompareString' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessID' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessTaskNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DecimalsGeneral' ><![CDATA[2]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DecimalsCost' ><![CDATA[5]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DecimalsPrice' ><![CDATA[5]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='GlbDecimalsGeneral' ><![CDATA[2]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='GlbDecimalsCost' ><![CDATA[5]]></changedValue>

                                              <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='GlbDecimalsPrice' ><![CDATA[5]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='FaxSubject' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='FaxTo' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='FaxNumber' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='EMailTo' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='EMailCC' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='EMailBCC' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='EMailBody' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AttachmentType' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ReportCurrencyCode' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ReportCultureCode' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RowIdent' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RowMod' ><![CDATA[A]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DBRowIdent' ><![CDATA[]]></changedValue>

                               </paramDataSet>

               </paramDataSetChanges>

</tracePacket>

Â

William R. King
IT Analyst
Topura America Fastener, Inc.
1070 Monterey Court - Bowling Green, KYÂ 42101
Voice: 270-901-1579

Â

Change of question, where is documentation on how to do this? Don’t know what to put in for connection pool. I don’t see it in the trace.

 

     Dim procEDI As New Epicor.Mfg.Proc.ImportEDI(connPool:= ????   )  ‘what connection pool

 

I have googled and found (http://www.josecgomez.com/2013/10/01/how-to-export-a-crystal-report-through-code-by-using-reflection-in-epicor/) and I see that you have a line stating

 

    PackingSlipPrint psp = new PackingSlipPrint(((Session)oTrans.Session).ConnectionPool);

 

      

Here is the all the code, again I am trying to fire off the ImportEDI from VB.

========================

Imports Epicor.Mfg.Core.Session

Imports Epicor.Mfg.Core.BLConnectionPool

Imports Epicor.Mfg.Proc.ImportEDI

Imports Epicor.Mfg.UI.Proc.ImportEDI

Imports Epicor.Mfg.Core.CallContext.CallContextDataSet

 

Public Class Form1

 

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

 

          Dim dsEDI As New Epicor.Mfg.Proc.ImportEDIDataSet

          Dim procEDI As New Epicor.Mfg.Proc.ImportEDI(connPool:= ????   )  ‘what connection pool

          Dim paramEDI = procEDI.GetNewParameters()

          paramEDI.ImportEDIParam.ContinuousColumn = 0

 

          procEDI.SubmitToAgent(ds:=dsEDI, agentID:="SystemTaskAgent", agentSchedNum:=0, agentTaskNum:=0, maintProgram:="Epicor.Mfg.UIProc.ImportEDI")

    End Sub

End Class

 

Here is the trace from “GetNewXXX” down.

========================

<tracePacket>

                <businessObject>Epicor.Mfg.Proc.ImportEDI</businessObject>

                <methodName>GetNewParameters</methodName>

                <returnType>Epicor.Mfg.Proc.ImportEDIDataSet</returnType>

                <localTime>7/1/2015 15:54:16:4212683 PM</localTime>

                <executionTime>16</executionTime>

                <parameters>

                                <parameter name='cc' type='Epicor.Mfg.Core.CallContext.CallContextDataSet' ><CallContextDataSet xmlns="http://www.epicor.com/Mfg/100/BO.CallContext/CallContextDataSet" /></parameter>

                </parameters>

                <returnValues>

                                <returnParameter name='MethodReturned' type='Epicor.Mfg.Proc.ImportEDIDataSet' ><ImportEDIDataSet xmlns="http://www.epicor.com/Mfg/100/Proc.ImportEDI/ImportEDI">

  <ImportEDIParam>

    <Continuous>false</Continuous>

    <ProcessingDelay>1</ProcessingDelay>

    <LogFilename>C:/Epicor/EpicorData/ImportEDI.log</LogFilename>

    <Inactive>false</Inactive>

    <InboundPath>\\TAF2K8EDI2\EPICOR\EDIData\Inbound\Demand</InboundPath>

    <ProcessNum>0</ProcessNum>

    <BackupFile>false</BackupFile>

    <AutoAction />

    <PrinterName />

    <AgentSchedNum>0</AgentSchedNum>

    <AgentID />

    <AgentTaskNum>0</AgentTaskNum>

    <RecurringTask>false</RecurringTask>

    <RptPageSettings />

    <RptPrinterSettings />

    <RptVersion />

    <ReportStyleNum>0</ReportStyleNum>

    <WorkstationID />

    <TaskNote />

    <ArchiveCode>0</ArchiveCode>

    <DateFormat />

    <NumericFormat />

    <AgentCompareString />

    <ProcessID />

    <ProcessTaskNum>0</ProcessTaskNum>

    <DecimalsGeneral>2</DecimalsGeneral>

    <DecimalsCost>5</DecimalsCost>

    <DecimalsPrice>5</DecimalsPrice>

    <GlbDecimalsGeneral>2</GlbDecimalsGeneral>

    <GlbDecimalsCost>5</GlbDecimalsCost>

    <GlbDecimalsPrice>5</GlbDecimalsPrice>

    <FaxSubject />

    <FaxTo />

    <FaxNumber />

    <EMailTo />

    <EMailCC />

    <EMailBCC />

    <EMailBody />

    <AttachmentType />

    <ReportCurrencyCode />

    <ReportCultureCode />

    <RowIdent />

    <RowMod>A</RowMod>

  </ImportEDIParam>

</ImportEDIDataSet></returnParameter>

                </returnValues>

                <paramDataSetChanges>

                </paramDataSetChanges>

</tracePacket>

 

 

<tracePacket>

                <businessObject>Epicor.Mfg.Proc.ImportEDI</businessObject>

                <methodName>SubmitToAgent</methodName>

                <returnType>void</returnType>

                <localTime>7/1/2015 15:54:19:5434245 PM</localTime>

                <executionTime>96</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='ds' type='ImportEDIDataSet' ><ImportEDIDataSet xmlns="http://www.epicor.com/Mfg/100/Proc.ImportEDI/ImportEDI">

  <ImportEDIParam>

    <Continuous>false</Continuous>

    <ProcessingDelay>1</ProcessingDelay>

    <LogFilename>C:/Epicor/EpicorData/ImportEDI.log</LogFilename>

    <Inactive>false</Inactive>

    <InboundPath>\\TAF2K8EDI2\EPICOR\EDIData\Inbound\Demand</InboundPath>

    <ProcessNum>0</ProcessNum>

    <BackupFile>true</BackupFile>

    <AutoAction />

   <PrinterName />

    <AgentSchedNum>0</AgentSchedNum>

    <AgentID>SystemTaskAgent</AgentID>

    <AgentTaskNum>0</AgentTaskNum>

    <RecurringTask>false</RecurringTask>

    <RptPageSettings />

    <RptPrinterSettings />

    <RptVersion />

    <ReportStyleNum>0</ReportStyleNum>

    <WorkstationID>BOW-WKING 1</WorkstationID>

    <TaskNote />

    <ArchiveCode>0</ArchiveCode>

    <DateFormat>m/d/yyyy</DateFormat>

    <NumericFormat>,.</NumericFormat>

    <AgentCompareString />

    <ProcessID />

    <ProcessTaskNum>0</ProcessTaskNum>

    <DecimalsGeneral>2</DecimalsGeneral>

    <DecimalsCost>5</DecimalsCost>

    <DecimalsPrice>5</DecimalsPrice>

    <GlbDecimalsGeneral>2</GlbDecimalsGeneral>

    <GlbDecimalsCost>5</GlbDecimalsCost>

    <GlbDecimalsPrice>5</GlbDecimalsPrice>

    <FaxSubject />

    <FaxTo />

    <FaxNumber />

    <EMailTo />

    <EMailCC />

    <EMailBCC />

    <EMailBody />

    <AttachmentType />

    <ReportCurrencyCode />

    <ReportCultureCode />

    <RowIdent />

    <RowMod>A</RowMod>

  </ImportEDIParam>

</ImportEDIDataSet></parameter>

                <parameter name='agentID' type='string' ><![CDATA[SystemTaskAgent]]></parameter>

                <parameter name='agentSchedNum' type='int' ><![CDATA[0]]></parameter>

                <parameter name='agentTaskNum' type='int' ><![CDATA[0]]></parameter>

                <parameter name='maintProgram' type='string' ><![CDATA[Epicor.Mfg.UIProc.ImportEDI]]></parameter>

                </parameters>

                <returnValues>

                                <returnParameter name='ds' type='ImportEDIDataSet' ><ImportEDIDataSet xmlns="http://www.epicor.com/Mfg/100/Proc.ImportEDI/ImportEDI">

  <ImportEDIParam>

    <Continuous>false</Continuous>

    <ProcessingDelay>1</ProcessingDelay>

    <LogFilename>C:/Epicor/EpicorData/ImportEDI.log</LogFilename>

    <Inactive>false</Inactive>

    <InboundPath>\\TAF2K8EDI2\EPICOR\EDIData\Inbound\Demand</InboundPath>

    <ProcessNum>0</ProcessNum>

    <BackupFile>true</BackupFile>

    <AutoAction />

    <PrinterName />

    <AgentSchedNum>0</AgentSchedNum>

    <AgentID>SystemTaskAgent</AgentID>

    <AgentTaskNum>0</AgentTaskNum>

    <RecurringTask>false</RecurringTask>

    <RptPageSettings />

    <RptPrinterSettings />

    <RptVersion />

    <ReportStyleNum>0</ReportStyleNum>

    <WorkstationID>BOW-WKING 1</WorkstationID>

    <TaskNote />

    <ArchiveCode>0</ArchiveCode>

    <DateFormat>m/d/yyyy</DateFormat>

    <NumericFormat>,.</NumericFormat>

    <AgentCompareString />

    <ProcessID />

    <ProcessTaskNum>0</ProcessTaskNum>

    <DecimalsGeneral>2</DecimalsGeneral>

    <DecimalsCost>5</DecimalsCost>

    <DecimalsPrice>5</DecimalsPrice>

    <GlbDecimalsGeneral>2</GlbDecimalsGeneral>

    <GlbDecimalsCost>5</GlbDecimalsCost>

   <GlbDecimalsPrice>5</GlbDecimalsPrice>

    <FaxSubject />

    <FaxTo />

    <FaxNumber />

    <EMailTo />

    <EMailCC />

    <EMailBCC />

    <EMailBody />

    <AttachmentType />

    <ReportCurrencyCode />

    <ReportCultureCode />

    <RowIdent />

    <RowMod>A</RowMod>

  </ImportEDIParam>

</ImportEDIDataSet></returnParameter>

                </returnValues>

                <paramDataSetChanges>

                                <paramDataSet name='ds' useDataSetNbr='0' >

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='Continuous' ><![CDATA[False]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessingDelay' ><![CDATA[1]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='LogFilename' ><![CDATA[C:/Epicor/EpicorData/ImportEDI.log]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='Inactive' ><![CDATA[False]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='InboundPath' ><![CDATA[\\TAF2K8EDI2\EPICOR\EDIData\Inbound\Demand]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessNum' ><![CDATA[0]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='BackupFile' ><![CDATA[True]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AutoAction' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='PrinterName' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentSchedNum' ><![CDATA[0]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentID' ><![CDATA[SystemTaskAgent]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentTaskNum' ><![CDATA[0]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RecurringTask' ><![CDATA[False]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptPageSettings' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptPrinterSettings' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptVersion' ><![CDATA[]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ReportStyleNum' ><![CDATA[0]]></changedValue>

                                                <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='WorkstationID' ><![CDATA[BOW-WKING 1]]></changedValu

(Message over 64 KB, truncated)

There isn't any documentation for that :-D


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Wed, Jul 1, 2015 at 5:20 PM, William King wking@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p>

Change of question, where is documentation on how to do this? Don’t know what to put in for connection pool. I don’t see it in the trace.

Â

    Dim procEDI As New Epicor.Mfg.Proc.ImportEDI(connPool:= ????  ) ‘what connection pool

Â

I have googled and found (http://www.josecgomez.com/2013/10/01/how-to-export-a-crystal-report-through-code-by-using-reflection-in-epicor/) and I see that you have a line stating

Â

   PackingSlipPrint psp = new PackingSlipPrint(((Session)oTrans.Session).ConnectionPool);

Â

     Â

Here is the all the code, again I am trying to fire off the ImportEDI from VB.

========================

Imports Epicor.Mfg.Core.Session

Imports Epicor.Mfg.Core.BLConnectionPool

Imports Epicor.Mfg.Proc.ImportEDI

Imports Epicor.Mfg.UI.Proc.ImportEDI

Imports Epicor.Mfg.Core.CallContext.CallContextDataSet

Â

Public Class Form1

Â

   Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

Â

        Dim dsEDI As New Epicor.Mfg.Proc.ImportEDIDataSet

        Dim procEDI As New Epicor.Mfg.Proc.ImportEDI(connPool:= ????  ) ‘what connection pool

        Dim paramEDI = procEDI.GetNewParameters()

        paramEDI.ImportEDIParam.ContinuousColumn = 0

Â

        procEDI.SubmitToAgent(ds:=dsEDI, agentID:="SystemTaskAgent", agentSchedNum:=0, agentTaskNum:=0, maintProgram:="Epicor.Mfg.UIProc.ImportEDI")

   End Sub

End Class

Â

Here is the trace from “GetNewXXX” down.

========================

<tracePacket>

               <businessObject>Epicor.Mfg.Proc.ImportEDI</businessObject>

               <methodName>GetNewParameters</methodName>

               <returnType>Epicor.Mfg.Proc.ImportEDIDataSet</returnType>

               <localTime>7/1/2015 15:54:16:4212683 PM</localTime>

               <executionTime>16</executionTime>

               <parameters>

                               <parameter name='cc' type='Epicor.Mfg.Core.CallContext.CallContextDataSet' ><CallContextDataSet xmlns="http://www.epicor.com/Mfg/100/BO.CallContext/CallContextDataSet" /></parameter>

               </parameters>

               <returnValues>

                               <returnParameter name='MethodReturned' type='Epicor.Mfg.Proc.ImportEDIDataSet' ><ImportEDIDataSet xmlns="http://www.epicor.com/Mfg/100/Proc.ImportEDI/ImportEDI">

 <ImportEDIParam>

   <Continuous>false</Continuous>

   <ProcessingDelay>1</ProcessingDelay>

   <LogFilename>C:/Epicor/EpicorData/ImportEDI.log</LogFilename>

   <Inactive>false</Inactive>

   <InboundPath>\\TAF2K8EDI2\EPICOR\EDIData\Inbound\Demand</InboundPath>

   <ProcessNum>0</ProcessNum>

   <BackupFile>false</BackupFile>

   <AutoAction />

   <PrinterName />

   <AgentSchedNum>0</AgentSchedNum>

   <AgentID />

   <AgentTaskNum>0</AgentTaskNum>

   <RecurringTask>false</RecurringTask>

   <RptPageSettings />

   <RptPrinterSettings />

   <RptVersion />

   <ReportStyleNum>0</ReportStyleNum>

   <WorkstationID />

   <TaskNote />

   <ArchiveCode>0</ArchiveCode>

   <DateFormat />

   <NumericFormat />

   <AgentCompareString />

   <ProcessID />

   <ProcessTaskNum>0</ProcessTaskNum>

   <DecimalsGeneral>2</DecimalsGeneral>

   <DecimalsCost>5</DecimalsCost>

   <DecimalsPrice>5</DecimalsPrice>

   <GlbDecimalsGeneral>2</GlbDecimalsGeneral>

   <GlbDecimalsCost>5</GlbDecimalsCost>

   <GlbDecimalsPrice>5</GlbDecimalsPrice>

   <FaxSubject />

   <FaxTo />

   <FaxNumber />

   <EMailTo />

   <EMailCC />

   <EMailBCC />

   <EMailBody />

   <AttachmentType />

   <ReportCurrencyCode />

   <ReportCultureCode />

   <RowIdent />

   <RowMod>A</RowMod>

 </ImportEDIParam>

</ImportEDIDataSet></returnParameter>

               </returnValues>

               <paramDataSetChanges>

               </paramDataSetChanges>

</tracePacket>

Â

Â

<tracePacket>

               <businessObject>Epicor.Mfg.Proc.ImportEDI</businessObject>

               <methodName>SubmitToAgent</methodName>

               <returnType>void</returnType>

               <localTime>7/1/2015 15:54:19:5434245 PM</localTime>

               <executionTime>96</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='ds' type='ImportEDIDataSet' ><ImportEDIDataSet xmlns="http://www.epicor.com/Mfg/100/Proc.ImportEDI/ImportEDI">

 <ImportEDIParam>

   <Continuous>false</Continuous>

   <ProcessingDelay>1</ProcessingDelay>

   <LogFilename>C:/Epicor/EpicorData/ImportEDI.log</LogFilename>

   <Inactive>false</Inactive>

   <InboundPath>\\TAF2K8EDI2\EPICOR\EDIData\Inbound\Demand</InboundPath>

   <ProcessNum>0</ProcessNum>

   <BackupFile>true</BackupFile>

   <AutoAction />

  <PrinterName />

   <AgentSchedNum>0</AgentSchedNum>

   <AgentID>SystemTaskAgent</AgentID>

   <AgentTaskNum>0</AgentTaskNum>

   <RecurringTask>false</RecurringTask>

   <RptPageSettings />

   <RptPrinterSettings />

   <RptVersion />

   <ReportStyleNum>0</ReportStyleNum>

   <WorkstationID>BOW-WKING 1</WorkstationID>

   <TaskNote />

   <ArchiveCode>0</ArchiveCode>

   <DateFormat>m/d/yyyy</DateFormat>

   <NumericFormat>,.</NumericFormat>

   <AgentCompareString />

   <ProcessID />

   <ProcessTaskNum>0</ProcessTaskNum>

   <DecimalsGeneral>2</DecimalsGeneral>

   <DecimalsCost>5</DecimalsCost>

   <DecimalsPrice>5</DecimalsPrice>

   <GlbDecimalsGeneral>2</GlbDecimalsGeneral>

   <GlbDecimalsCost>5</GlbDecimalsCost>

   <GlbDecimalsPrice>5</GlbDecimalsPrice>

   <FaxSubject />

   <FaxTo />

   <FaxNumber />

   <EMailTo />

   <EMailCC />

   <EMailBCC />

   <EMailBody />

   <AttachmentType />

   <ReportCurrencyCode />

   <ReportCultureCode />

   <RowIdent />

   <RowMod>A</RowMod>

 </ImportEDIParam>

</ImportEDIDataSet></parameter>

               <parameter name='agentID' type='string' ><![CDATA[SystemTaskAgent]]></parameter>

               <parameter name='agentSchedNum' type='int' ><![CDATA[0]]></parameter>

               <parameter name='agentTaskNum' type='int' ><![CDATA[0]]></parameter>

               <parameter name='maintProgram' type='string' ><![CDATA[Epicor.Mfg.UIProc.ImportEDI]]></parameter>

               </parameters>

               <returnValues>

                               <returnParameter name='ds' type='ImportEDIDataSet' ><ImportEDIDataSet xmlns="http://www.epicor.com/Mfg/100/Proc.ImportEDI/ImportEDI">

 <ImportEDIParam>

   <Continuous>false</Continuous>

   <ProcessingDelay>1</ProcessingDelay>

   <LogFilename>C:/Epicor/EpicorData/ImportEDI.log</LogFilename>

   <Inactive>false</Inactive>

   <InboundPath>\\TAF2K8EDI2\EPICOR\EDIData\Inbound\Demand</InboundPath>

   <ProcessNum>0</ProcessNum>

   <BackupFile>true</BackupFile>

   <AutoAction />

   <PrinterName />

   <AgentSchedNum>0</AgentSchedNum>

   <AgentID>SystemTaskAgent</AgentID>

   <AgentTaskNum>0</AgentTaskNum>

   <RecurringTask>false</RecurringTask>

   <RptPageSettings />

   <RptPrinterSettings />

   <RptVersion />

   <ReportStyleNum>0</ReportStyleNum>

   <WorkstationID>BOW-WKING 1</WorkstationID>

   <TaskNote />

   <ArchiveCode>0</ArchiveCode>

   <DateFormat>m/d/yyyy</DateFormat>

   <NumericFormat>,.</NumericFormat>

   <AgentCompareString />

   <ProcessID />

   <ProcessTaskNum>0</ProcessTaskNum>

   <DecimalsGeneral>2</DecimalsGeneral>

   <DecimalsCost>5</DecimalsCost>

   <DecimalsPrice>5</DecimalsPrice>

   <GlbDecimalsGeneral>2</GlbDecimalsGeneral>

   <GlbDecimalsCost>5</GlbDecimalsCost>

   <GlbDecimalsPrice>5</GlbDecimalsPrice>

   <FaxSubject />

   <FaxTo />

   <FaxNumber />

   <EMailTo />

   <EMailCC />

   <EMailBCC />

   <EMailBody />

   <AttachmentType />

   <ReportCurrencyCode />

   <ReportCultureCode />

   <RowIdent />

   <RowMod>A</RowMod>

 </ImportEDIParam>

</ImportEDIDataSet></returnParameter>

               </returnValues>

               <paramDataSetChanges>

                               <paramDataSet name='ds' useDataSetNbr='0' >

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='Continuous' ><![CDATA[False]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessingDelay' ><![CDATA[1]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='LogFilename' ><![CDATA[C:/Epicor/EpicorData/ImportEDI.log]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='Inactive' ><![CDATA[False]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='InboundPath' ><![CDATA[\\TAF2K8EDI2\EPICOR\EDIData\Inbound\Demand]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='BackupFile' ><![CDATA[True]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AutoAction' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='PrinterName' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentSchedNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentID' ><![CDATA[SystemTaskAgent]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentTaskNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RecurringTask' ><![CDATA[False]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptPageSettings' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptPrinterSettings' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptVersion' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ReportStyleNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='WorkstationID' ><![CDATA[BOW-WKING 1]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='TaskNote' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ArchiveCode' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DateFormat' ><![CDATA[m/d/yyyy]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='NumericFormat' ><![CDATA[,.]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentCompareString' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessID' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessTaskNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DecimalsGeneral' ><![CDATA[2]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DecimalsCost' ><![CDATA[5]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DecimalsPrice' ><![CDATA[5]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='GlbDecimalsGeneral' ><![CDATA[2]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='GlbDecimalsCost' ><![CDATA[5]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='GlbDecimalsPrice' ><![CDATA[5]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='FaxSubject' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='FaxTo' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='FaxNumber' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='EMailTo' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='EMailCC' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='EMailBCC' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='EMailBody' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AttachmentType' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ReportCurrencyCode' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ReportCultureCode' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RowIdent' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RowMod' ><![CDATA[A]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DBRowIdent' ><![CDATA[]]></changedValue>

Smile and nod.

The only thing online that is close is your site I mentioned previously.

Thank you for your response and you ‘da man’.

I think I’m close, but I don’t know what I don’t know.

I’ll keep banging my head on this.

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Wednesday, July 01, 2015 4:24 PM
To: Vantage
Subject: Re: [Vantage] Re: Submit the EDI process for outside VB.net program

 

 

There isn't any documentation for that :-D



Jose C Gomez

Software Engineer


T: 904.469.1524 mobile


Quis custodiet ipsos custodes?

 

On Wed, Jul 1, 2015 at 5:20 PM, William King wking@... [vantage] <vantage@yahoogroups.com> wrote:

 

Change of question, where is documentation on how to do this? Don’t know what to put in for connection pool. I don’t see it in the trace.

 

     Dim procEDI As New Epicor.Mfg.Proc.ImportEDI(connPool:= ????   )  ‘what connection pool

 

I have googled and found (http://www.josecgomez.com/2013/10/01/how-to-export-a-crystal-report-through-code-by-using-reflection-in-epicor/) and I see that you have a line stating

 

    PackingSlipPrint psp = new PackingSlipPrint(((Session)oTrans.Session).ConnectionPool);

 

      

Here is the all the code, again I am trying to fire off the ImportEDI from VB.

========================

Imports Epicor.Mfg.Core.Session

Imports Epicor.Mfg.Core.BLConnectionPool

Imports Epicor.Mfg.Proc.ImportEDI

Imports Epicor.Mfg.UI.Proc.ImportEDI

Imports Epicor.Mfg.Core.CallContext.CallContextDataSet

 

Public Class Form1

 

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

 

          Dim dsEDI As New Epicor.Mfg.Proc.ImportEDIDataSet

          Dim procEDI As New Epicor.Mfg.Proc.ImportEDI(connPool:= ????   )  ‘what connection pool

          Dim paramEDI = procEDI.GetNewParameters()

          paramEDI.ImportEDIParam.ContinuousColumn = 0

 

          procEDI.SubmitToAgent(ds:=dsEDI, agentID:="SystemTaskAgent", agentSchedNum:=0, agentTaskNum:=0, maintProgram:="Epicor.Mfg.UIProc.ImportEDI")

    End Sub

End Class

 

Here is the trace from “GetNewXXX” down.

========================

<tracePacket>

                <businessObject>Epicor.Mfg.Proc.ImportEDI</businessObject>

                <methodName>GetNewParameters</methodName>

                <returnType>Epicor.Mfg.Proc.ImportEDIDataSet</returnType>

                <localTime>7/1/2015 15:54:16:4212683 PM</localTime>

                <executionTime>16</executionTime>

                <parameters>

                                <parameter name='cc' type='Epicor.Mfg.Core.CallContext.CallContextDataSet' ><CallContextDataSet xmlns="http://www.epicor.com/Mfg/100/BO.CallContext/CallContextDataSet" /></parameter>

                </parameters>

                <returnValues>

                                <returnParameter name='MethodReturned' type='Epicor.Mfg.Proc.ImportEDIDataSet' ><ImportEDIDataSet xmlns="http://www.epicor.com/Mfg/100/Proc.ImportEDI/ImportEDI">

  <ImportEDIParam>

    <Continuous>false</Continuous>

    <ProcessingDelay>1</ProcessingDelay>

    <LogFilename>C:/Epicor/EpicorData/ImportEDI.log</LogFilename>

    <Inactive>false</Inactive>

    <InboundPath>\\TAF2K8EDI2\EPICOR\EDIData\Inbound\Demand</InboundPath>

    <ProcessNum>0</ProcessNum>

    <BackupFile>false</BackupFile>

    <AutoAction />

    <PrinterName />

    <AgentSchedNum>0</AgentSchedNum>

    <AgentID />

    <AgentTaskNum>0</AgentTaskNum>

    <RecurringTask>false</RecurringTask>

    <RptPageSettings />

    <RptPrinterSettings />

    <RptVersion />

    <ReportStyleNum>0</ReportStyleNum>

    <WorkstationID />

    <TaskNote />

    <ArchiveCode>0</ArchiveCode>

    <DateFormat />

    <NumericFormat />

    <AgentCompareString />

    <ProcessID />

    <ProcessTaskNum>0</ProcessTaskNum>

    <DecimalsGeneral>2</DecimalsGeneral>

    <DecimalsCost>5</DecimalsCost>

    <DecimalsPrice>5</DecimalsPrice>

    <GlbDecimalsGeneral>2</GlbDecimalsGeneral>

    <GlbDecimalsCost>5</GlbDecimalsCost>

    <GlbDecimalsPrice>5</GlbDecimalsPrice>

    <FaxSubject />

    <FaxTo />

    <FaxNumber />

    <EMailTo />

    <EMailCC />

    <EMailBCC />

    <EMailBody />

    <AttachmentType />

    <ReportCurrencyCode />

    <ReportCultureCode />

    <RowIdent />

    <RowMod>A</RowMod>

  </ImportEDIParam>

</ImportEDIDataSet></returnParameter>

                </returnValues>

                <paramDataSetChanges>

                </paramDataSetChanges>

</tracePacket>

 

 

<tracePacket>

                <businessObject>Epicor.Mfg.Proc.ImportEDI</businessObject>

                <methodName>SubmitToAgent</methodName>

                <returnType>void</returnType>

                <localTime>7/1/2015 15:54:19:5434245 PM</localTime>

                <executionTime>96</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='ds' type='ImportEDIDataSet' ><ImportEDIDataSet xmlns="http://www.epicor.com/Mfg/100/Proc.ImportEDI/ImportEDI">

  <ImportEDIParam>

    <Continuous>false</Continuous>

    <ProcessingDelay>1</ProcessingDelay>

    <LogFilename>C:/Epicor/EpicorData/ImportEDI.log</LogFilename>

    <Inactive>false</Inactive>

    <InboundPath>\\TAF2K8EDI2\EPICOR\EDIData\Inbound\Demand</InboundPath>

    <ProcessNum>0</ProcessNum>

    <BackupFile>true</BackupFile>

    <AutoAction />

   <PrinterName />

    <AgentSchedNum>0</AgentSchedNum>

    <AgentID>SystemTaskAgent</AgentID>

    <AgentTaskNum>0</AgentTaskNum>

    <RecurringTask>false</RecurringTask>

    <RptPageSettings />

    <RptPrinterSettings />

    <RptVersion />

    <ReportStyleNum>0</ReportStyleNum>

    <WorkstationID>BOW-WKING 1</WorkstationID>

    <TaskNote />

    <ArchiveCode>0</ArchiveCode>

    <DateFormat>m/d/yyyy</DateFormat>

    <NumericFormat>,.</NumericFormat>

    <AgentCompareString />

    <ProcessID />

    <ProcessTaskNum>0</ProcessTaskNum>

    <DecimalsGeneral>2</DecimalsGeneral>

    <DecimalsCost>5</DecimalsCost>

    <DecimalsPrice>5</DecimalsPrice>

    <GlbDecimalsGeneral>2</GlbDecimalsGeneral>

    <GlbDecimalsCost>5</GlbDecimalsCost>

    <GlbDecimalsPrice>5</GlbDecimalsPrice>

    <FaxSubject />

    <FaxTo />

    <FaxNumber />

    <EMailTo />

    <EMailCC />

    <EMailBCC />

    <EMailBody />

    <AttachmentType />

    <ReportCurrencyCode />

    <ReportCultureCode />

    <RowIdent />

    <RowMod>A</RowMod>

  </ImportEDIParam>

</ImportEDIDataSet></parameter>

                <parameter name='agentID' type='string' ><![CDATA[SystemTaskAgent]]></parameter>

                <parameter name='agentSchedNum' type='int' ><![CDATA[0]]></parameter>

                <parameter name='agentTaskNum' type='int' ><![CDATA[0]]></parameter>

                <parameter name='maintProgram' type='string' ><![CDATA[Epicor.Mfg.UIProc.ImportEDI]]></parameter>

                </parameters>

                <returnValues>

                                <returnParameter name='ds' type='ImportEDIDataSet' ><ImportEDIDataSet xmlns="http://www.epicor.com/Mfg/100/Proc.ImportEDI/ImportEDI">

  <ImportEDIParam>

    <Continuous>false</Continuous>

    <ProcessingDelay>1</ProcessingDelay>

    <LogFilename>C:/Epicor/EpicorData/ImportEDI.log</LogFilename>

    <Inactive>false</Inactive>

    <InboundPath>\\TAF2K8EDI2\EPICOR\EDIData\Inbound\Demand</InboundPath>

    <ProcessNum>0</ProcessNum>

    <BackupFile>true</BackupFile>

    <AutoAction />


(Message over 64 KB, truncated)

Give me a full workflow example of what you ate trying to do (brief i hope).
And I'll see if i can throw something together... (no promises)

On Jul 1, 2015 5:31 PM, "William King wking@... [vantage]" <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p>

Smile and nod.

The only thing online that is close is your site I mentioned previously.

Thank you for your response and you ‘da man’.

I think I’m close, but I don’t know what I don’t know.

I’ll keep banging my head on this.

Â

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Wednesday, July 01, 2015 4:24 PM
To: Vantage
Subject: Re: [Vantage] Re: Submit the EDI process for outside VB.net program

Â

Â

There isn't any documentation for that :-D



Jose C Gomez

Software Engineer


T: 904.469.1524 mobile

E: jose@...
http://www.josecgomez.com
 Â
   Â


Quis custodiet ipsos custodes?

Â

On Wed, Jul 1, 2015 at 5:20 PM, William King wking@... [vantage] <vantage@yahoogroups.com> wrote:

Â

Change of question, where is documentation on how to do this? Don’t know what to put in for connection pool. I don’t see it in the trace.

Â

    Dim procEDI As New Epicor.Mfg.Proc.ImportEDI(connPool:= ????  ) ‘what connection pool

Â

I have googled and found (http://www.josecgomez.com/2013/10/01/how-to-export-a-crystal-report-through-code-by-using-reflection-in-epicor/) and I see that you have a line stating

Â

   PackingSlipPrint psp = new PackingSlipPrint(((Session)oTrans.Session).ConnectionPool);

Â

     Â

Here is the all the code, again I am trying to fire off the ImportEDI from VB.

========================

Imports Epicor.Mfg.Core.Session

Imports Epicor.Mfg.Core.BLConnectionPool

Imports Epicor.Mfg.Proc.ImportEDI

Imports Epicor.Mfg.UI.Proc.ImportEDI

Imports Epicor.Mfg.Core.CallContext.CallContextDataSet

Â

Public Class Form1

Â

   Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

Â

        Dim dsEDI As New Epicor.Mfg.Proc.ImportEDIDataSet

        Dim procEDI As New Epicor.Mfg.Proc.ImportEDI(connPool:= ????  ) ‘what connection pool

        Dim paramEDI = procEDI.GetNewParameters()

        paramEDI.ImportEDIParam.ContinuousColumn = 0

Â

        procEDI.SubmitToAgent(ds:=dsEDI, agentID:="SystemTaskAgent", agentSchedNum:=0, agentTaskNum:=0, maintProgram:="Epicor.Mfg.UIProc.ImportEDI")

   End Sub

End Class

Â

Here is the trace from “GetNewXXX” down.

========================

<tracePacket>

               <businessObject>Epicor.Mfg.Proc.ImportEDI</businessObject>

               <methodName>GetNewParameters</methodName>

               <returnType>Epicor.Mfg.Proc.ImportEDIDataSet</returnType>

               <localTime>7/1/2015 15:54:16:4212683 PM</localTime>

               <executionTime>16</executionTime>

               <parameters>

                               <parameter name='cc' type='Epicor.Mfg.Core.CallContext.CallContextDataSet' ><CallContextDataSet xmlns="http://www.epicor.com/Mfg/100/BO.CallContext/CallContextDataSet" /></parameter>

               </parameters>

               <returnValues>

                               <returnParameter name='MethodReturned' type='Epicor.Mfg.Proc.ImportEDIDataSet' ><ImportEDIDataSet xmlns="http://www.epicor.com/Mfg/100/Proc.ImportEDI/ImportEDI">

 <ImportEDIParam>

   <Continuous>false</Continuous>

   <ProcessingDelay>1</ProcessingDelay>

   <LogFilename>C:/Epicor/EpicorData/ImportEDI.log</LogFilename>

   <Inactive>false</Inactive>

   <InboundPath>\\TAF2K8EDI2\EPICOR\EDIData\Inbound\Demand</InboundPath>

   <ProcessNum>0</ProcessNum>

   <BackupFile>false</BackupFile>

   <AutoAction />

   <PrinterName />

   <AgentSchedNum>0</AgentSchedNum>

   <AgentID />

   <AgentTaskNum>0</AgentTaskNum>

   <RecurringTask>false</RecurringTask>

   <RptPageSettings />

   <RptPrinterSettings />

   <RptVersion />

   <ReportStyleNum>0</ReportStyleNum>

   <WorkstationID />

   <TaskNote />

   <ArchiveCode>0</ArchiveCode>

   <DateFormat />

   <NumericFormat />

   <AgentCompareString />

   <ProcessID />

   <ProcessTaskNum>0</ProcessTaskNum>

   <DecimalsGeneral>2</DecimalsGeneral>

   <DecimalsCost>5</DecimalsCost>

   <DecimalsPrice>5</DecimalsPrice>

   <GlbDecimalsGeneral>2</GlbDecimalsGeneral>

   <GlbDecimalsCost>5</GlbDecimalsCost>

   <GlbDecimalsPrice>5</GlbDecimalsPrice>

   <FaxSubject />

   <FaxTo />

   <FaxNumber />

   <EMailTo />

   <EMailCC />

   <EMailBCC />

   <EMailBody />

   <AttachmentType />

   <ReportCurrencyCode />

   <ReportCultureCode />

   <RowIdent />

   <RowMod>A</RowMod>

 </ImportEDIParam>

</ImportEDIDataSet></returnParameter>

               </returnValues>

               <paramDataSetChanges>

               </paramDataSetChanges>

</tracePacket>

Â

Â

<tracePacket>

               <businessObject>Epicor.Mfg.Proc.ImportEDI</businessObject>

               <methodName>SubmitToAgent</methodName>

               <returnType>void</returnType>

               <localTime>7/1/2015 15:54:19:5434245 PM</localTime>

               <executionTime>96</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='ds' type='ImportEDIDataSet' ><ImportEDIDataSet xmlns="http://www.epicor.com/Mfg/100/Proc.ImportEDI/ImportEDI">

 <ImportEDIParam>

   <Continuous>false</Continuous>

   <ProcessingDelay>1</ProcessingDelay>

   <LogFilename>C:/Epicor/EpicorData/ImportEDI.log</LogFilename>

   <Inactive>false</Inactive>

   <InboundPath>\\TAF2K8EDI2\EPICOR\EDIData\Inbound\Demand</InboundPath>

   <ProcessNum>0</ProcessNum>

   <BackupFile>true</BackupFile>

   <AutoAction />

  <PrinterName />

   <AgentSchedNum>0</AgentSchedNum>

   <AgentID>SystemTaskAgent</AgentID>

   <AgentTaskNum>0</AgentTaskNum>

   <RecurringTask>false</RecurringTask>

   <RptPageSettings />

   <RptPrinterSettings />

   <RptVersion />

   <ReportStyleNum>0</ReportStyleNum>

   <WorkstationID>BOW-WKING 1</WorkstationID>

   <TaskNote />

   <ArchiveCode>0</ArchiveCode>

   <DateFormat>m/d/yyyy</DateFormat>

   <NumericFormat>,.</NumericFormat>

   <AgentCompareString />

   <ProcessID />

   <ProcessTaskNum>0</ProcessTaskNum>

   <DecimalsGeneral>2</DecimalsGeneral>

   <DecimalsCost>5</DecimalsCost>

   <DecimalsPrice>5</DecimalsPrice>

   <GlbDecimalsGeneral>2</GlbDecimalsGeneral>

   <GlbDecimalsCost>5</GlbDecimalsCost>

   <GlbDecimalsPrice>5</GlbDecimalsPrice>

   <FaxSubject />

   <FaxTo />

   <FaxNumber />

   <EMailTo />

   <EMailCC />

   <EMailBCC />

   <EMailBody />

   <AttachmentType />

   <ReportCurrencyCode />

   <ReportCultureCode />

   <RowIdent />

   <RowMod>A</RowMod>

 </ImportEDIParam>

</ImportEDIDataSet></parameter>

               <parameter name='agentID' type='string' ><![CDATA[SystemTaskAgent]]></parameter>

               <parameter name='agentSchedNum' type='int' ><![CDATA[0]]></parameter>

               <parameter name='agentTaskNum' type='int' ><![CDATA[0]]></parameter>

               <parameter name='maintProgram' type='string' ><![CDATA[Epicor.Mfg.UIProc.ImportEDI]]></parameter>

               </parameters>

               <returnValues>

                               <returnParameter name='ds' type='ImportEDIDataSet' ><ImportEDIDataSet xmlns="http://www.epicor.com/Mfg/100/Proc.ImportEDI/ImportEDI">

 <ImportEDIParam>

   <Continuous>false</Continuous>

   <ProcessingDelay>1</ProcessingDelay>

   <LogFilename>C:/Epicor/EpicorData/ImportEDI.log</LogFilename>

   <Inactive>false</Inactive>

   <InboundPath>\\TAF2K8EDI2\EPICOR\EDIData\Inbound\Demand</InboundPath>

   <ProcessNum>0</ProcessNum>

   <BackupFile>true</BackupFile>

   <AutoAction />

   <PrinterName />

   <AgentSchedNum>0</AgentSchedNum>

   <AgentID>SystemTaskAgent</AgentID>

   <AgentTaskNum>0</AgentTaskNum>

   <RecurringTask>false</RecurringTask>

   <RptPageSettings />

   <RptPrinterSettings />

   <RptVersion />

   <ReportStyleNum>0</ReportStyleNum>

   <WorkstationID>BOW-WKING 1</WorkstationID>

   <TaskNote />

   <ArchiveCode>0</ArchiveCode>

   <DateFormat>m/d/yyyy</DateFormat>

   <NumericFormat>,.</NumericFormat>

   <AgentCompareString />

   <ProcessID />

   <ProcessTaskNum>0</ProcessTaskNum>

   <DecimalsGeneral>2</DecimalsGeneral>

   <DecimalsCost>5</DecimalsCost>

   <DecimalsPrice>5</DecimalsPrice>

   <GlbDecimalsGeneral>2</GlbDecimalsGeneral>

   <GlbDecimalsCost>5</GlbDecimalsCost>

   <GlbDecimalsPrice>5</GlbDecimalsPrice>

   <FaxSubject />

   <FaxTo />

   <FaxNumber />

   <EMailTo />

   <EMailCC />

   <EMailBCC />

   <EMailBody />

   <AttachmentType />

   <ReportCurrencyCode />

   <ReportCultureCode />

   <RowIdent />

   <RowMod>A</RowMod>

 </ImportEDIParam>

</ImportEDIDataSet></returnParameter>

               </returnValues>

               <paramDataSetChanges>

                               <paramDataSet name='ds' useDataSetNbr='0' >

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='Continuous' ><![CDATA[False]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessingDelay' ><![CDATA[1]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='LogFilename' ><![CDATA[C:/Epicor/EpicorData/ImportEDI.log]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='Inactive' ><![CDATA[False]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='InboundPath' ><![CDATA[\\TAF2K8EDI2\EPICOR\EDIData\Inbound\Demand]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ProcessNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='BackupFile' ><![CDATA[True]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AutoAction' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='PrinterName' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentSchedNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentID' ><![CDATA[SystemTaskAgent]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentTaskNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RecurringTask' ><![CDATA[False]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptPageSettings' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptPrinterSettings' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='RptVersion' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ReportStyleNum' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='WorkstationID' ><![CDATA[BOW-WKING 1]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='TaskNote' ><![CDATA[]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='ArchiveCode' ><![CDATA[0]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='DateFormat' ><![CDATA[m/d/yyyy]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='NumericFormat' ><![CDATA[,.]]></changedValue>

                                               <changedValue tableName='ImportEDIParam' rowState='Added' rowNum='0' colName='AgentCompareString' ><![CDATA[]]></changedValue>

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>

    <Fridays>false</Fridays>

    <Saturdays>false</Saturdays>

    <Sundays>false</Sundays>

    <Enabled>false</Enabled>

    <AppSrvConnectionID />

    <IntervalTime>0</IntervalTime>

    <RowIdent>0x003d0da200010000574845524520282850524f47524553535f5245434944203d200000001e0008fffb00000000000000000000000000004daf29292000</RowIdent>

    <RowMod />

  </SysAgentSchedList>

  <SysAgentSchedList>

    <AgentID>SystemTaskAgent</AgentID>

    <AgentSchedNum>7</AgentSchedNum>

    <SchedDesc>Thursday Schedule</SchedDesc>

    <SchedType>Weekly</SchedType>

    <NextRunDate>2015-06-04T00:00:00-05:00</NextRunDate>

    <NextRunTime>81300</NextRunTime>

    <Recurrences>0</Recurrences>

    <MonthlyOption>Day</MonthlyOption>

    <DayOfMonth>31</DayOfMonth>

    <WeekOfMonth>Last</WeekOfMonth>

    <DayOfWeek>5</DayOfWeek>

    <EveryNWeeks>1</EveryNWeeks>

    <LastRunDate>2015-05-28T00:00:00-05:00</LastRunDate>

    <LastRunTime>81303</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>0x003d0da200010000574845524520282850524f47524553535f5245434944203d200000001e0008fffb00000000000000000000000000023d9c29292000</RowIdent>

    <RowMod />

  </SysAgentSchedList>

  <SysAgentSchedList>

    <AgentID>SystemTaskAgent</AgentID>

    <AgentSchedNum>8</AgentSchedNum>

    <SchedDesc>MRP</SchedDesc>

    <SchedType>Daily</SchedType>

    <NextRunDate>2015-05-30T00:00:00-05:00</NextRunDate>

    <NextRunTime>7200</NextRunTime>

    <Recurrences>0</Recurrences>

    <MonthlyOption>Day</MonthlyOption>

    <DayOfMonth>31</DayOfMonth>

    <WeekOfMonth>Last</WeekOfMonth>

    <DayOfWeek>6</DayOfWeek>

    <EveryNWeeks>1</EveryNWeeks>

    <LastRunDate>2015-05-29T00:00:00-05:00</LastRunDate>

    <LastRunTime>7205</LastRunTime>

    <Mondays>true</Mondays>

    <Tuesdays>true</Tuesdays>

    <Wednesdays>true</Wednesdays>

    <Thursdays>true</Thursdays>

    <Fridays>true</Fridays>

    <Saturdays>true</Saturdays>

    <Sundays>false</Sundays>

    <Enabled>false</Enabled>

    <AppSrvConnectionID />

    <IntervalTime>0</IntervalTime>

    <RowIdent>0x003d0da200010000574845524520282850524f47524553535f5245434944203d200000001e0008fffb0000000000000000000000000002752129292000</RowIdent>

    <RowMod />

  </SysAgentSchedList>

  <SysAgentSchedList>

    <AgentID>SystemTaskAgent</AgentID>

    <AgentSchedNum>9</AgentSchedNum>

    <SchedDesc>Every5Mins</SchedDesc>

    <SchedType>Interval</SchedType>

    <NextRunDate>2015-05-29T00:00:00-05:00</NextRunDate>

    <NextRunTime>22287</NextRunTime>

    <Recurrences>0</Recurrences>

    <MonthlyOption>Day</MonthlyOption>

    <DayOfMonth>31</DayOfMonth>

    <WeekOfMonth>Last</WeekOfMonth>

    <DayOfWeek>6</DayOfWeek>

    <EveryNWeeks>1</EveryNWeeks>

    <LastRunDate>2015-05-29T00:00:00-05:00</LastRunDate>

    <LastRunTime>21987</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>500</IntervalTime>

    <RowIdent>0x003d0da200010000574845524520282850524f47524553535f5245434944203d200000001e0008fffb00000000000000000000000000029b6729292000</RowIdent>

    <RowMod />

  </SysAgentSchedList>

</SysAgentSchedListDataSet></returnParameter>

                </returnValues>

                <paramDataSetChanges>

                </paramDataSetChanges>

</tracePacket>

 

 

<tracePacket>

                <businessObject>Epicor.Mfg.BO.ProcessSet</businessObject>

 &nb

(Message over 64 KB, truncated)



Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Thu, Jul 2, 2015 at 8:52 AM, William King wking@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p>

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>

   <Fridays>false</Fridays>

   <Saturdays>false</Saturdays>

   <Sundays>false</Sundays>

   <Enabled>false</Enabled>

   <AppSrvConnectionID />

   <IntervalTime>0</IntervalTime>

   <RowIdent>0x003d0da200010000574845524520282850524f47524553535f5245434944203d200000001e0008fffb00000000000000000000000000004daf29292000</RowIdent>

   <RowMod />

 </SysAgentSchedList>

 <SysAgentSchedList>

   <AgentID>SystemTaskAgent</AgentID>

   <AgentSchedNum>7</AgentSchedNum>

   <SchedDesc>Thursday Schedule</SchedDesc>

   <SchedType>Weekly</SchedType>

   <NextRunDate>2015-06-04T00:00:00-05:00</NextRunDate>

   <NextRunTime>81300</NextRunTime>

   <Recurrences>0</Recurrences>

   <MonthlyOption>Day</MonthlyOption>

   <DayOfMonth>31</DayOfMonth>

   <WeekOfMonth>Last</WeekOfMonth>

   <DayOfWeek>5</DayOfWeek>

   <EveryNWeeks>1</EveryNWeeks>

   <LastRunDate>2015-05-28T00:00:00-05:00</LastRunDate>

   <LastRunTime>81303</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>0x003d0da200010000574845524520282850524f47524553535f5245434944203d200000001e0008fffb00000000000000000000000000023d9c29292000</RowIdent>

   <RowMod />

 </SysAgentSchedList>

 <SysAgentSchedList>

   <AgentID>SystemTaskAgent</AgentID>

   <AgentSchedNum>8</AgentSchedNum>

   <SchedDesc>MRP</SchedDesc>

   <SchedType>Daily</SchedType>

   <NextRunDate>2015-05-30T00:00:00-05:00</NextRunDate>

   <NextRunTime>7200</NextRunTime>

   <Recurrences>0</Recurrences>

   <MonthlyOption>Day</MonthlyOption>

   <DayOfMonth>31</DayOfMonth>

   <WeekOfMonth>Last</WeekOfMonth>

   <DayOfWeek>6</DayOfWeek>

   <EveryNWeeks>1</EveryNWeeks>

   <LastRunDate>2015-05-29T00:00:00-05:00</LastRunDate>

   <LastRunTime>7205</LastRunTime>

   <Mondays>true</Mondays>

   <Tuesdays>true</Tuesdays>

   <Wednesdays>true</Wednesdays>

   <Thursdays>true</Thursdays>

   <Fridays>true</Fridays>

   <Saturdays>true</Saturdays>

   <Sundays>false</Sundays>

   <Enabled>false</Enabled>

   <AppSrvConnectionID />

   <IntervalTime>0</IntervalTime>

   <RowIdent>0x003d0da200010000574845524520282850524f47524553535f5245434944203d200000001e0008fffb0000000000000000000000000002752129292000</RowIdent>

   <RowMod />

 </SysAgentSchedList>

 <SysAgentSchedList>

   <AgentID>SystemTaskAgent</AgentID>

   <AgentSchedNum>9</AgentSchedNum>

   <SchedDesc>Every5Mins</SchedDesc>

   <SchedType>Interval</SchedType>

   <NextRunDate>2015-05-29T00:00:00-05:00</NextRunDate>

   <NextRunTime>22287</NextRunTime>

   <Recurrences>0</Recurrences>

   <MonthlyOption>Day</MonthlyOption>

   <DayOfMonth>31</DayOfMonth>

   <WeekOfMonth>Last</WeekOfMonth>

   <DayOfWeek>6</DayOfWeek>

   <EveryNWeeks>1</EveryNWeeks>

   <LastRunDate>2015-05-29T00:00:00-05:00</LastRunDate>

   <LastRunTime>21987</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>500</IntervalTime>

   <RowIdent>0x003d0da200010000574845524520282850524f47524553535f5245434944203d200000001e0008fffb00000000000000000000000000029b6729292000</RowIdent>

   <RowMod />

 </SysAgentSchedList>

</SysAgentSchedListDataSet></returnParameter>

               </returnValues>

               <paramDataSetChanges>

               </paramDataSetChanges>

</tracePacket>

Â

Â

<tracePacket>

               <businessObject>Epicor.Mfg.BO.ProcessSet</businessObject>

               <methodName>GetList</methodName>

               <returnType>Epicor.Mfg.BO.ProcessSetListDataSet</returnType>

               <localTime>7/1/2015 15:54:16:3712658 PM</localTime>

               <executionTime>41</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='whereClause' type='string' ><![CDATA[ BY Description]]></parameter>

               <parameter name='pageSize' type='int' ><![CDATA[0]]></parameter>

               <parameter name='absolutePage' type='int' ><![CDATA[0]]></parameter>

                               <parameter name='morePages' type='bool' ><![CDATA[]]></parameter>

               </parameters>

               <returnValues>

               <returnParameter name='morePages' type='bool' ><![CDATA[False]]></returnParameter>

                               <returnParameter name='MethodReturned' type='Epicor.Mfg.BO.ProcessSetListDataSet' ><ProcessSetListDataSet xmlns="http://www.epicor.com/Mfg/100/BO.ProcessSet/ProcessSetList">

 <ProcessSetList>

   <ProcessID>zScheduleLoadGraph - TAF68128</ProcessID>

   <Description>Schedule Load Graph Cube Queries</Description>

   <SystemProcess>true</SystemProcess>

   <SysRowID>e6f22dd7-cfc7-caa4-dc11-31e600a502f6</SysRowID>

   <SysRevID>0</SysRevID>

   <BitFlag>0</BitFlag>

   <RowIdent>0x003d0cad00010000574845524520282850524f47524553535f5245434944203d20000000070008fffb0000000000000000000000000000000129292000</RowIdent>

   <RowMod />

   <DBRowIdent>AD0MrQABAABXSEVSRSAoKFBST0dSRVNTX1JFQ0lEID0gAAAABwAI//sAAAAAAAAAAAAAAAAAAAABKSkgAA==</DBRowIdent>

 </ProcessSetList>

 <ProcessSetList>

   <ProcessID>zScheduleLoadGraph - EPIC01 - EPIC02 - TAF68128</ProcessID>

   <Description>Schedule Load Graph Cube Queries</Description>

   <SystemProcess>true</SystemProcess>

   <SysRowID>e6f22dd7-cfc7-caa4-dc11-31e600a502f6</SysRowID>

   <SysRevID>0</SysRevID>

   <BitFlag>0</BitFlag>

   <RowIdent>0x003d0cad00010000574845524520282850524f47524553535f5245434944203d20000000070008fffb0000000000000000000000000000000629292000</RowIdent>

   <RowMod />

   <DBRowIdent>AD0MrQABAABXSEVSRSAoKFBST0dSRVNTX1JFQ0lEID0gAAAABwAI//sAAAAAAAAAAAAAAAAAAAAGKSkgAA==</DBRowIdent>

 </ProcessSetList>

 <ProcessSetList>

   <ProcessID>zScheduleLoadGraph - EPIC01 - EPIC03 - TAF68128</ProcessID>

   <Description>Schedule Load Graph Cube Queries</Description>

   <SystemProcess>true</SystemProcess>

   <SysRowID>e6f22dd7-cfc7-caa4-dc11-31e600a502f6</SysRowID>

   <SysRevID>0</SysRevID>

   <BitFlag>0</BitFlag>

   <RowIdent>0x003d0cad00010000574845524520282850524f47524553535f5245434944203d20000000070008fffb0000000000000000000000000000000729292000</RowIdent>

   <RowMod />

   <DBRowIdent>AD0MrQABAABXSEVSRSAoKFBST0dSRVNTX1JFQ0lEID0gAAAABwAI//sAAAAAAAAAAAAAAAAAAAAHKSkgAA==</DBRowIdent>

 </ProcessSetList>

 <ProcessSetList>

   <ProcessID>zScheduleLoadGraph - EPIC01 - EPIC04 - TAF68128</ProcessID>

   <Description>Schedule Load Graph Cube Queries</Description>

   <SystemProcess>

(Message over 64 KB, truncated)

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

 

 



Jose C Gomez

Software Engineer


T: 904.469.1524 mobile


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>


(Message over 64 KB, truncated)