@SrikiranV17310012 To get the URL content in the word document you have use the correspondence+paragraph rule approach
- Create a paragraph rule “IncludeLink” and insert the below content in it
<%
String URLContent = tools.getStepPage().getString(“.ImageLink”);
%>
Access Image URL
- Include the above paragraph rule in a correspondence rule (ConvertToLink). Ensure that the correspondence rule is of type “Mail” and not “Email” (It threw error. Was specifically expecting Mail)

<pega:include name=“IncludeLink” type=“Rule-HTML-Paragraph”></pega:include>
- In the work document template, refer to the correspondence rule (Cover) which you have created with below snippet
<pegaref config={“name”:“ConvertToLink”,“type”:“C”}>
With the above steps you should be getting your clickable link with intended URL.
For Image Rendering
Additionally to include images in the work document, you have to use the below snippet in the word document template
<pegaref config={“name”:“.ImageKey”,“type”:“A”}>
Note that the ImageKey should contain the pzInsKey of the Rule-File-Binary instance or Data-Content-Image instance.
For uploaded/attached image instances to the work case the above is not working.
For eg. ImageContent is your Attachment field on the work case and when you upload an image from UI you should be getting the ImageContent page (of class Embed-Attach-File) populated with the pzInsKey of the image which is of class Data-WorkAttach-File.
Below snippet does not work and shows an error (ERR_ADDING_IMAGE) in the generated word document
<pegaref config={“name”:“.ImageContent.pzInsKey”,“type”:“A”}>
So you should fetch the base64 encoded stream of the image and setup the image in Paragraph rule to refer in the correspondence rule and then you should see the image rendered in the document
Below is the cumulative output
Hope this solves your issue.
For all who are reading this message, you can share your thoughts on the issue while rendering the uploaded case attachment using type “A”.
I was referring to the below youtube link where the same implementation worked in Traditional UI with the signature image (You can jump to 2.40 sec)
@Kamil Janeczek @MarcCheong Please share your thoughts on this issue
Thanks
JC