How to delete records / relationships in a SugarCRM web service

The SugarCRM Web Service API provides only methods for Set and Retrieve records / relationships.

How can I make delete / delete records and their relationship with records in other related modules?

Is the web service API designed for Get and Set only?

+4
source share
1 answer

You can set the “deleted” flag to “1” as one of the fields in “name_value_list” in the set_entry / set_entries call, and it will mark the entry.

http://gist.github.com/4019840

For relationships, you can use set_relationship / set_relationships and pass the argument '1' for the 7th argument so that this call removes the relationships instead of adding them.

http://gist.github.com/4019851

+3
source

Source: https://habr.com/ru/post/1444110/


All Articles