Skip to main content

Assistance with Creating an App Feature for Workdocs with External API Fetch

  • February 14, 2024
  • 1 reply
  • 157 views

ad-amorim

Hello, Monday.com Community!

I’m currently working on developing an app feature and could really use some guidance. My goal is to create a feature that activates each time a user opens a Monday.com Workdoc. The essence of this feature is to fetch data from an external API and then display an informational notice to the user via monday.execute("notice");.

I’m contemplating using a React-like approach with useEffect for initiating the API call when the Workdoc is opened, but I’m not entirely sure if this is the best method within the Monday.com app framework, or even how to properly integrate such a functionality within a Monday.com app.

Here are the specifics of what I’m trying to achieve:

  • Trigger: Automatically run the feature every time a user opens a Monday.com Workdoc.
  • Action: Fetch data from an external API.
  • Output: Display the fetched data as an “info” using monday.execute("notice");.

Is using something akin to useEffect the best way to detect when a Workdoc is opened and trigger the API call? If not, what alternative approaches would you recommend?

1 reply

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • February 18, 2024

Hello there @ad-amorim and welcome to the community!

I hop you like it here 💪

There is no way for your app to get notified when a workdoc is opened.

You can check our doc actions for workdocs here!

Cheers,
Matias