I have a scenario in which a file is generated at a folder location and based on the file-name, I have to update an entry in a database table. Is this possible? If yes, how is it to be achieved?
The property FILE.ReceivedFileName is one of the promoted properties by BizTalk that you can query on your incoming message. You can then parse that value and extract the filename part in an Expression shape.
Can’t the filename part be done in the message assignment shape? That is because i tried and it didn’t work and also, the SQL entry needs to be the whole path viz. “D:\A\bab\pdf.pdf”.
If you are assigning to the SQL request message, you can do that in a message assignment shape by running XPath queries against your message to assign the whole path from the promoted property FILE.ReceivedFileName. See the following BizTalkGurus blog for more information on how to use XPath in an orchestration:
Actually, i need the part filename as in “Jaguar.xml” from “D:\Ab\Xman\Jaguar.xml”. I said that because if the sql entry is “Jaguar.xml”, the table doesn’t get updated.
Author
Posts
Viewing 1 reply thread
The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.