Hello all,
I'm trying a new API in my app. I have a Users file, and I want to use an API to see if there is an email address in this file. I want to do a get, see if the email is in the file and then return three fields.
On the Parameters tab, I set the parameter type to table, set the table to Users.tps, choose the unique key on the email field, and then check Allow Read.
On the Returns tab, I set the three fields in the Users table I want to return. They are: Usr:EMail, Usr:Access_List and Usr:AcctStatus
The response I get back is:
{
"EDC_Users_response" : {
"Usr:EMail" : "",
"Usr:Access_List" : "",
"Usr:AcctStatus" : ""
}
}
In the "Try It" section of the API documentation, HTTP GET (JSON Response), I set the Usr:Email field to jking@health.usf.edu and this email record does exist in the Users tps file. I would expect the get to succeed and return the three fields. Still, I get empty fields. I can't seem to find where I'm going wrong. Any thoughts?
Thanks,
Jeff King