Problems building HTTP request body with handlebar expressions

I'm trying to update a Zendesk record using an HTTP request body. (This is necessary because of the odd way custom ticket fields are referenced in the Zendesk API.) I'm using AFE 2.0 and when I click Preview the result looks exactly right. However when I actually PUT the record to the Zendesk API the target fields are updated with the literal handlebar expression. For example, with this template:

{
"ticket": {
"subject": "{{rows.0.title}}",
"custom_fields": [
{ "id": 1900004167885, "value": "{{rows.0.case_number}}" }, ...etc.

The Preview is exactly right:

{
"ticket": {
"subject": "My ticket subject",
"custom_fields": [
{ "id": 1900004167885, "value": "249" }, ...etc.

But if I run the flow, field 1900004167885 (case number) in Zendesk contains the value:

{{rows.0.case_number}}

What am I doing wrong?!

@mikebranch -

Thanks for posting this to the Community. We think it's a good idea for Support to take a look at this too, so I'm creating a ticket on your behalf from your post.

-Kate

The above Template body looks correct to me, it may be due to some other issue which caused this.

Thanks!

Abhinash

Support has recommended using the generic HTTP connector for this, rather than the Zendesk connector, so that was probably what caused my problem. Anyway, I finally got the flow working with the ZD connector so problem solved.

Mike Branch -

Can you please let us know the configuration used, so that we can look more into deeper and will see what was causing the issue?

Thanks!

Abhinash