Apache velocity #foreach in successTemplate

Hi,

I'm wondering if the velocity #foreach-statement is disabled in genesys cloud?
I'm trying to use it to condense a few values from an array of objects in the data actions RawResponse to a single string.

When I tested my DA I got an error stating "Template validation failed for 'config.response.successTemplate'. Details: '#foreach' directive is not allowed in templates." which is kind of a strong hint, but I thought I'd ask since the documentation at Response configuration for data actions - Genesys Cloud Resource Center links to Apache Velocity Engine VTL Reference and has no information about which directives are disabled from that reference.

Thanks,

Hi Hakan_Andersson,

The short answer is that we did intentionally disable #foreach. I am entering a story right now for us to better document disabled velocity tools.

--Jason

allright, thanks for that statement! :slight_smile:

best regards

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.