I’m calling a stored procedure and passing some parameters in the script with the following statement (below). I get a “No response received” when I call the API and the stored procedure is not executed.
I believe the issue is in the platform.api.post section and the way I pass in the “body” variable. Any tips on getting this to work?
Thanks
var body = {
"params": [{
"name": "DOB",
"param_type": "",
"value": "10/01/2015",
"type": "date"
}, {
"name": "Name",
"param_type": "",
"value": "Jenni",
"type": ""
}, {
"name": "IsVariable",
"param_type": "",
"value": "1",
"type": ""
}, {
"name": "Gender",
"param_type": "",
"value": "F",
"type": ""
}, {
"name": "Email",
"param_type": "",
"value": "john.doe@gmail.com",
"type": ""
}, {
"name": "Phone",
"param_type": "",
"value": "80056533532",
"type": ""
}]
};
platform.api.post("mysql/_proc/bitnami_dreamfactory.usp_dp_something", body, options);