Rhyous

November 2, 2009

How to query for the amount of objects in Salesforce?

Filed under: Salesforce / SForce — J. Abram barneck @ 10:12 pm

Well, this was simple.

It is almost the same as doing a count in a MS SQL or MySQL query, only you don’t specify a column name or a * inside the parenthesis.

SELECT count() FROM SalesForceObject

So for example if you wanted to know how many User objects, you could run this SOQL query:

SELECT count() FROM User
Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: