-
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
Visualizing Salesforce Metadata: Understanding the Relationships with AbstraLinx ERDs
Blog
in Salesforce Tools
Salesforce is an excellent platform for managing your business as it offers all the necessary features in one place, allowing you to work more efficiently.…
How does Salesforce Address the Security Challenges of Generative AI for CRM?
Blog
in Salesforce Security
OpenAI released ChatGPT in November 2022 and attracted worldwide attention with its capability to deal with challenging language understanding and generation tasks in conversations. OpenAI…
All About Salesforce Marketing Cloud, Email studio and Content Builder
Blog
in Salesforce Cloud Platform
Hey you all, hope you are doing well! In this blog, I am going to tell you about Marketing Cloud and its primary email sending…