11-19-04 10:48 PM
Ragav,
You're on the right track. Use
Port_Name(Microsoft.XLANGs.BaseTypes.Address) = "file://" + sFileName;
from an Expression Shape where Port_Name is a dynamic send port.
The best way to to set sFileName with the amount of customization you
require is with a referenced .NET component. See the article "Using
Expressions to Create Objects and Call Object Methods" in the documentation
for how to create .NET object variables and invoke their methods. This is
available online at
http://msdn.microsoft.com/library/d...
_orch_btam.asp
If you need to parse characters from the original filename, you can also
have the method perform this operation using the ReceivedFileName context
property.
HTH,
Doug Girard [MSFT]
Note: This posting is provided "AS IS" with no warranties, and confers no
rights.
"Ragav" <anonymous@discussions.microsoft.com> wrote in message
news:832d01c4ce5d$07673060$a301280a@phx.gbl...
> Dynamic output file path.
>
> I think i need to use the Dynamic port to assign the
> value as Port_Name(Microsoft.XLANGs.BaseTypes.Address) =
> sFileName;
>
> But, I need to construct a file path and name dynamically
> for each of the output file based on a logic below.
>
> A initial file path from a configurable file(may be xml
> file) + "\" + 1st N char of Input file name + time stamp
> + ".xml"
>
> How will i incorporate this logic in Biztalk expression
> shape?
>
> Or do i need to call a .net component to pass and get the
> manipulated values back to biztalk ? If so, how?
>
> Thanks in Advance.
[ Post a follow-up to this message ]
|