Skip to main content
Solved

Add multiple tags on ticket creation when using the API

  • September 21, 2022
  • 2 replies
  • 132 views

GRattu
Apprentice
Forum|alt.badge.img

What’s the syntax to add multiple tags to a ticket? I’m working in powershell and my script works as expected, I’m just not able to add multiple tags.

These don’t work:

$body.Add('tags','Onboard/Offboard',’onboarding’)

$body.Add('tags',['Onboard/Offboard',’onboarding’])

$body.Add('tags','["Onboard/Offboard","onboarding"]')

 

Not sure how to do this.

 

 

Best answer by GRattu

Figured it out:
$body.Add('tags',('Onboard/Offboard',’onboarding’))

View original
Did this topic help you find an answer to your question?

2 replies

GRattu
Apprentice
Forum|alt.badge.img
  • Author
  • Apprentice
  • 1 reply
  • Answer
  • September 22, 2022

Figured it out:
$body.Add('tags',('Onboard/Offboard',’onboarding’))


Forum|alt.badge.img+3

Hi @GRattu,

Welcome to Freshworks Community :)

Glad to know that you have figured out the answer by yourself. Feel free to reach us if you have any other further concerns. We will be delighted to assist you.

Cheers,
Vidya D


Reply