CurrentAccountRenderButton Button Class
The CurrentAccountRenderButton button class displays a button only when the logged in user meets the criteria defined on the data source for the button.
How Can I Use It?
- Are not members. The button displays for non-members, and they can click it to go to a page where they can learn more about member benefits.
- Have demographics on whether they know other languages as a special skill. The button displays for those who have this special skill, and they can click it to go to a page where they can provide more information.
- Purchased the ability to export the active membership list. The button displays for those who have a historical record of the purchase and they can click the button to download the file.
When using this button class on a button with a data source using a SOQL Query record, keep in mind the SOQL Query will return up to 50,000 records. To ensure you are not exceeding this limit, be sure to filter for the account ID of the logged in user as well as other criteria in the WHERE clause of the SOQL Query record. Example:
Id = {!CurrentAccountId} AND nu__Member__c = 'Yes'