Tips for using url images in templates

I’m having a lot of trouble adding an image from quickcharts into a google word doc template. I have only gotten this to work with snapshot() but it does not look good with the app background. I’ve also tried it as a thumbnail and JSON workflow. Any suggestions?

If anyone else is having this issue with quickcharts or any other url image using JSON, you’ll need to clean up the code. I used this site I’m sure there are better ones out there. Click html (even though it’s json) it will remove any spaces that are causing the issue. My pdf template now shows all the charts in the app.


Thanks for sharing the cleaning information, currently I have a quickchart url stored in a Virtual column called Graph 1 I did the cleaning of my quickchart url image but it is still not showing in the output pdf from the template
I am calling the graph like this in the report:
<<[Graph 1]>>
But it doesn’t seems to work, do you have suggestions?

Thanks again!

You don’t need an external service for that. Below expression will always works:

			NUMBER([Offset Percentage]*100),
			"],backgroundColor:'red'}]},options:{trackColor: 'rgb(224, 224, 22)',centerPercentage: 70,roundedCorners: false,centerArea:{text:' ",
			NUMBER([Offset Percentage]*100),

That expression did work in the app but did not render on the template. I had to remove white spaces for it to render properly.

I’m not sure, can you post the expression.

Yes, in a template you would need to remove whitespaces as the HTML converting service almost definitely inserts code there.

In app, its just much easier to read.

1 Like

ENCODEURL(), encodes the text to be fit for HTML. It replaces spaces with either %20 or with + sign so that the HTML engine can render it.
Here is the evaluation of the expression I have given above:

if you copy&paste this expression to your browser, you will see that it’s rendered correctly.