I am trying to fetch all the user data from the salesforce using restforce REST Api.I have salesforce account object. Now i would like to get all associated data with this account object.
This is a multi-step process:
Get the columns for the object:
# get the describe for the Account object account_columns = client.describe('Account') # => { ... }
Run a normal query:
accounts = client.query("select #{account_columns} from Account where Id = 'someid'") # => #<Restforce::Collection> account = accounts.first # => #<Restforce::SObject>
Access related objects:
account.Owner
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.