Skip to main content
Version: Current

Setting up schedule import

Overview

TimeTracker NX can import event information registered in the calendar.

System administrator settings are required to link with the following applications.

  • Google Calendar
  • Microsoft Outlook (Microsoft 365)

This section explains how a system administrator can enable the calendar function.

There are other applications that can be linked, but pre-settings by the system administrator are not required.

Please set up the link for each user who will enter actual times.
Link to procedure: "Import from Calendar"

System administrators should enable the calendar link function by following the steps below.
For details, see the following link: "Detailed setup steps"

Step 1: Get an API key.

To get calendar information from Google Calendar/Microsoft 365 Outlook,
you need to get an API key for each application.

What is an API key?

It is a unique identifier used to authenticate requests associated with an application.
When linking calendars, a person with administrator privileges for the target application must obtain an API key.

Please obtain an API key from the following website.
To obtain an API key, you must obtain an account for the application.

Calendar to be linkedFrom
Google CalendarGoogle Cloud Platform
Microsoft Outlook (Microsoft 365)Microsoft 365 Administration Center

Step 2: Register the obtained API key in TimeTracker NX.

  • Set the information of the obtained API key in the system administration screen.
  • This operation should be performed by a person with administrative privileges for TimeTracker NX.

After setting up the above, each user will follow the steps in the following link to set up the integration: "Integrate with Calendar"

Detailed setup procedure

This chapter introduces detailed setup methods for each calendar.

Google Calendar setup

Please follow the steps below to set up.

Obtaining an API key

This is an explanation for the screen as of November 2023.
  1. Log in to the following link with your Google account. : "Google Cloud Platform"

  2. Click "Dashboard" from the side navigation.

  3. Click "New Project".

  4. Enter a project name of your choice and click the "Create" button.
    (No other settings are required.)

  5. Click "Go to API Overview" on the dashboard, and click "Enable APIs and Services" on the screen you are redirected to.

  6. Enter "Calendar" in the search field and click "Google Calendar API" to enable the API.

  7. Return to the dashboard screen and select "OAuth consent screen".

  8. On the OAuth client ID creation screen, click "Set consent screen".

    After clicking, select the User Type setting that is displayed according to your company's policy.
  9. Set the app information.
    The following information must be set. (Other settings are not required.)

    ItemContent
    Application nameSet any name.
    Example: TimeTracker_NX XX Company Application
    User support email
    Developer contact information
    Representative's address

    After setting the above, click the "Save and next" button.
    On the transition screen, set "Scope" using the steps in the figure below.

    • ②: It is easier to find if you filter by "calendar" and "readonly".
    • ③, ④: The scopes to select are as follows.
      • .../auth/calendar.readonly
      • .../auth/calendar.events.readonly
    If the scope is not displayed, perform step 10 without setting the scope and refer to it again later.

    Once the settings are complete, click "Save and Next", and if there are no problems with the settings, return to the dashboard.

  10. Click "OAuth Consent Screen" on the dashboard, select "Create Authentication Information" → "OAuth Client ID".


    Select "Web Application" as the application type, set the following, and then click the "Create" button.

    Please refer to the following for details.

    ItemContent
    Application typeWeb application
    NameAny name
    Authorized redirect URI{TimeTracker server URL}/auth_callback.html
    Example: If the URL of the TimeTracker NX server is "https://www.timetracker.jp/TimeTrackerNX", enter https://www.timetracker.jp/TimeTrackerNX/auth_callback.html

    Please note the following about the "Authorized redirect URI".

    • If there is an error in the settings, calendar integration will fail.
      Please make sure that the "Authorized redirect URI" matches the URL where TimeTracker NX is actually located
      including uppercase and lowercase letters.

    • Due to restrictions on the application (Google Calendar) to which you are registering, special symbols and HTTP communication are not supported.
      Please specify an address that starts with https:// for the URL.

      To change the URL from http to https, you need to configure IIS (Internet Information Services).

      For details, see the following link: "Switch to HTTPS communication for enhanced security" (https://dcinchelp.zendesk.com/hc/ja/articles/360044708173)

    • If the URL of the TimeTracker NX server is not in a public top-level domain, the following error will appear.

      Invalid redirect: The end must be a public top-level domain (.com, .org, etc.). 

      If you get the above error, publish your TimeTracker NX server in one of the public top-level domains listed above.

      What is a top-level domain?

      A top-level domain is one of the components of domain names used on the Internet, and refers to a string equivalent to "jp", "com", "org", etc.
      To link with Google Calendar, you need to specify a public domain.

    • Depending on the firewall settings of the PC where the TimeTracker NX server is located,
      messages from Google Cloud Platform may not be accepted.
      Change the firewall settings in advance and make sure that messages are accepted.

  11. Obtain the information required to configure TimeTracker NX.

    Click the download button in the OAuth2.0 client ID list and
    save the obtained JSON format file.


    The following information written in the above JSON file will be used in the following settings.

    • client_id
    • client_secret

Registering with TimeTracker NX

Set the information obtained in "Step 1. Obtaining an API key" in TimeTracker NX.
This operation should be performed by a user with system administrator privileges.

  1. After logging in to TimeTracker NX, go to the following screen.
    "System Settings" → "System Operation" → "Import Events"

  2. Set the following for Google Calendar.

    ItemContent
    Enable featureCheck.
    Client ID
    / Client secret
    Enter the client_id and client_secret obtained in Step 1.

Click the "Save" button to complete the settings.
Users can now import Google Calendar events.

Microsoft 365 Outlook settings

See below for a video on how to set up.

Please follow the specific steps below.

The API key acquisition screen introduced in this chapter is as of October 2020.

The screen may change depending on the provider. Please check with the provider for details.

Acquiring an API key

The setting values displayed on the screen in steps 5 and 9 will be used in "Step 2. Registering with TimeTracker NX".

Copy it and keep it safe.

  1. Log in to the following link with your Microsoft account. : "Microsoft 365 Admin Center"

  2. Click "Azure Active Directory" from the side navigation.

  3. Click "Azure Active Directory" from the side navigation on the screen after the transition.

  4. Select "Manage" → "App registrations" and click "New registration".


  5. Enter the registration information for the application.
    Enter the "Name" and "Supported account types".


    For "Supported account types", select the item that corresponds to your security policy.

    Copy the following information from the screen that appears after clicking the "Register" button.

    • Application (client) ID
    • Directory (tenant) ID (if "Single tenant" is selected in "Supported account types")
  6. Click "Manage" → "Authentication" to open the authentication settings screen.

    If the above screen does not open, click "App registration" on the screen in step 4 and
    select the app created in step 5.

  7. Register the redirect URI.

    Please see below for details. No other settings are required.

    ItemContent
    TypeWeb
    Redirect URI{TimeTracker server URL}/auth_callback.html
    Example: If the TimeTracker NX server URL is "https://www.timetracker.jp/TimeTrackerNX", enter
    https://www.timetracker.jp/TimeTrackerNX/auth_callback.html

    Notes on "Redirect URI"

    • Calendar integration will fail if there is an error in the settings.
      Please make sure that the "Redirect URI" matches the URL where TimeTracker NX is actually located, including uppercase and lowercase letters.

    • Due to restrictions of the application (Microsoft 365 Outlook) to which you are registering, special symbols and HTTP communication are not supported.
      Please specify an address starting with https:// for the URL.

      To change the URL from http to https, you need to configure IIS (Internet Information Services).

      For details, see the following link: "Switch to HTTPS communication for enhanced security" (https://dcinchelp.zendesk.com/hc/ja/articles/360044708173)"

    • Depending on the firewall settings of the PC where the TimeTracker NX server is located, messages from the Azure Active Directory Administrative Center may not be accepted.
      Change your firewall settings in advance to make sure that messages are accepted.

  8. Set "Management" → "API permissions".
    Select "API permissions" and click "Add permissions".


    Scroll down on the "Microsoft APIs" tab and select "Microsoft Graph".

    Select "Delegated permissions" from "What types of permissions does your application require?"
    Select "Calendars" -> "Calendars.Read".
    After making your selection, click "Add permissions".


    Click the "Give consent to the administrator of {Domain name}" button and
    Verify that the Status field has been updated (see figure below).
    (If you are asked whether you need to carry out the process, select "Yes")

    • Before setting

    • After setting

  9. Set a client secret.

    Select "Manage" → "Certificates and secrets" and click "New client secret".

    Set the expiration date and click the "Add" button.
    To ensure security, we recommend updating the expiration date regularly.

    Copy the client secret and keep it safe.

    The client secret value will not be displayed if you move to another screen.

    If you lose your client secret, repeat this procedure and reissue the client secret value.

Registering for TimeTracker NX

  • The basic settings are the same as the following link: "Google Calendar Setup Step 2"
    Please change it to Microsoft Outlook (Microsoft 365) and set it up.

  • If you specified "Single Tenant" for "Supported Account Types" in step 5 of Step 1,
    In addition to the above steps, please set the following items.

If you specified "Multi-tenant", no settings are required.