-
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
How to use Amazon AppFlow to transfer data between Salesforce and AWS
Managing the flow of data between AWS and Software-as-a-Service SaaS applications like Salesforce can be difficult, time-consuming, and expensive. Developers can often spend months writing…
FileMaker, Salesforce Integration - Get the Best of Both the Worlds
First things first, why do we need the integration at all? Direct integration between FileMaker and Salesforce allows developers to use the best capabilities of…
Learn All About SOQL in Salesforce
SOQL SOQL is a language that extracts data from the Salesforce database. In Object-Oriented Programming for Admins you found that you can use Data Manipulation…