Skip to main content

Hello,

My case is that I try to test an API to get the agents data:  

/api/v2/agents/sid]

 

But, this returns me the different IDs than I have in the system. I am doing something wrong?

Thanks

Hello,

My case is that I try to test an API to get the agents data:  

/api/v2/agents/sid]

 

But, this returns me the different IDs than I have in the system. I am doing something wrong?

Thanks

Agents has a “virtual” ID that is a connected to a requester. It’s a bit confusing but you can see it in the WEBGUI if you hover of the name of an agent you see it goes to one ID but when you click on it you get end up on another ID

 

@Kamakshi V I think post should be moved :) 


@Daniel Söderlund I do thank you, havent noticed that. Well, I did my workflow which looks like:

  1. Get ticket agent ID with API
  2. JSON Parser of 1, and safe the mail of the agent, and the id of the agents(1) manager
  3. Get the manager ID(2)
  4. Get manager mail by API(3)
  5. JSON Parser of the manager mail(4)
  6. Send email to both(2-agents mail), and (5-managers mail).

Unfortunately, I dont know why, it sends 2mails to the agent, and only 1-the right to the manager.

By agent, I mean the person who did the action over the ticket(in my case-add time entry), and I want to get his manager to.

Is it works by default this way? I want 2 different mails to be sent to 2 different people.

Thanks!


Actually, it was my bad. I used 2 times the same node in the both JSON parsers sources. That is why I got the same mail 2 times.

However, I am also curious why the variables(by default): {{event_performer_email}}, {{event_performer_name}, {{event_performer_id} are not working?


Actually, it was my bad. I used 2 times the same node in the both JSON parsers sources. That is why I got the same mail 2 times.

However, I am also curious why the variables(by default): {{event_performer_email}}, {{event_performer_name}, {{event_performer_id} are not working?

I have had issue with this 2 placeholders myself. It’s not always they work.