Friends,
I am looking to import Employee details from Zoho People to a form in Creator and I'm not sure how to go about doing so. What I would like, is to have the required details from Zoho People pulled and populate the into the corresponding form fields for the Creator currently logged in user. Example:
Form :
Request
Fields:
Name, email, department
I have figured out how to connect to and retrieve the required info from Zoho People, but I am stuck(lost) about how to filter that data for the current user. May also be stuck at how to insert the data into the form once it is filtered, but I haven't gotten there yet to know. I have created the following custom function in Creator to get user details but I haven't been able to get beyond that point and I'm not really sure the right question(s) to ask.
- list GetEmploy()
- {
- empDetail = List();
- response = zoho.people.getRecords("P_Employee");
- info response;
- for each rec in response
- {
- empDetail.add(rec.get("EmailID"));
- empDetail.add(rec.get("FirstName"));
- empDetail.add(rec.get("LastName"));
- empDetail.add(rec.get("Department"));
- }
- return empDetail;
- }