Forum Discussion
HiteshKumar
7 years agoExpert
It can be implemented by using component and endpoint, the Component code should be written in JS (for synchronous ajax call) to Endpoint.
Endpoint should do all the stuff like,
1. 3rd party API Call ( Zendesk)
2. Assign the role to a user and return the roleName to component (Contact US) for further Processing.
The component should make sync ajax call to endpoint using this it will halt the code execution until the endpoint returns the response.
There is no any other way to delay the code execution in Freemarker. It can only be achieve using JS in component.