How to find Quote Owner’s Manager’s Name and Signature using soql query in Visualforce Salesforce | How to get the Quote owner’s manager’s Name to display “apex:outputField” in Visualforce Salesforce

330 views

Hey guys, today in this post we are going to learn about How to find Quote Owner’s Manager’s Name and Signature using soql query in Visualforce Salesforce.

 

Final Output →

How to find Quote Owner’s Manager’s Name and Signature -- w3web.net

 

You can download file directly from github by Click Here.

Note:: – You will get an email, so put correct email and mobile number and BEGIN YOUR JOURNEY from Today!

 

 

Other related post that would you like to learn in Salesforce

 

  • Find the below steps ▾

 

Create Visualforce Page

Step 1:- Create Visualforce Page : richTextAreaVf.vfp

From Developer Console >> File >> New >> Visualforce Page

richTextAreaVf.vfp [Visualforce Page]

  1.  
  2.   <apex:page standardController="Quote" extensions="richTextAreaVfCtrl">
  3.     <div class="slds">       
  4.         <apex:repeat value="{!quoteObj}" var="qotItem">
  5.              <div style="padding:10px;">
  6.                  <p><apex:outputField value="{!userObj.Signature__c}" /> </p>
  7.                  <p style="font-size:18px;"><apex:outputText value="{!managerName}"/></p>
  8.             </div>
  9.         </apex:repeat>   
  10.     </div>
  11. </apex:page>

 

Create Apex Class Extension Controller in Visualforce

Step 2:- Create Apex Class : richTextAreaVfCtrl.apxc

Note:: – You will get an email, so put correct email and mobile number and BEGIN YOUR JOURNEY from Today!
 
 

From Developer Console >> File >> New >> Apex Class

richTextAreaVfCtrl.apxc [Apex Class Controller]

  1.  
  2.  public class richTextAreaVfCtrl {
  3.  
  4.     public String MstrId{GET;SET;}
  5.     public Quote quoteObj{GET;SET;}
  6.     public USER userObj{GET;SET;}
  7.     public String managerName{GET;SET;}   
  8.  
  9.     public richTextAreaVfCtrl(ApexPages.StandardController Controller){       
  10.         MstrId = ApexPages.currentPage().getParameters().get('id');
  11.         quoteObj = [SELECT Id, Name, OwnerId, Owner.Name FROM Quote WHERE Id=:MstrId ];        
  12.         userObj= [SELECT id, Manager.id FROM USER WHERE id=:quoteObj.OwnerId];
  13.         userObj= [SELECT id, Name, Signature__c FROM USER WHERE id=:userObj.Manager.id];
  14.         managerName = userObj.Name;
  15.         system.debug('userObj## ' + userObj);
  16.     }
  17.  
  18. }

 

Further post that would you like to learn in Salesforce

 

 

FAQ (Frequently Asked Questions)

What is quote management in Salesforce?

A quote is fundamentally a record displaying projected prices for any product or service. When you add a product into an opportunity, it will automatically link your quote with the product and allow you to generate and e-mail the quote PDF to the customers.

What is quote and quote line in Salesforce?

Quotes in Salesforce represent the proposed prices of your company's products and services. You create a quote from an opportunity and its products. Each opportunity can have multiple associated quotes, and any one of them can be synced with the opportunity.

What is the difference between quote and contract in Salesforce?

The contract inherits its start and end dates from your Primary Quote's start and end dates. Salesforce CPQ then creates a Subscription record for each of your Subscription Products from the Primary Quote. These records contain pricing and date values for each of the Subscription Products you quoted.

Related Topics | You May Also Like

 
Note:: – You will get an email, so put correct email and mobile number and BEGIN YOUR JOURNEY from Today!
 
 
  

Our Free Courses →

👉 Get Free Course →

📌 Salesforce Administrators

📌 Salesforce Lightning Flow Builder

📌 Salesforce Record Trigger Flow Builder

👉 Get Free Course →

📌 Aura Lightning Framework

📌 Lightning Web Component (LWC)

📌 Rest APIs Integration



Hi, This is Vijay Kumar behind the admin and founder of w3web.net. I am a senior software developer and working in MNC company from more than 8 years. I am great fan of technology, configuration, customization & development. Apart of this, I love to write about Blogging in spare time, Working on Mobile & Web application development, Salesforce lightning, Salesforce LWC and Salesforce Integration development in full time. [Read full bio] | | The Sitemap where you can find all published post on w3web.net

Leave a Comment