Hello guys,
I have a requirement like, I have to create a case using service rest and this case should have also attachments attached if any.
I was able to create a case using service rest and I am using a rest connector for pulling attachments, I can download this attachment pulled from Rest Connector using a jave line.
Now, my requirement is I want to attach the attachment pulled from Rest Connector to a case. Can anyone help me with this, please?
@BATTINIRAMESH
If it is PDF you can call AttachToWork OOTB activity. It has 3 mandatory params.
PDFName - You can give a name for the PDF attachment.
PDFDocument - Assuming you have base 64 data from response in Param.ResponsePdf then you can pass the value of @Base64ToPDF(Param.ResponsePdf) to this param.
InsHandle - Work object pzInsKey
@ShyjuValappil Thanks for the response,
It can be of any type, not particularly pdf
we have base64 encoded message, PFA
message.txt (11 KB)
@BATTINIRAMESH Refer to “AttachFile” activity in Work- Class
@BATTINIRAMESH We are still having issue with this,
Update: Attachment is getting added to the case, but the data inside the attachment is missing
@BATTINIRAMESH Did you achieve this by converting it to base64 and then created an attachment page and saved it and Linked it to work object?
@AnoopK12 hey,
Yes, we converted, created attachment page and linked it to work object. It is working now.
The issue I mentioned above is caused because of switching content storage to Repository and we fixed it.
@BATTINIRAMESH Hi, can you provide the screenshots of the same if you have it handy?