최근 검색


최근 검색 없음

Multiply 2 Numeric Fields in Webhook



2024년 6월 04일에 게시됨

Does anyone know how to multiply 2 custom number fields in a webhook? I'm not able to get it to combine the 2 together. 

Something like the below is what I'm trying to do. No clue on how to write this in the webhook though.

"Value":="Field 1"*"Field 2"

Or

“Value”:="Field 1"*"3"

 


0

2

댓글 2개

image avatar

Jacob the Moderator

Zendesk LuminaryCommunity Moderator

Hi AJ Sneed 

You can use Liquid Markup for that. Assuming that the two custom fields you want to multiply, are ticket fields of a number type with IDs 1 and 2, you could do the following to produce the output:
{% assign result = ticket.ticket_field_1 | times: ticket.ticket_field_2 %}{{ result | round }}
The result here is rounded, so it is a whole number, if you want the decimal as output instead, you could do something like this:
{% assign result = ticket.ticket_field_1 | times: ticket.ticket_field_2 %}{{ result }}
Hope this helps you out.

 

0


OMG thank you sooooo much!

1


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물