|   | Sergey Kornilov admin 5/9/2020 | 
| So, what is happening? Any error messages? Does the same code work if you place it to a standalone PHP file? | |
|   | aadham author 5/9/2020 | 
| So, what is happening? Any error messages? Does the same code work if you place it to a standalone PHP file? 
 global $dal;
 | |
|   | Sergey Kornilov admin 5/10/2020 | 
| Check this article that explains how to troubleshoot custom buttons: | |
|   | aadham author 5/10/2020 | 
| Check this article that explains how to troubleshoot custom buttons: https://xlinesoft.com/phprunner/docs/troubleshooting_custom_buttons.htm I'm pretty sure that there is some PHP error happens in the Server part of the code and you need to find it. 
 $token = $_SESSION['Token'];
 
 var message = result["txt"] + " !!!";
 | |
|   | Sergey Kornilov admin 5/11/2020 | 
| It looks like the variable $_SESSION['Token'] is not populated. | |
|   | aadham author 5/11/2020 | 
| It looks like the variable $_SESSION['Token'] is not populated. 
 | |
|   | Sergey Kornilov admin 5/11/2020 | 
| But here is what I can see in your error message: [msg] => The JSON value could not be converted to System.Collections.Generic.Dictionary`2[System.String,System.String]. Path: $.Points | LineNumber: 2 | BytePositionInLine: 14.Cannot get the value of a token type |Number| as a string.
 | |
|   | aadham author 5/12/2020 | 
| But here is what I can see in your error message: [msg] => The JSON value could not be converted to System.Collections.Generic.Dictionary`2[System.String,System.String]. Path: $.Points | LineNumber: 2 | BytePositionInLine: 14.Cannot get the value of a token type |Number| as a string.
 
 | |
|   | aadham author 5/24/2020 | 
| Thank you very much Sergey. I've printed the $token and $Body_Parameters the API is receiving and they're identical to the ones my app is sending, so I sent the developers of the other app asking for their diagnosis. I'll update the post once I hear back from them. Thank you. 
 $record=$button->getCurrentRecord();
 | |