Analyzing data is one of the most important steps in business structure and planning for the future of the organization. Therefore, we created the open data API so that you can analyze the data that is registered in Elofy, within the BI tool used by your company in order to make the process faster and easier.
In this article, you will also learn how to integrate the API data with Power BI and Google Sheets tools.
NOTE 01 - It is recommended that the API integration be done by the technology or data analysis department of your company, since they have more experience with the use of data systems.
NOTE 02 - This article is intended for administrators (without cumulation with another profile), based on the access permissions for the features. If you want to know more about profiles, click here.
Enjoy!
Click on one of the options below:
Using the open API
This first step is valid for all BI tool types.
Access the API Data’s link.
In the API data, log in with your Elofy password or use your user token (if you use the platform by Google or Microsoft).
☝️Elofy’s login and password
Step 01
Select the login tab.
Step 02
Click ‘Try it out’ and enter your Elofy login and password, inside the quotation marks.
Step 03
Click on ‘Execute’.
Step 04
And, again, click "Execute".
Step 05
On execution, scroll down and copy the token without quotation marks.
Step 06
Go up the screen again and click on "Authorize".
Step 07
Paste the token into "value" and then click "authorize". Then close it by clicking "close".
Step 08
In the intended API, click on "Try it out" and on "Execute" and again on "Execute".
NOTE 01 - For the API (Individual Development Plan), you must insert the start and end date of the period before clicking execute.
NOTE 02- Some APIs need the period/window ID in order to work. These are:
Objectives and Key Results
Cycle review:
Evaluations status
Final averages and scores per stage
Scores per Evaluator
Averages - stage by results
Averages - stage by competencies
Nbox
Audience
The period ID is obtained from the Period API. So, first run the Period API to get back into the intended API and enter the ID number.
Inside the API with the mandatory filter, first click on ‘Try Out’, then enter the period ID in the following box:
Finally, click on ‘execute’ and then again on ‘execute’.
Step 09
Check the data in the Responses section.
If the process fails, the system will report an error.
☝️User token
Step 01
First, go to Settings > Integrations and API.
On the screen, collect your token from the Public API Token - Module Data option.
Step 02
Go back to the API link and within the wanted API, click on the padlock icon.
Step 03
Paste your Elofy token into "value" and then click "authorize". Next, click "close".
Step 04
Then in the same API, click on "Try it out" and on "Execute" and again on "Execute".
NOTE 01 - For the API (Individual Development Plan), you must enter the start and end date of the period before clicking execute.
NOTE 02 - Some APIs need the period/window ID in order to work. These are:
Objectives and Key Results
Cycle review:
Evaluations status
Final averages and scores per stage
Scores per Evaluator
Averages - stage by results
Averages - stage by competencies
Nbox
Audience
The period ID is obtained from the Period API. So, first run the Period API to get back into the intended API and enter the ID number.
Inside the API with the mandatory filter, first click on "Try Out", then enter the period ID in the following box:
Finally, click on "execute" and then again on "execute".
Step 05
Check the data in the Responses section.
If the process fails, the system will report an error.
Using the open API in Power BI
Step 01
Once you have performed the previous steps of the "Using the open API" session, open your Power BI and click on "get data".
Step 02
Find the "web" option and click connect.
Step 03
On the web screen, in the "advanced" tab, fill in the following data.
1 - Paste the URL of the data API that will be used from Elofy: https://api.elofy.com.br/complemento
NOTE - In case of mandatory filters (Period/Window ID), the URL of the API must be obtained in "Curl", as shown below:
*Copy the URL without quotation marks.
2 - Next, fill in "Authorization" and "Bearer + space + the token you copied from the API" in step 02.
NOTE - You must type the "Authorization" option, as it is not listed in the parameters.
Step 04
And that's it, now you just need to adjust Power BI according to what you want.
Using the open API in Google Sheets
In order to use Google Sheets you do not need to perform the steps in the "Using the open API" session.
Step 01
Download the spreadsheet located in this folder. Then place the sheet into your Google Sheets.
Step 02
In the spreadsheet, enter your Elofy login and password. Automatically, the data will be displayed in the other tabs. If you use the Google or Microsoft login options, please contact our CS team, so we can help you.
NOTE 01 - For the API (Individual Development Plan), you must insert the start and end date of the period.
NOTE 02 - Some API's need the period/window ID in order to work. These are:
Objectives and Key Results
Cycle review:
Evaluations status
Final averages and scores per stage
Scores per Evaluator
Averages - stage by results
Averages - stage by competencies
Nbox
Audience
So, once you have entered your email and password, go to the "periods" tab and copy the ID and paste it into the field indicated with the start and end date.
Errors that may happen in the API
The errors that may occur when connecting to Elofy’s API are listed below.
Any other errors that are not listed are probably related to the software used by your company, in which case, it is recommended that you contact the responsible technology department.
➡️Problem 01 - Endpoint request timed out
The API request has exceeded the time limit, in other words, the system search within the database has taken too long. In this case, please contact Elofy support.
➡️Problem 02 - You don't have permission
The profile you are using does not have permission to access the intended feature data. Example: If your profile does not include the company's OKRs feature, you will not be able to access the API.
➡️Problem 03 - Initial Date is required or final Date is required
Some APIs need the date to search the data (PDI) that must be provided in the data API’s link, before generating the URL in the ‘Execute’ button. So, if the date is not entered or is entered in the incorrect format, this error will be reported.
➡️Problem 04 - Period ID is required
Some APIs require the period ID to search for data. Thus, if not inserted or a non-existent ID is inserted, this error will be reported.
These are:
Objectives and Key Results
Cycle review:
Evaluations status
Final averages and scores per stage
Scores per Evaluator
Averages - stage by results
Averages - stage by competencies
Nbox
Audience
➡️Problem 05 - Not authorized
If your token is invalid or you did not enter it correctly.
This problem may also be reported when a user has more than one profile attached (for example: manager and administrator). So, you only need to have one administrator profile to access the API, according to the access permissions.
➡️Problem 06 - Method attribute is invalid
If the URL entered for searching the data is invalid.
If you have any questions, please contact us, we will be happy to help you.
And that’s it!!
If you have any questions, please contact us, we'll be glad to help!