0

Has anyone tried to get a string from a ticket subject and populate a custom field using Webhooks on Freshdesk?

I am trying to get a reservation number that starts with the letter 'R' and put it on a custom field.

Example code:

     <script>
var strng;  
    strng = "Either way, time largely defines the human experience.";  
    var incStr = strng.includes("human");  
    document.write("Is 'human' present in the string? : " + incStr);
</script>

{
"custom_fields": {"Resv#": incStr}

}

enter image description here

  • Please post some code, you've tried and how the ticket subject, custom field looks like. – Aswath Jun 25 '22 at 07:04
  • { "custom_fields": {"Resv#": incStr} } – Marius Lazăr Jun 25 '22 at 12:10

0 Answers0