Hello. I'm trying to get e-mail attachment and copy it to variable in Assign activity:
<assign name="CopyAttachment">
<copy>
<from>ora:getAttachmentContent('IncomingEMail', 'body', '/ns3:message/ns3:attachment/ns3:Attachment[1]' )</from>
<to>$Stocks</to>
</copy>
</assign>
but getting this error:
XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is ora:getAttachmentContent('IncomingEMail', 'body', '/ns3:message/ns3:attachment/ns3:Attachment[1]' ). The XPath expression failed to execute; the reason was: . Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
I've tried '/ns3:message/ns3:attachment[1]' too, but result was the same. Could someone tell me, how proper query should look like in this case? Thanks in advance