AnsweredAssumed Answered

Call custom REST API from record.js controller

Question asked by Oscar Castro on Nov 30, 2016
Latest reply on Dec 12, 2016 by David López


I need to save some records stored in a json, i was following this link: json - Creating multiple records with the v10 REST API in SugarCRM - Stack Overflow , wich is exactly what i need. But i need call this REST API from a js controller.

I found in this link: SugarCRM 7 create custom Rest Api with Post method and call from record.js using ,'create', App.api.buildURL('DupDetector'), {"parameter1":"test", "parameter2": "test2"}, {
            success: function (data) {

            error: function (e) {
                throw e;


I change the DupDetector for SetEntries, described in the first post, but doesn't work. Return this error:

{"error":"no_method","error_message":"Could not find a route with 1 elements"}


How can i send a json from the controller to the custom REST API?


Thanks for the help.