Skip to content

Instantly share code, notes, and snippets.

@chicks
Created November 16, 2010 19:10
Show Gist options
  • Save chicks/702301 to your computer and use it in GitHub Desktop.
Save chicks/702301 to your computer and use it in GitHub Desktop.
# Use the HTTP Connection and SugarCRM API to load the Admin user
SugarCRM.connection.get_entry("Users", 1)
# Retrieve all Accounts by user name (direct API method)
SugarCRM.connection.get_entry_list(
"Users",
"users.user_name = \'sarah\'",
{
:link_fields => [
{
"name" => "accounts",
"value" => ["id", "name"]
}
]
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment