It's all about the answers!

Ask a question

How to physically embed a workitem word attachment with RPE


David BOURDON (19111) | asked Sep 01 '20, 4:57 a.m.
Hi, i have word attachments in my workitems and i'm trying to extract them with RPE to physically embed them in a generated document.
I'm using an include file element with the content "workitem/workItem/auditableLinks/targetRef/referencedItem/href" but it result in xml text in the generated document instead of the content of the word attachment.
Anybody knows how to do this ?
Thx.

Comments
David BOURDON commented Sep 01 '20, 5:09 a.m.

Note that i found how to do this with RQM attachments using a new Attachment datasource which gave me the right url for my include file. But with RTC it seems different. However i also tried to extract image attachments of a workitem using an image element in RPE but i didn't succeed.

Accepted answer


permanent link
Subramanya Prasad Pilar (4.6k14) | answered Sep 01 '20, 5:35 a.m.
edited Sep 01 '20, 5:36 a.m.
Instead of showing the content from Word attachment, RPE output seems to display the xml response. You should set "Accept Header" property for the data source to application/xml,*/*
David BOURDON selected this answer as the correct answer

Comments
David BOURDON commented Sep 01 '20, 5:54 a.m.

Wow thank you it works!

Your answer


Register or to post your answer.