Coming soon: Your brand new Help Center & Community! Get a sneak-peek here

Get external URL to FAQ post

Having a few customer cases where they have asked if it is possible to publish FAQ posts to an external site. For learning myself more scripting at the same time, I am looking at creating a script where the posts are fetched and displayed. To get the actual URL to each post, I found the function buildExternalEntryURLWithParser (SDK URL). I talked with our local scripting guy and couldn't understand the purpose of the parser.

So how shall it be used?

 

RE: Get external URL to FAQ post

Hi,

Purpose of parser is to replace template variables with values, either manually created and set or by loading from Customer, Ticket etc.

In your instance you can use this method together with global parser instance; 

Knowledge faq;
printLine(faq.buildExternalEntryURLWithParser(2, getParser()));
Von: Michel Krohn-Dale 25. Nov 2019

RE: Get external URL to FAQ post

Will try that out, thanks!

Von: Patrik Larsson 25. Nov 2019