on 2024 Sep 29 11:58 PM
Hi Everyone ,
I am trying to capture the attachment names in SAP CPI, from an outbound proxy call from SAP- but I am only getting the attachment ID as name and not the actual attachment name.
I am using the below line in my Groovy - message.setProperty("attachmentName",attachment.getName());
where attachment is a DataHandler object.
In proxy, I have the below name of the attachments -
but in CPI I am getting the attachment name as -payload-000D3A03E1FD1EDF9FC56D07DA1F65E6@sap.com
Could you please help me with this to get the actual attachment name?
Thanks
Sugata
Request clarification before answering.
Hi ,
Please try with this :
message.setProperty("attachmentName", attachment.getDataSource().getName());
def attachment = message.getProperty("yourAttachmentProperty") --> Replace with your actual attachment property name
def attachmentName = attachment.getDataSource().getName() --> This should fetch the correct attachment name
message.setProperty("attachmentName", attachmentName)
Regards ,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
31 | |
21 | |
16 | |
8 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.