Access ‘Source’ variable within the EnsLib.EDI.EDIFACT.Document
Hi, I am passing an EDIFACT file from a service to an operation using the super class. I would like to prepopulate the 'Source' variable with some information, but I’m not sure how to access this variable.
Any pointers much appreciated.
Comments
You can set the Source property directly on the document object before sending it on. A relevant example shows this pattern for an EnsLib.EDI.XML.Document:
set xmlResultDoc.Source="MyFileName.xml"
and explains that if you want to preserve the original filename, you should copy the Source value from the original object created by the business service to the new document object before calling the operation. [1][2]
The returned material does not provide anything specific to EnsLib.EDI.EDIFACT.Document beyond that analogous document-object usage, so the actionable pointer available here is to access Source as an object property on the message/document instance and populate it prior to SendRequestSync or equivalent. [1][2]
Sources: