This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Working with Attendance in Zoho People
The createAttendance operation creates a check-in and check-out record of an employee. You must specify one of the following properties to identify the employee in the request: empId
, emailId
, or mapId
.
<zohopeople.createAttendance> <empId>{$ctx:empId}</empId> <emailId>{$ctx:emailId}</emailId> <mapId>{$ctx:mapId}</mapId> <dateFormat>{$ctx:dateFormat}</dateFormat> <checkIn>{$ctx:checkIn}</checkIn> <checkOut>{$ctx:checkOut}</checkOut> </zohopeople.createAttendance>
Properties
The employee ID.empId:
The employee email address.emailId:
The mapper ID of the employee.mapId:
The date format for the check-in/check-out time.dateFormat:
The check-in time of an employee.checkIn:
The check-out time of an employee.checkOut:
Sample request
Following is a sample REST/JSON request that can be handled by the createAttendance operation.
{ "apiUrl" : "https://people.zoho.com", "authToken" : "7ac303a827d72af66b6071187c681b51", "emailId" : "campaignmonitor89@gmail.com", "dateFormat" : "dd/MM/yyyy HH:mm:Ss", "checkIn" : "09/09/2014 11:10:23", "checkOut" : "09/09/2014 14:10:23", "responseType" : "application/json" }
Related Zoho People API documentation
https://www.zoho.com/people/help/api/attendance-api.html
Sample configuration
Following is a sample proxy service that illustrates how to connect to Zoho People with the init
operation and use the createAttendance
operation. The sample request for this proxy can be found in createAttendance sample request.
<?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="zohopeople_createAttendance" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <inSequence onError="faultHandlerSeq"> <property name="apiUrl" expression="json-eval($.apiUrl)" /> <property name="authToken" expression="json-eval($.authToken)" /> <property name="empId" expression="json-eval($.empId)" /> <property name="emailId" expression="json-eval($.emailId)" /> <property name="mapId" expression="json-eval($.mapId)" /> <property name="dateFormat" expression="json-eval($.dateFormat)" /> <property name="checkIn" expression="json-eval($.checkIn)" /> <property name="checkOut" expression="json-eval($.checkOut)" /> <property name="responseType" expression="json-eval($.responseType)" /> <zohopeople.init> <apiUrl>{$ctx:apiUrl}</apiUrl> <authToken>{$ctx:authToken}</authToken> <responseType>{$ctx:responseType}</responseType> </zohopeople.init> <zohopeople.createAttendance> <empId>{$ctx:empId}</empId> <emailId>{$ctx:emailId}</emailId> <mapId>{$ctx:mapId}</mapId> <dateFormat>{$ctx:dateFormat}</dateFormat> <checkIn>{$ctx:checkIn}</checkIn> <checkOut>{$ctx:checkOut}</checkOut> </zohopeople.createAttendance> <respond /> </inSequence> <outSequence> <send /> </outSequence> </target> <description /> </proxy>