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?