Remove Addtional Contacts from Ticket

Hi,

I’m creating a workflow to remove the additional contacts on a ticket. As I understand it, I don’t modify the ticket. Instead, I should be deleting the additional contact. I’m using “Autotask API: Delete an object”, but the only fields are “Autotask Entity to Delete” and “ID of Entity to Delete”. I was expecting a field to specify the ticket number. If I delete the contact, I want to delete it from a specific ticket. I must be thinking of the fundamentals incorrectly.

Thanks,
Charley

Ticket Additional Contact is an entity, so I suspect that’s the right thing to delete. Now, how do you get the IDs of the entities that you want?

I suspect it will be:

  1. Get the TicketID from the known TicketNumber
  2. Get the (multiple) Ticket Additional Contact IDs from the TicketID
  3. Loop through the Ticket Additional Contact IDs
  4. – Delete each Ticket Additional Contact using the Ticket Additional Contact ID

Try that out on a dummy ticket and see what you get.

Thanks, TDawgGCat. That’s definitely the right idea.

The problem was that I was using the ContactID instead of the id. The id variable represents the relationship between the ContactID and the ticket.

It was helpful for me to see this question and how the Autotask API relationships may not be clear. I added a new page to our documentation that I hope will be helpful:

I also clarified a few existing pages: