Skip to main content

Possibility to use monday.execute on server side

  • September 6, 2023
  • 12 replies
  • 561 views

marcelo1

Hello.

There is a function on monday SDK called execute and there is an action called addMultiBlocksFromHtml. I need to make a migration from Confluence to monday docs. Confluence returns the page content as HTML and I think that action on monday would help a lot.

I need to create that migration in a nodejs app. But when I try to use the execute function I receive an error: execute is not a function.

Is there any way to use the same function/action on server side? Could you guys help me to find another solution for this?

Thank you!

12 replies

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • September 6, 2023

Hello there @marcelo1,

There is no way to do that from the server side.

What you want to do is to add HTML content to a workdoc? Is that the goal?

Looking forward to hearing from you 🙂

Cheers,
Matias


marcelo1
  • Author
  • New Participant
  • September 6, 2023

Hello @Matias.Monday

That’s exactly what I need.

The Confluence API returns the content as HTML and I would like to create a doc_block with it.

Do you think it is possible?

Thank you!


marcelo1
  • Author
  • New Participant
  • September 9, 2023

Hey @Matias.Monday

Do you think it’s possible to send a HTML string for creating a document block?


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • September 10, 2023

Hello there @marcelo1,

Sorry for the late reply. As of today, HTML can not be added via API.

Let me know if you have any other questions!

Cheers,
Matias


linhle
  • Participating Frequently
  • August 15, 2024

hi @Matias.Monday , so if monday.execute can’t be run on the server side, do you know how I can run: monday.execute(‘valueCreatedForUser’) for my integration app?

It’s a server side only app, there’s no client code. Or am I missing something? Thank you.


kolaai
Forum|alt.badge.img
  • monday.com Partner
  • August 16, 2024

monday.execute('valueCreatedForUser') is currently only required for view apps not integration apps since the execute function doesn’t run on the server side.


  • Participating Frequently
  • August 16, 2024

But the reviewers are now requiring valueCreatedForUser to be used in all apps someplace - appearing to require even integration only apps to have a UI feature someplace that uses it. Such as a app settings feature.


kolaai
Forum|alt.badge.img
  • monday.com Partner
  • August 17, 2024

That means now integration apps with no views have to create a view just to have valueCreatedForUser? Strange.


  • Participating Frequently
  • August 17, 2024

Apparently. I have no official word but multiple devs have now stated that they’ve been told they are required to have a valueCreatedForUser event to get approval.


linhle
  • Participating Frequently
  • August 18, 2024

@kolaai @anon29275264 I see. I’m also reaching out to technical support and I’ll update folks with their decision soon.

Requiring a ‘valueCreatedForUser’ call for integration app would defeat its purpose. If we need to make that call “inorganically” from the front end, the call won’t match when value is really created.


  • Participating Frequently
  • August 18, 2024

Which is esp. frustrating because the valueCreatedForUser statistics are only available to monday internally. They aren’t even a thing devs can use to get insight into something.


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • August 19, 2024

Hello everyone!

valueCreatedForUser is not necessary for apps where it can not be implemented.

If there is any confusion about it during your review process, please ask the review team to talk to me 😀