Integrating NetSuite into Genesys

Hello!

As many people know, Oracle NetSuite is a HUGE company and many businesses use it as their CRM. We use it here where I work, and I am trying to integrate the 2, maybe get some type of screen pop, bring up the customer's info, or create a new customer if they are not found. For the life of me, I have not seen anyone do this or attempt to do this, and it just blows my mind. I am currently trying to do this on my own before contacting Genesys' Developers to save some money for the company. I am just not having the best of luck. I am trying to use APIs from both NetSuite and Genesys. I have created integrations and Access tokens in NS(NetSuite) and Genesys. I am currently working on data actions in Genesys, but of course, I am getting errors. This is the error I get from one of the POST-type data actions on the "Execute" step.

"message": "The request could not be understood by the server due to malformed syntax.",
"code": "bad.request",
"status": 400,
"messageParams": {},
"contextId": "9913e9e0-faeb-4fc0-8316-60b559dc5f62",
"details": [
{
"errorCode": "ACTION.REMOTE_ENDPOINT"
}
],
"errors": [
{
"message": "REST call for action execute failed. Message: Request to backend service failed. Response from web service: {"error":"invalid_request"}\n [9913e9e0-faeb-4fc0-8316-60b559dc5f62]",
"code": "BAD_REQUEST",
"status": 400,
"messageParams": {},
"details": [],
"errors": []
}
]
}
Any suggestions or if anyone knows and easier and quicker way, minus contacting Genesys, for now, anyway, plus I REALLY want to learn this stuff myself as well, would be greatly appreciated!

This means the server you sent the request to is responding with an error saying that the request is invalid. The server is not providing a helpful error message though. The general best practice for troubleshooting is to get your request worked out without using a data action, using something like postman, so that you have a known working request. Once you have that, you can compare the working request with what you have in your data action and fix the data action to make the same request as the working one.

If you're unable to get a request to the 3rd party service to work, check the logging for that service or open a support case with them to troubleshoot why your request isn't working. We can help guide you if you know what request you need to make and are struggling to format it correctly, but we cannot troubleshoot why a 3rd party service is responding with a bad request error.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.