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 →
You can download file directly from github by Click Here.
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]
<apex:page standardController="Quote" extensions="richTextAreaVfCtrl">
<div class="slds">
<apex:repeat value="{!quoteObj}" var="qotItem">
<div style="padding:10px;">
<p><apex:outputField value="{!userObj.Signature__c}" /> </p>
<p style="font-size:18px;"><apex:outputText value="{!managerName}"/></p>
</div>
</apex:repeat>
</div>
</apex:page>
Create Apex Class Extension Controller in Visualforce
Step 2:- Create Apex Class : richTextAreaVfCtrl.apxc
From Developer Console >> File >> New >> Apex Class
richTextAreaVfCtrl.apxc [Apex Class Controller]
public class richTextAreaVfCtrl {
public String MstrId{GET;SET;}
public Quote quoteObj{GET;SET;}
public USER userObj{GET;SET;}
public String managerName{GET;SET;}
public richTextAreaVfCtrl(ApexPages.StandardController Controller){
MstrId = ApexPages.currentPage().getParameters().get('id');
quoteObj = [SELECT Id, Name, OwnerId, Owner.Name FROM Quote WHERE Id=:MstrId ];
userObj= [SELECT id, Manager.id FROM USER WHERE id=:quoteObj.OwnerId];
userObj= [SELECT id, Name, Signature__c FROM USER WHERE id=:userObj.Manager.id];
managerName = userObj.Name;
system.debug('userObj## ' + userObj);
}
}
Further post that would you like to learn in Salesforce
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 |