Results 1 to 6 of 6

Thread: soap api connecting two tables

  1. #1
    sugarcare is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    405

    Default soap api connecting two tables

    Hi

    I am trying to access records from multiple tables that are formed with a relationship.

    say contact and case. I have contact ID. How to access the cases that have this contact ID. I am able to run a sql query, but acheiving via SOAP API is brain teaser!!!

    for instance:

    session value is okay,
    what is module name?
    what is Query will be ?
    I need to select some columns in both tables/modules. How do i do this?
    what is the offset in this regard?
    Last edited by sugarcare; 2006-06-05 at 09:12 PM.

  2. #2
    vietha is offline Junior Member
    Join Date
    Aug 2006
    Posts
    2

    Default Re: soap api connecting two tables

    Has anyone figured this problem out?

  3. #3
    stevec is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,100

    Default Re: soap api connecting two tables

    Have you tried querying the contacts_cases table via SOAP with the contact_id to obtain the case_ids, then query the cases table with these ids to get the case recrods you want?

    Not as neat as a single query but it will achieve what you want.

  4. #4
    Scott_Savage is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Sydney, Australia
    Posts
    193

    Default Re: soap api connecting two tables

    In a somewhat related question is it possible to access the relationship tables through the SOAP interface? I have tried the "set_entry" method with module "calls_contacts", however there is no module. However if I just do the calls update it doesn't update the corresponding relationship table?

  5. #5
    Scott_Savage is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Sydney, Australia
    Posts
    193

    Default Re: soap api connecting two tables

    Is this actually a bug? I think that the SOAP function should know that if a call is related to a contact then it also needs to make an entry into the calls_contacts table?

  6. #6
    Scott_Savage is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Sydney, Australia
    Posts
    193

    Unhappy Re: soap api connecting two tables

    Alright I am filing this as a defect bug, or rather adding a note to an existing defect bug.

    See the details for Bug 6494

    This bug was filed back in May though, so don't like my chances of it getting fixed soon...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •