Syntax of a function RPC call
Hello,
I want to use RPC to trigger a function.
I've seen a POST data example that you suggested on a document :
{"objectName":"Building\General\Users\User","functionName":"SendAlert","value":["'Hello'"]}
I want to run a RunFromClient() of a program : so, there are no parameter / value to send in the function.
I've tried {"objectName":"Tasks\\beds24\\THStartHeating","functionName":"RunFromClient()","value":"true"} but it's not working. Could you confirm the syntax when there are no value to send within the function ?
Thank you very much,
François
Hello Francois,
there is a small deserialization issue when converting the string on our side and we've already fixed it. You can expect a fix with the next beta/stable release.
In the meantine, you can use RPC and send commands, but instead of sending them directly to the user, You can create a Message task and simply run that task, that will send the alert to the user, image attached.
Hope this helps!
Best regards, Davidmessage.JPG