TypeID Inaccurate

I have a Condition in a workflow that is referencing the "TypeID" value to determine if the person is a User or Customer.

 

https://solutions.teamdynamix.com/TDWebApi/Home/type/TeamDynamix.Api.Users.UserType

 

However, a recent test returned "TypeID": "2" for a person with a User account and Technician license.  Shouldn't they have "TypeID": "1"?

Asked by Scott Cory on Thu 5/23/24 8:11 PM
Sign In to leave feedback or contribute an answer

Answers (2)

This answer has been marked as the accepted answer
Scott Cory Tue 5/28/24 12:33 PM Last edited Tue 5/28/24 12:33 PM

I have attached a screen shot illustrating the exact problem.  Is there a parameter we can use to only return the exact email address match?

No feedback
Unfortunately no, there isn't exact match searching via API search endpoints currently. - Mark Sayers Tue 5/28/24 12:50 PM

Mark Sayers Tue 5/28/24 9:00 AM

Hello Scott,

Which person specifically was returned in your recent test? Are you able to identify them here? Or would you prefer to submit a support ticket so greater details can be shared?

Sincerely,
Mark Sayers
Sr Support Consultant, CS

No feedback
Hi Mark,

I determined that the preceding Web Service Method to get the UID from the endpoint .../TDWebApi/api/people/lookup?searchText={{userName}}@csuchico.edu&maxResults=1 is returning the incorrect user. I have to use the {{userName}} variable because we only have the username and not the full email address from the ticket. I double checked the custom attribute that populates {{userName}} am testing again to see if it was a fluke.
- Scott Cory Tue 5/28/24 11:57 AM