Created
November 16, 2010 19:10
-
-
Save chicks/702301 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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