-
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

Synchronous and Asynchronous calls using Apex in Salesforce
Synchronous And Asynchronous Apex Synchronous: Don’t forget to check out: Asynchronous Apex In a Synchronous name, the thread will wait until it completes its obligations…

10 Hottest Salesforce Features to Simplify Your Business Tasks
In today’s digital age, businesses must innovate to build strong customer relationships, streamline operations, and drive growth. Salesforce, a leading customer relationship management (CRM) platform,…

Lead Conversion In Salesforce | Best Practices
Focussing on lead conversion, it can be understood as a process of converting a lead to account, contact, and/or opportunity. Lead generation in Salesforce can…