-
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
Here's What To Expect From Salesforce's TrailheaDX 2021
Blog
in Salesforce Trailhead
TrailheaDX is the year's most exciting event for Trailblazers who want to learn new ways to build apps on Salesforce and expand the Salesforce Customer…
How to Get Public Link for Salesforce File
Blog
in Salesforce
Documents/reports which are appended in the record are put away as Salesforce File. Salesforce File is utilized to share and work together on transferred records,…
The High-Tech Storefront: Managing Complex Software and Hardware Bundling in Salesforce Commerce
Blog
in Salesforce
High-tech enterprises face a major shift in product distribution models. Traditional technology sales separated physical equipment from software systems. Today, corporate customers demand integrated digital…