Sync contacts from third party application to freshdesk

Hi everyone!
I am trying to develop a Freshdesk app that integrates with Upsales to synchronize contact data. The app aims to:

  1. Fetch Contact Data: Retrieve contact information from Upsales.
  2. Sync Contacts: Create or update corresponding contacts in Freshdesk based on the data fetched from Upsales.

Progress:

  1. Platform Version: Freshworks Platform Version 2.3.
  2. Configuration:
  • manifest.json: Configured to specify the app’s location, events, and requests.
  • request.json: Set up to handle API requests for fetching contacts from Upsales and creating/updating contacts in Freshdesk.
  1. App Code:
  • app.js: Manages initialization, button event handling, and API requests. Ensures proper client initialization and handles API interactions.
  • contact_details.js: Displays contact details and handles specific UI logic.
  1. Issues:
  • Encountered 401 Unauthorized errors, indicating possible issues with API keys or authentication.
  • Facing challenges with app initialization and button event handling, which are being debugged.

I am very new to creating apps and have no prior code experience, I am studying some Java, HTML and CSS atm
Any help is much appreciated, thank you

Hi @Gabbe

Welcome to the Freshworks Developer Community…! :blush:

401 Unauthorized errors indicate that your API credentials are incorrect. Please verify that you are using the correct credentials and ensure they are being securely obtained from the appropriate source. Additionally, check the request method used to make API requests in your app

You can find more insights about app lifecycle events here. Understanding these events is crucial for optimizing your app’s performance, managing resources efficiently, and ensuring smooth transitions between different app states. This resource will help you better grasp how lifecycle events impact your app’s functionality and user experience.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.