Caching returns pipeline Values instead of my output template

Hello,

In a flow I am using ‘runTemplateOnPipe’ followed by
‘setResponse’ to return an output template to a client.

When I set this service to be cached, the output template is
not returned. Instead, I am receiving the pipeline Values
object.

I need the output template returned when caching this
service. Can anyone please advise?

Thank you,
Chris

Hi, Chris B.

I am presuming that your template is unchanging, hence the
caching of the results.

To that end, you could store the template as a string in
local memory at package startup. The template is only a
string so at the appropriate step in your Flow, load the
template from memory and then apply the Pipeline object to
it.

If this will fit your needs, let me know and we’ll take it
from there.

Thanks.