UpdateRelatedRecords Method in CRM custom function

UpdateRelatedRecords Method in CRM custom function

Hi everyone,

I am trying to use UpdateRelatedRecords method inside custom function in CRM and I keep getting message errors.Can someone please check what I am doing wrong here. Here is the piece of code:

mp=map();
mp.put("authtoken","exxxxxxxxxxxxxxxxxxxxxxxxx");
mp.put("scope","crmapi");
mp.put("relatedModule","Products");
mp.put("id","100000000000000000008");
xml_data = "<Products><row no = \"1\"><FL val =\"ID\" >"+ 100000000000000001 +"</FL></row></Products>";
mp.put("xmlData", xml_data);
info url;


I tried forming url manually and put it in browser and it works but doing it inside custom function no way.
There is no way to make it work, I keep getting this response:

  • <?xml version="1.0" encoding="UTF-8" ?> <response uri="/crm/private/xml/Potentials/updateRelatedRecords"><error><code>4832</code><message>Problem occured while processing the request</message></error></response>Method