Priyesh, could you please describe, in functional terms, what you are actually working with, and what you want to do with it in FSM? For instance, do you have an external invoice generation producing the PDF invoice, and you want to create a record in the FSM attachment table? Do you need to do something else entirely?
Based on what I see here, I assume you have a .PDF file, which is an invoice for an FSM request. This file would need to be placed in the file system share where all FSM attachments are stored. It is (or used to be) possible, alternatively, to store the attachment content in the FSM database itself, but most customers don’t do this, and we don’t usually recommend it.
Assuming the .PDF file is in the FSM attachment file share, you just need to create an attachment record for it with XML like this:
<attachment>
<attachment_name>invoice_1003947</attachment_name>
<attachment_path>\\server_name\share_name\invoice_1003947.pdf</attachment_path>
<attachment_type>DOCUMENT</attachment_type>
<attachment_description>Inbound invoice from XYZ system - invoice number 1003947</attachment_description>
<active>Y</active>
<stored>N</stored>
</attachment>
Use the ProcessMessage operation in the MetrixIntegrationService to process the inbound integration.