How to filter data retrieved from Zoho People for Creator current user and fill form fields?
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;
- }
Hope that makes sense. Any help or guidance is greatly appreciated.
Cheers,
Daniel
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.