Lib.FileTransfer Custom Code

#ygrps-yiv-793152126 P.ygrps-yiv-793152126b1e7fd89-0279-4ffe-a16a-1f1bcba0d537 { MARGIN:0cm 0cm 0pt;} #ygrps-yiv-793152126 LI.ygrps-yiv-793152126b1e7fd89-0279-4ffe-a16a-1f1bcba0d537 { MARGIN:0cm 0cm 0pt;} #ygrps-yiv-793152126 DIV.ygrps-yiv-793152126b1e7fd89-0279-4ffe-a16a-1f1bcba0d537 { MARGIN:0cm 0cm 0pt;} #ygrps-yiv-793152126 TABLE.ygrps-yiv-793152126b1e7fd89-0279-4ffe-a16a-1f1bcba0d537Table { MARGIN:0cm 0cm 0pt;} #ygrps-yiv-793152126 DIV.ygrps-yiv-793152126Section1 { }

Yes we do "Lurk" :)

Sent from my iPhone

On 25 Feb 2016, at 16:00, Jose Gomez jose@... [vantage] <vantage@yahoogroups.com> wrote:

 

​
1. Is the automated copying and saving of an attachment to a common file a customization in our database, or is it part of EPICOR's standard package? 

Epicor automatically moves the files from your location to the \\server\Path that is setup in the Attachment Setup in Company Maintenance. That wasn't a customization you did... 

2. Where does Lib.FileTransfer (business object) live in EPICOR?  Can I modify the code so that the DMT tool also initiates an automated copying and saving of the attachment?  

I am not sure of what DMT Does with attachments I suspect that someone from .NET IT will respond to this point they lurk on the list too



Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Thu, Feb 25, 2016 at 10:21 AM, tom.sederquist@... [vantage] <vantage@yahoogroups.com> wrote:
 

Jose Gomez,


When I manually attach a pdf file to a part revision in EPICOR, the pdf file is copied from its original location and saved in a common file path with all other part revision pdf attachments.  However, when I use the DMT tool to attach a file to a part revision, the original file path remains for the attachment within EPICOR and no copy of the file is made and placed in the common file path!  


A few questions:


​​
1. Is the automated copying and saving of an attachment to a common file a customization in our database, or is it part of EPICOR's standard package? 


2. Where does Lib.FileTransfer (business object) live in EPICOR?  Can I modify the code so that the DMT tool also initiates an automated copying and saving of the attachment?  



I used a data trace in EPICOR and I am pretty sure that at some point a customization was created in our database in order to send attachments to a common folder.  I would like to find and modify this customization so that it works for the DMT tool.  Or, if I can't figure that out, I would like to delete it so that we don't have attachments that are scattered all over the place depending on how they were attached.


P.S.  Also, anyone can respond haha... I just addressed this to Jose because he has become sort of a legend here at Trystar.  I think he knows more about EPICOR than EPICOR knows about itself.  






The trace produced the following code (there is more, but I think this is the meat and potatoes of the situation):


<tracePacket>

<businessObject>Epicor.Mfg.Lib.FileTransfer</businessObject>

<methodName>FileExists</methodName>

<returnType>bool</returnType>

<localTime>2/25/2016 08:24:22:9322802 AM</localTime>

<executionTime>183</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='serverPath' type='System.String' ><![CDATA[\\10.134.80.10\Shared Data\Admin1\EpicorAttachments\Live\TS\PartRev\43743 (GDS-085W-LMF-C2KQ).pdf]]></parameter>

</parameters>

<paramDataSetChanges>

</paramDataSetChanges>

</tracePacket>



<tracePacket>

<businessObject>Epicor.Mfg.Lib.FileTransfer</businessObject>

<methodName>UploadFile</methodName>

<returnType>void</returnType>

<localTime>2/25/2016 08:24:23:6342937 AM</localTime>

<executionTime>395</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='serverPath' type='System.String' ><![CDATA[\\10.134.80.10\Shared Data\Admin1\EpicorAttachments\Live\TS\PartRev\43743 (GDS-085W-LMF-C2KQ).pdf]]></parameter>

<parameter name='binaryData' type='System.Boolean' ><![CDATA[True]]></parameter>

<parameter name='ds' type='Epicor.Mfg.Lib.FileTransferDataSet' ><FileTransferDataSet xmlns="http://www.epicor.com/Mfg/100/BO.FileTransfer/FileTransfer" /></parameter>

</parameters>

<paramDataSetChanges>

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

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

<changedValue tableName='FileTransfer' rowState='Added' rowNum='0' colName='Data' ><![CDATA[JVBERi0xLjcgCiXi48/TIAoxIDAgb2JqIAo8PCAKL1R5cGUgL0NhdGFsb2cgCi9QYWdlcyAyIDAg





Stephen Edginton (Beng) | Solutions & Technical Director

Mobile:  +44 7734 858415
DDI:  +44 121 314 1179
Main:  +44 (0) 121 314 1170
Web:  www.dotnetit.co.uk

Dot Net IT Limited, One St Kenelm Court, Steel Park Road, Halesowen, B62 8HD, United Kingdom.

DotNetIT

Epicor Platinum Partner

Epicor Alliance Partner

Jose Gomez,


When I manually attach a pdf file to a part revision in EPICOR, the pdf file is copied from its original location and saved in a common file path with all other part revision pdf attachments.  However, when I use the DMT tool to attach a file to a part revision, the original file path remains for the attachment within EPICOR and no copy of the file is made and placed in the common file path!  


A few questions:


1. Is the automated copying and saving of an attachment to a common file a customization in our database, or is it part of EPICOR's standard package? 


2. Where does Lib.FileTransfer (business object) live in EPICOR?  Can I modify the code so that the DMT tool also initiates an automated copying and saving of the attachment?  



I used a data trace in EPICOR and I am pretty sure that at some point a customization was created in our database in order to send attachments to a common folder.  I would like to find and modify this customization so that it works for the DMT tool.  Or, if I can't figure that out, I would like to delete it so that we don't have attachments that are scattered all over the place depending on how they were attached.


P.S.  Also, anyone can respond haha... I just addressed this to Jose because he has become sort of a legend here at Trystar.  I think he knows more about EPICOR than EPICOR knows about itself.  






The trace produced the following code (there is more, but I think this is the meat and potatoes of the situation):


<tracePacket>

<businessObject>Epicor.Mfg.Lib.FileTransfer</businessObject>

<methodName>FileExists</methodName>

<returnType>bool</returnType>

<localTime>2/25/2016 08:24:22:9322802 AM</localTime>

<executionTime>183</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='serverPath' type='System.String' ><![CDATA[\\10.134.80.10\Shared Data\Admin1\EpicorAttachments\Live\TS\PartRev\43743 (GDS-085W-LMF-C2KQ).pdf]]></parameter>

</parameters>

<paramDataSetChanges>

</paramDataSetChanges>

</tracePacket>



<tracePacket>

<businessObject>Epicor.Mfg.Lib.FileTransfer</businessObject>

<methodName>UploadFile</methodName>

<returnType>void</returnType>

<localTime>2/25/2016 08:24:23:6342937 AM</localTime>

<executionTime>395</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='serverPath' type='System.String' ><![CDATA[\\10.134.80.10\Shared Data\Admin1\EpicorAttachments\Live\TS\PartRev\43743 (GDS-085W-LMF-C2KQ).pdf]]></parameter>

<parameter name='binaryData' type='System.Boolean' ><![CDATA[True]]></parameter>

<parameter name='ds' type='Epicor.Mfg.Lib.FileTransferDataSet' ><FileTransferDataSet xmlns="http://www.epicor.com/Mfg/100/BO.FileTransfer/FileTransfer" /></parameter>

</parameters>

<paramDataSetChanges>

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

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

<changedValue tableName='FileTransfer' rowState='Added' rowNum='0' colName='Data' ><![CDATA[JVBERi0xLjcgCiXi48/TIAoxIDAgb2JqIAo8PCAKL1R5cGUgL0NhdGFsb2cgCi9QYWdlcyAyIDAg


​
1. Is the automated copying and saving of an attachment to a common file a customization in our database, or is it part of EPICOR's standard package?Â

Epicor automatically moves the files from your location to the \\server\Path that is setup in the Attachment Setup in Company Maintenance. That wasn't a customization you did...Â

2. Where does Lib.FileTransfer (business object) live in EPICOR? Can I modify the code so that the DMT tool also initiates an automated copying and saving of the attachment? Â

I am not sure of what DMT Does with attachments I suspect that someone from .NET IT will respond to this point they lurk on the list too



Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Thu, Feb 25, 2016 at 10:21 AM, tom.sederquist@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p></p><p><span>Jose Gomez,</span></p><p><br></p><p><span style="white-space:pre-wrap;">	</span>When I manually attach a pdf file to a part revision in EPICOR, the pdf file is copied from its original location and saved in a common file path with all other part revision pdf attachments.  However, when I use the DMT tool to attach a file to a part revision, the original file path remains for the attachment within EPICOR and no copy of the file is made and placed in the common file path!  </p><p><br></p><p><span style="font-weight:bold;">A few questions:</span></p><p><br></p><p><span style="font-weight:bold;"></span></p><div class="ygrps-yiv-181177632gmail_default" style="font-family:verdana, sans-serif;font-size:small;display:inline;">​​</div>1. <span>Is the automated copying and saving of an attachment to a common file a customization in our database, or is it part of EPICOR&#39;s standard package? </span><p></p><p><span style="font-weight:bold;"><br></span></p><p><span style="font-weight:bold;">2<span>. Where does Lib.FileTransfer (business object) live in EPICOR?  Can I modify the code so that the DMT tool also initiates an automated copying and saving of the attachment?  </span></span></p><p><br></p><p><br></p><p><span style="white-space:pre-wrap;">	</span>I used a data trace in EPICOR and I am pretty sure that at some point a customization was created in our database in order to send attachments to a common folder.  I would like to find and modify this customization so that it works for the DMT tool.  Or, if I can&#39;t figure that out, I would like to delete it so that we don&#39;t have attachments that are scattered all over the place depending on how they were attached.</p><p><br></p><p><span style="word-spacing:normal;">P.S.  </span><span style="word-spacing:normal;">Also, anyone can respond haha... I just addressed this to Jose because he has become sort of a legend here at Trystar.  I think he knows more about EPICOR than EPICOR knows about itself.  </span><span style="word-spacing:normal;white-space:pre-wrap;">	</span><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p>The trace produced the following code (there is more, but I think this is the meat and potatoes of the situation):</p><p><br></p><p>&lt;tracePacket&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;businessObject&gt;Epicor.Mfg.Lib.FileTransfer&lt;/businessObject&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;methodName&gt;FileExists&lt;/methodName&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;returnType&gt;bool&lt;/returnType&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;localTime&gt;2/25/2016 08:24:22:9322802 AM&lt;/localTime&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;executionTime&gt;183&lt;/executionTime&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;parameters&gt;</p><p><span style="white-space:pre-wrap;">		</span>&lt;parameter name=&#39;cc&#39; type=&#39;Epicor.Mfg.Core.CallContext.CallContextDataSet&#39; &gt;&lt;CallContextDataSet xmlns=&quot;<a rel="nofollow" target="_blank" href="http://www.epicor.com/Mfg/100/BO.CallContext/CallContextDataSet">http://www.epicor.com/Mfg/100/BO.CallContext/CallContextDataSet</a>&quot; /&gt;&lt;/parameter&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;parameter name=&#39;serverPath&#39; type=&#39;System.String&#39; &gt;&lt;![CDATA[&#92;&#92;10.134.80.10&#92;Shared Data&#92;Admin1&#92;EpicorAttachments&#92;Live&#92;TS&#92;PartRev&#92;43743 (GDS-085W-LMF-C2KQ).pdf]]&gt;&lt;/parameter&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;/parameters&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;paramDataSetChanges&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;/paramDataSetChanges&gt;</p><p>&lt;/tracePacket&gt;</p><p><br></p><p><br></p><p>&lt;tracePacket&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;businessObject&gt;Epicor.Mfg.Lib.FileTransfer&lt;/businessObject&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;methodName&gt;UploadFile&lt;/methodName&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;returnType&gt;void&lt;/returnType&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;localTime&gt;2/25/2016 08:24:23:6342937 AM&lt;/localTime&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;executionTime&gt;395&lt;/executionTime&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;parameters&gt;</p><p><span style="white-space:pre-wrap;">		</span>&lt;parameter name=&#39;cc&#39; type=&#39;Epicor.Mfg.Core.CallContext.CallContextDataSet&#39; &gt;&lt;CallContextDataSet xmlns=&quot;<a rel="nofollow" target="_blank" href="http://www.epicor.com/Mfg/100/BO.CallContext/CallContextDataSet">http://www.epicor.com/Mfg/100/BO.CallContext/CallContextDataSet</a>&quot; /&gt;&lt;/parameter&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;parameter name=&#39;serverPath&#39; type=&#39;System.String&#39; &gt;&lt;![CDATA[&#92;&#92;10.134.80.10&#92;Shared Data&#92;Admin1&#92;EpicorAttachments&#92;Live&#92;TS&#92;PartRev&#92;43743 (GDS-085W-LMF-C2KQ).pdf]]&gt;&lt;/parameter&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;parameter name=&#39;binaryData&#39; type=&#39;System.Boolean&#39; &gt;&lt;![CDATA[True]]&gt;&lt;/parameter&gt;</p><p><span style="white-space:pre-wrap;">		</span>&lt;parameter name=&#39;ds&#39; type=&#39;Epicor.Mfg.Lib.FileTransferDataSet&#39; &gt;&lt;FileTransferDataSet xmlns=&quot;<a rel="nofollow" target="_blank" href="http://www.epicor.com/Mfg/100/BO.FileTransfer/FileTransfer">http://www.epicor.com/Mfg/100/BO.FileTransfer/FileTransfer</a>&quot; /&gt;&lt;/parameter&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;/parameters&gt;</p><p><span style="white-space:pre-wrap;">	</span>&lt;paramDataSetChanges&gt;</p><p><span style="white-space:pre-wrap;">		</span>&lt;paramDataSet name=&#39;ds&#39; useDataSetNbr=&#39;0&#39; &gt;</p><p><span style="white-space:pre-wrap;">			</span>&lt;changedValue tableName=&#39;FileTransfer&#39; rowState=&#39;Added&#39; rowNum=&#39;0&#39; colName=&#39;Sequence&#39; &gt;&lt;![CDATA[1]]&gt;&lt;/changedValue&gt;</p><p><span style="white-space:pre-wrap;">			</span>&lt;changedValue tableName=&#39;FileTransfer&#39; rowState=&#39;Added&#39; rowNum=&#39;0&#39; colName=&#39;Data&#39; &gt;&lt;![CDATA[JVBERi0xLjcgCiXi48/TIAoxIDAgb2JqIAo8PCAKL1R5cGUgL0NhdGFsb2cgCi9QYWdlcyAyIDAg</p><p><br></p><p></p>

</div>
 


<div style="color:rgb(255,255,255);min-height:0px;"></div>

#ygrps-yiv-2069193457 P.ygrps-yiv-2069193457b1e7fd89-0279-4ffe-a16a-1f1bcba0d537 { MARGIN:0cm 0cm 0pt;} #ygrps-yiv-2069193457 LI.ygrps-yiv-2069193457b1e7fd89-0279-4ffe-a16a-1f1bcba0d537 { MARGIN:0cm 0cm 0pt;} #ygrps-yiv-2069193457 DIV.ygrps-yiv-2069193457b1e7fd89-0279-4ffe-a16a-1f1bcba0d537 { MARGIN:0cm 0cm 0pt;} #ygrps-yiv-2069193457 TABLE.ygrps-yiv-2069193457b1e7fd89-0279-4ffe-a16a-1f1bcba0d537Table { MARGIN:0cm 0cm 0pt;} #ygrps-yiv-2069193457 DIV.ygrps-yiv-2069193457Section1 { }

DMT doesn't attempt to move files you tell it the path it just associates them.

The Epicor client based on document types / sharepoint/ folder etc performs the copy.
Also the use of file transfer business object vs a file copy is actually down to a client side parameter in the config.
This isn't just from the company config the document types can override these.

So in short DMT was not designed and will not perform the copy, you have control of where the file is you reference to attach.

Hope that clears things up.



On 25 Feb 2016, at 16:00, Jose Gomez jose@... [vantage] <vantage@yahoogroups.com> wrote:

 

​
1. Is the automated copying and saving of an attachment to a common file a customization in our database, or is it part of EPICOR's standard package? 

Epicor automatically moves the files from your location to the \\server\Path that is setup in the Attachment Setup in Company Maintenance. That wasn't a customization you did... 

2. Where does Lib.FileTransfer (business object) live in EPICOR?  Can I modify the code so that the DMT tool also initiates an automated copying and saving of the attachment?  

I am not sure of what DMT Does with attachments I suspect that someone from .NET IT will respond to this point they lurk on the list too



Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Thu, Feb 25, 2016 at 10:21 AM, tom.sederquist@... [vantage] <vantage@yahoogroups.com> wrote:
 

Jose Gomez,


When I manually attach a pdf file to a part revision in EPICOR, the pdf file is copied from its original location and saved in a common file path with all other part revision pdf attachments.  However, when I use the DMT tool to attach a file to a part revision, the original file path remains for the attachment within EPICOR and no copy of the file is made and placed in the common file path!  


A few questions:


​​
1. Is the automated copying and saving of an attachment to a common file a customization in our database, or is it part of EPICOR's standard package? 


2. Where does Lib.FileTransfer (business object) live in EPICOR?  Can I modify the code so that the DMT tool also initiates an automated copying and saving of the attachment?  



I used a data trace in EPICOR and I am pretty sure that at some point a customization was created in our database in order to send attachments to a common folder.  I would like to find and modify this customization so that it works for the DMT tool.  Or, if I can't figure that out, I would like to delete it so that we don't have attachments that are scattered all over the place depending on how they were attached.


P.S.  Also, anyone can respond haha... I just addressed this to Jose because he has become sort of a legend here at Trystar.  I think he knows more about EPICOR than EPICOR knows about itself.  






The trace produced the following code (there is more, but I think this is the meat and potatoes of the situation):


<tracePacket>

<businessObject>Epicor.Mfg.Lib.FileTransfer</businessObject>

<methodName>FileExists</methodName>

<returnType>bool</returnType>

<localTime>2/25/2016 08:24:22:9322802 AM</localTime>

<executionTime>183</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='serverPath' type='System.String' ><![CDATA[\\10.134.80.10\Shared Data\Admin1\EpicorAttachments\Live\TS\PartRev\43743 (GDS-085W-LMF-C2KQ).pdf]]></parameter>

</parameters>

<paramDataSetChanges>

</paramDataSetChanges>

</tracePacket>



<tracePacket>

<businessObject>Epicor.Mfg.Lib.FileTransfer</businessObject>

<methodName>UploadFile</methodName>

<returnType>void</returnType>

<localTime>2/25/2016 08:24:23:6342937 AM</localTime>

<executionTime>395</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='serverPath' type='System.String' ><![CDATA[\\10.134.80.10\Shared Data\Admin1\EpicorAttachments\Live\TS\PartRev\43743 (GDS-085W-LMF-C2KQ).pdf]]></parameter>

<parameter name='binaryData' type='System.Boolean' ><![CDATA[True]]></parameter>

<parameter name='ds' type='Epicor.Mfg.Lib.FileTransferDataSet' ><FileTransferDataSet xmlns="http://www.epicor.com/Mfg/100/BO.FileTransfer/FileTransfer" /></parameter>

</parameters>

<paramDataSetChanges>

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

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

<changedValue tableName='FileTransfer' rowState='Added' rowNum='0' colName='Data' ><![CDATA[JVBERi0xLjcgCiXi48/TIAoxIDAgb2JqIAo8PCAKL1R5cGUgL0NhdGFsb2cgCi9QYWdlcyAyIDAg





Stephen Edginton (Beng) | Solutions & Technical Director

Mobile:  +44 7734 858415
DDI:  +44 121 314 1179
Main:  +44 (0) 121 314 1170
Web:  www.dotnetit.co.uk

Dot Net IT Limited, One St Kenelm Court, Steel Park Road, Halesowen, B62 8HD, United Kingdom.

DotNetIT

Epicor Platinum Partner

Epicor Alliance Partner