function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DaeriminDaerimin 

Salesforce.com customer unique ID

Hi,

 

I am writing triggers for an app, and I need to know how to get an email or ID that uniquely identifies the overall account, not just a user - and when I say "account" I DO NOT mean the object inside Salesforce that represents someone a user is trying to sell to - I'm talking about the person who pays Salesforce.com as a customer.

 

I'm writing an app that interacts with an external service.  The service is sold per-user, so I need to be able to tie individual users to an overall salesforce account.  When an admin wants to entitle of their users to use a purchased slot on our service, I need to be sure they haven't exceeded the number of users they've purchased.

 

Sorry if this post was confusing.. lol  I'm trying my best, I promise.

 

Thanks!

Best Answer chosen by Admin (Salesforce Developers) 
ImposterImposter

Hi,

I think you can use the Organization Id.

UserInfo.getOrganizationId()

All Answers

ImposterImposter

Hi,

I think you can use the Organization Id.

UserInfo.getOrganizationId()

This was selected as the best answer
DaeriminDaerimin

Many thanks.  That was successful.