set_relationship returns 500 in v7.11. Is backward compatibility not supported?

My use case is simple. I'm creating a Contact, I'm creating a Case and I associate that Case with the contact. When we initially built the integration, only api v4_1 was available.

When use API Key of SugarCRM v7.11, Contact creation and Case creation are succeeding. However, when the method `set_relationship` is invoked, the SugarCRM server is returning a 500.

The same code works for v6.5

How do you suggest we alter the integration to support all versions of SugarCRM for our use case?

Parents
  • Hi Arjun Mayilvaganan,

    I use this endpoint: 

    /<module>/:record/link POST

    This document describes the approach I use successfully.

    I hope this helps!

  • Hi Arjun Mayilvaganan,

    The relationship between Contacts and Opportunities has a unique field value representing the Contact Role. Therefore, the set_relationship Endpoint has this as a parameter.

    Is the version of PHP the instance is hosted on 7.1.x? You can download the phpinfo() file from Admin > Diagnostic Tool in the instance to confirm this.

    SugarCRM has documented defect #80605, which states that the v41 API endpoints without all parameters will result in a 500 fatal error in instances hosted on PHP 7.1.x. The defect is viewable in the support portal for anyone with access.

    I hope this helps.

Reply
  • Hi Arjun Mayilvaganan,

    The relationship between Contacts and Opportunities has a unique field value representing the Contact Role. Therefore, the set_relationship Endpoint has this as a parameter.

    Is the version of PHP the instance is hosted on 7.1.x? You can download the phpinfo() file from Admin > Diagnostic Tool in the instance to confirm this.

    SugarCRM has documented defect #80605, which states that the v41 API endpoints without all parameters will result in a 500 fatal error in instances hosted on PHP 7.1.x. The defect is viewable in the support portal for anyone with access.

    I hope this helps.

Children
No Data