-
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
Salesforce Health Cloud for Health and Wellness Coaching
Within the ever-changing healthcare scene, technology keeps becoming more and more important in providing individualised and effective services. Salesforce Health Cloud is a game-changer when…
Salesforce Health Cloud Data Model - Demystifying Guide
Salesforce Health Cloud is a powerful platform to streamline operations and enhance patient care. Understanding the data model of Salesforce Health Cloud is paramount for…
Tips To Use Salesforce Effectively, With Salesforce Online Training
Salesforce is one of the most popular CRM platforms. In recent years, there is a massive increase in the number of companies that are proudly…