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.
Mike,
Thanks for your response. I appreciate that!!
I have two requirements to do:
- How can i configure the outbound integration mapping to trigger the XML data along with the Invoice PDF attachment to the external 3rd party application in SOAP handler.
- How to add the attributes in XML mapping fields XML element as shown in below sample. eg. <InvoiceRequest documentDate="2019-10-17" documentNumber="123456789" billingType="Invoice" transactionType="SALE"> like in this sample the documentDate, documentNumber, billingType and transactionType are the attributes in InvoiceRequest element tag. How can I achieve this in XML mapping and pass the values in it?
Best Regards,
Priyesh
Dear Mike,
Thanks for your valuable answers. I really appreciate it!!