-
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
Employee Onboarding Made Easy With Walk-Throughs on Salesforce-Powered Communities
Blog
in Salesforce
We are currently in the midst of a learning revolution. Technology has given us the tools to build learning programs that meet individual learners where…
What is Salesforce Net Zero Cloud?
Blog
in Others
Barely a day goes by without there being something in the news about climate change, sustainability or carbon footprints. It is a major focus for…
Salesforce Marketing Cloud Genie — Building Real-time Relationships with Customers
Blog
in Salesforce Cloud Platform
Salesforce Marketing Cloud is a digital platform that combines multiple tools and solutions. It provides everything you need including email marketing and audience development. Salesforce stores data…