I’m new to monday.com so need your help on the below,
I’m trying to find the server status through node.js and update the status in monday.com , could see result column updated but when i checked on monday.com board no changes.
For me to further help, Please try using a query like that one. And after you do, if it does not work, I would need to know:
What exact response you are getting from our server when you send that mutation
What happens if you use your Playground to do this? Can you please send a screenshot of the query and the response in your Playground? To do this:
a. Click on your profile picture or initials
b. Click on “Developers”
c. Click on “Developer”
d. Click on “API Playground”
e. Write your query and click on the “Run” button that looks like a “Play” button.
With that information I will better understand the context here.
Thanks again for your help and prompt, I agree to you to update the status this query but in my case i need to get the output from the script whether server online or offline how to edit query in that way. Much appreciated if you could help me on it.
I am not experienced with Ping, but it looks like your problem lies there (it is not related to monday).
Looking into the documentation, they use this like this:
ping.sys.probe(host, function(isAlive){
var msg = isAlive ? 'host ' + host + ' is alive' : 'host ' + host + ' is dead';
console.log(msg);
});
The differences I see between your script and the example given is that they use “function” instead of your “async”, and they use “var” instead of “const” for the message.
I don’t know if that could help solve the issue but I would give it a shot.
I appreciate your time and helping me, but still im not sure whats wrong i tried the way you suggested this time i got result but not updated in column .
I need you to please answer the following questions so I can help you with this:
What exact response you are getting from our server when you send that mutation?
What happens if you use your Playground to do this? Can you please send a screenshot of the query and the response in your Playground?
To do this:
a. Click on your profile picture or initials
b. Click on “Developers”
c. Click on “Developer”
d. Click on “API Playground”
e. Write your query and click on the “Run” button that looks like a “Play” button.
It looks like in the second one you are passing ${status} as if that was a string of a status you have and you probably do not have a status label called ${status}.
That is why you are getting an error. You are passing a string as if it was a variable and it is not because you are not defining that variable anywhere in the Playground.
But, as I can see from the first one, the mutation works well in monday. The status column was updated successfully.
Why are you using return monda.api(query)?
You can just use something like this: monday.api(query).then(res => console.log(res)) and you should see the response from our server.