-
How can i get the owner Name of account object by DML and put at the outputfield of visualForce Page?
I am trying this apex code-
public String owners{
get{
return [select owner.firstname from Account where ownerid=:this.account.ownerid][0].name;
}
private set;}
<apex:outputField action="{!owner}"/>
Log In to reply.
Popular Salesforce Blogs
Ways of Populating Data Extensions in Salesforce Marketing Cloud
Blog
in Data, Salesforce Cloud Platform
In one of my blogs, I have shared what types of data extensions we have in Salesforce Marketing Cloud. In this one, I am going…
Learn Salesforce Einstein - Chapter 1 (Salesforce Einstein Introduction)
Blog
in AI and ML, Salesforce Einstein
Salesforce Einstein Introduction The Einstein API allows you to go into the power of AI and train deep learning models to recognize and classify images…
Change Your Business Game With Salesforce and Vlocity
Blog
in Salesforce
Salesforce has been one of the most well-known CRM platforms used by thousands of businesses, accountants, and firms all over the world. With over 150,000…