AnsweredAssumed Answered

app.api.buildURL not working for me

Question asked by Mehul Bhandari on May 7, 2016

Hi All

this is my code , i have writen in record.js

 url = app.api.buildURL('Contacts/'+cont_id+'/link/accounts_contacts/');
         app.api.call('GET', url, null, {
         success: _.bind( function (data){
          console.log(data);
          console.log("MSBHANDARI");

        }, this),
        error:_.bind(function(o){
          console.log("Error retrieving Account related to Contact" + o);
        }, this),
      });       

 

its giving me

Error retrieving Account related to ContactHTTP error: 404

type: error

error: Not Found

response: {"error":"not_found","error_message":"Could not find a relationship named: accounts_contacts"}

code: not_found

message: Could not find a relationship named: accounts_contacts

Outcomes