Hi
In the following code, "entry" is a SugarEntry (of type SITES) that I am retrieving with the API.
I want to retrieve a relationship between SITES and LEASES. A Lease entry has a Related field in the Site entry.
I know that this particular relationship exists between this particular "entry" and a "lease" object.
self.session = sugarcrm.Sugarcrm(url, username, password)
print self.session.get_relationships(Sugar.SITES_TABLE, entry['id'], Sugar.LEASES_TABLE.lower(), "", [], [])
>> {u'relationship_list': [], u'entry_list': []}
What am I doing wrong?
I tested the same code with other relationships (n:n, 1:n) but no luck either.
Please help.
Emmanuel
Hi
In the following code, "entry" is a SugarEntry (of type SITES) that I am retrieving with the API.
I want to retrieve a relationship between SITES and LEASES. A Lease entry has a Related field in the Site entry.
I know that this particular relationship exists between this particular "entry" and a "lease" object.
self.session = sugarcrm.Sugarcrm(url, username, password) print self.session.get_relationships(Sugar.SITES_TABLE, entry['id'], Sugar.LEASES_TABLE.lower(), "", [], []) >> {u'relationship_list': [], u'entry_list': []}What am I doing wrong?
I tested the same code with other relationships (n:n, 1:n) but no luck either.
Please help.
Emmanuel