Question

Get the user email instead of ID in the API call

  • 22 August 2023
  • 0 replies
  • 119 views

Hi Team,

 

Hope all is well,

 

So basically, I’m trying to use fresh service API to create some integration for our use, 

 

We have created a custom field called “Required Members” in the ticket requested items that it searches in the user's directory and take it as an input, like the below screenshot:

 

 

So basically, I’ve used an API call from the documentation to retrieve me the values of all the custom fields that we configured to this ticket, but for this field specifically it returns us the ID of the user which we don’t need it at the mean time, and instead we need to retrieve the email ID.

 

Below is the response to the API call

 

 

HTTP API call that gets all the ticket details which is used:

https://<site>.freshservice.com/api/v2/tickets/<ticket_ID>/requested_items

 

You can let me know if you have any question.

 

Thanks,

 


0 replies

Join the Community or User Group to Participate in this Discussion

Reply