Skip to content

Existing relationships not found with get_relationships #17

Description

@emmanuelcohen

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions