Results 1 to 3 of 3

Thread: Help with get_entry REST call

  1. #1
    ctataryn is offline Junior Member
    Join Date
    Jan 2012
    Posts
    2

    Default Help with get_entry REST call

    I have successfully called the get_entry method via Sugar's SOAP endpoint, but when I try to fashion a RESTful call, I get the following error:

    Code:
    {"entry_list":[{"id":["c8cc0f41-446e-22ad-2227-4efcde289253"], "module_name":"Contacts","name_value_list":[{"name":"warning","value":"Access to this object is denied since it has been deleted or does not exist"},{"name":"deleted","value":"1"}]}],"relationship_list":[]}
    The REST call I'm making has this set as rest_data in the post:

    Code:
    method=get_entry&input_type=json&response_type=json&rest_data={"session":"04j6jadtidl0uj4t4083ptlf10","module_name":"Contacts","ids":["c8cc0f41-446e-22ad-2227-4efcde289253"],"select_fields":["id","first_name","last_name"]}
    Can anyone see anything wrong?

  2. #2
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: Help with get_entry REST call

    Quote Originally Posted by ctataryn View Post
    I have successfully called the get_entry method via Sugar's SOAP endpoint, but when I try to fashion a RESTful call, I get the following error:

    Code:
    {"entry_list":[{"id":["c8cc0f41-446e-22ad-2227-4efcde289253"], "module_name":"Contacts","name_value_list":[{"name":"warning","value":"Access to this object is denied since it has been deleted or does not exist"},{"name":"deleted","value":"1"}]}],"relationship_list":[]}
    The REST call I'm making has this set as rest_data in the post:

    Code:
    method=get_entry&input_type=json&response_type=json&rest_data={"session":"04j6jadtidl0uj4t4083ptlf10","module_name":"Contacts","ids":["c8cc0f41-446e-22ad-2227-4efcde289253"],"select_fields":["id","first_name","last_name"]}
    Can anyone see anything wrong?
    Try changing 'json' to 'JSON' in the URL given and see if that makes it work. Older versions of Sugar has a bug here on handling this argument.
    John Mertic
    Sugar Community Manager

  3. #3
    ctataryn is offline Junior Member
    Join Date
    Jan 2012
    Posts
    2

    Default Re: Help with get_entry REST call

    Thanks for the suggestion, but no dice

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problem with SOAP get_entry call
    By JMGRipped in forum Developer Help
    Replies: 7
    Last Post: 2012-01-19, 10:19 PM
  2. Call oauth_access using REST API
    By bpaulose in forum Developer Help
    Replies: 0
    Last Post: 2012-01-12, 12:30 PM
  3. Call oauth_access using REST API
    By bpaulose in forum Developer Help
    Replies: 0
    Last Post: 2012-01-12, 11:31 AM
  4. REST get_entry with custom field
    By osamcrm in forum Developer Help
    Replies: 2
    Last Post: 2011-04-27, 03:24 PM
  5. SOAP call get_entry for EmailAddresses
    By Editha in forum Help
    Replies: 4
    Last Post: 2009-06-12, 08:11 AM

Tags for this Thread

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
  •