Skip to main content

Update column value based on the result of a custom action

  • January 20, 2023
  • 4 replies
  • 1005 views

I’m trying to build a recipe that carries out a custom action and then can also update an item column value based on the result of that action. For example, if there is a status column value of ‘pending’ for an item and the custom action returns a 200, then I want to change that status to ‘success’. If it returns anything else, then I want to change that status to ‘error’. Is this possible?

4 replies

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • January 22, 2023

Hello @shyam-ayrshare and welcome to the community!

I hope you like it here 💪

Yes. You can create a custom app with an integration feature. In it, you can create a custom action.

The custom action has a run URL. That run URL is an endpoint on your end that is called when the trigger is triggered. You control what happens when that endpoint is called. Meaning that you can receive the call, do something, wait to check if it returns a 200 and when it does, send an HTTP request to our server with a mutation to change that status column. All of that can be in your script when that endpoint is called.

I hope that helps!

Cheers,
Matias


  • Author
  • Participating Frequently
  • January 23, 2023

Thanks for your reply! I was thinking about this but couldn’t figure out how the authentication would be done in this case. I see now the part in the docs about a signing secret and a short-lived jwt token being set along with the post. How would you recommend testing this? Is there any way to see the data being posted for a particular active recipe so that I can test my API endpoint?


  • Author
  • Participating Frequently
  • January 23, 2023

Actually I figured out how to test it. Thanks for your help!


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • January 24, 2023

Hello @shyam-ayrshare,

I am glad you found the answer 🙂

Let us know if you have other questions!

Cheers,
Matias