Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8739273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:54:08+00:00 2026-06-13T10:54:08+00:00

I am using SugarCRM Pro 6.5.5. I am trying to do some integration into

  • 0

I am using SugarCRM Pro 6.5.5. I am trying to do some integration into another application, so I need to do some API calls from that other application. I am using the REST API v2. At this point, I need to get a Contact that is related to an Account via the account ID. I have tried both get_relationships() and get_entry_list(), but I can’t get either of them to work.

Here’s my input for get_relationships():

{"session":"eujfbfsfjgni98m0mivl6jm6r2","module_name":"Accounts","module_id":"c03d0649-0525-2f90-1206-50881e87d7dd","link_field_name":"contacts"}

I have tried many variations of this, and several other options, but nothing did what I wanted. This is the output from above:

stdClass Object
(
    [entry_list] => Array
        (
            [0] => stdClass Object
                (
                    [id] => 
                    [module_name] => Contacts
                    [name_value_list] => stdClass Object
                        (
                            [deleted] => stdClass Object
                                (
                                    [name] => deleted
                                    [value] => 0
                                )

                            [do_not_call] => stdClass Object
                                (
                                    [name] => do_not_call
                                    [value] => 0
                                )

                        )

                )

        )

    [relationship_list] => Array
        (
        )

)

I don’t see how this information could ever be useful.

Next up, I tried get_entry_list() with a query to select only the Contacts that had the given account ID. Here’s my input for that:

{"session":"8mol33e7kdq6girugu30dnt074","module_name":"Contacts","query":"accounts.id = 'c03d0649-0525-2f90-1206-50881e87d7dd'"}

I am using accounts.id because I have read in similar questions, that is correct. I’ve tried many other things, like: contacts.account_id, account_id, etc. In every case, I get a MySQL error in the log stating the column is invalid.

SugarCRM: how to get all contacts for an account via REST API

This question is relevant, and seems to be the exact same problem. I tried adding a link_name_to_fields_array option to my input, but no matter what value I provide, it results in the following MySQL error in the log:

AND jt11.deleted=0 where (Array) AND contacts.deleted=0: MySQL error 1054: Unknown column 'Array' in 'where clause'

Dafuq?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:54:09+00:00Added an answer on June 13, 2026 at 10:54 am

    Thanks to ychaouche, I figured it out.

    I was able to use the get_relationships() method after all. I had tried before adding the related_fields to my input, but all that did was result in an empty result set. The answer? Set related_module_query to an empty string… and now the result set is not empty. Yep, my 3+ hours of furious Googleing last night is because of that.

    So, here is some working code in case anyone else has this problem:

    {
        "session": "iov9pg9kvvl60librung1h5fh6",
        "module_name": "Accounts",
        "module_id": "c03d0649-0525-2f90-1206-50881e87d7dd",
        "link_field_name": "contacts",
        "related_module_query": "",
        "related_fields": [
            "first_name",
            "last_name"
        ],
        "deleted": false
    }
    

    This got me the following result set:

    stdClass Object
    (
        [entry_list] => Array
            (
                [0] => stdClass Object
                    (
                        [id] => 
                        [module_name] => Contacts
                        [name_value_list] => stdClass Object
                            (
                                [first_name] => stdClass Object
                                    (
                                        [name] => first_name
                                        [value] => John
                                    )
    
                                [last_name] => stdClass Object
                                    (
                                        [name] => last_name
                                        [value] => Smith
                                    )
    
                            )
    
                    )
    
            )
    
        [relationship_list] => Array
            (
            )
    
    )
    

    You can of course specify different fields in related_fields and get different pieces of data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using IOS, I am trying to integrate the LinkedIn into the application. The integration
I am trying to login to SugarCRM using jQuery and Sugar REST API. I
I'm new to using SugarCRM. I want to have a users page that does
I am trying to Login or SugarCrm using REST. I have this code,, //Login
I want to import data from java web application to sugarCRM. I created client
Using mercurial, I've run into an odd problem where a line from one committer
I am using sugarCRM Open Source Application for my own purpose. When I click
I am using SugarCRM v6.x and have discovered that when transferring account ownership to
Using C# .NET 3.5 and WCF, I'm trying to write out some of the
Using C#, I need a class called User that has a username, password, active

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.