on 11-13-2015 10:16 PM
Hi Experts,
I have a scenario from SOAP proxy to SFTP with attchment. I have used payloadswapbean to consider attachment as main payload.
I can able to successfully send the attachment to Target system. Where as my requirement is, I need to set file name by using 2 fields of data(Country code and payment type) from that attachment.
There is no mapping involved in this. Proxy will trigger only sample data(I wont use this data at all) but attachment is the actual content which I will send to client.
As per my knowledge we can use UDF to set dynamic file name, but I don't know how can I apply in my scenario.
Please suggest me on this.
Thanks,
Gayathri.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
H Vila,
Thanks for your response.
My requirement is different than your referring thread.
In my case PI will receive main payload and attachment data, using payload swap bean I am sending only the attachment to target using SFTP adapter.
Now my question is, I have to set a file name based on the 2 fields which is present in attachment not from main payload.
I am using PI 7.4 Single stack ICO based scenario.
Thanks,
Gayathri.
Hi Gayathri,
Ok, i misunderstood your scenario. AFAIK you will need to do a mapping to read the attachment (Read attachment content in Mapping | SCN) and to set the filename (Dynamic File Name with PayloadSwapBean | SCN).
Regards
Hi Gayathri,
The file should be parsed in PI, only then the value from the attachment can be read and set for the file name. You would have to introduce mapping to achieve the desired file name.
You can follow threads suggested by Inaki for reading the data from attachment and create file name.
--
Sendhil
Hi All,
Can anyone please respond to this thread.
Thanks,
Gayathri.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gayatri,
Is your attachment text file or xml file??
Kind Regards,
Praveen.
Hi Gayathri,
Please refer to the below thread to achive the file name with variable substitution method.
Regards,
Santhi
Hi Praveen,
Are you using SFTP as Receiver Adapter or File?
How you got the attachment name as Payment file, Do we need to get this file name from Proxy or do i need to maintain as swap key value in Payloadswapbean module parameter..
I am getting the source payload and attachment through proxy. That is the reason I got BOFA_Attachment from ECC. It is defined in Proxy code and maintained the same in PI.
Thanks,
Gayathri.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.