• Samrendra Singh
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies
Hello Everyone,

I am new to Salesforce. I really need your help please.

How to achieve below mentioned Part-2 requirement without writing any code. Will that be a validation rule or Product Rule? Please help me with the right approach.

I have an requirement to lock down term on QLE(Quote Line Editor), using new field in product management tool to identify parts which term should not be updated

Scenario is:
Part-1 : Create a new part level attribute in Product Management Tool and integrate with Salesforce(This part is completed)
Field Name :Term Editable
Type:Checkbox

Part-2:
Validation: 
  • If checked then the Recurring Term field on the QLE(Quote Line Editor) can be updated by the user
  • If not checked then the Recurring Term field can not be edited on the QLE in Salesforce
  •            If a user updates the Term on a Part which has the Term Editable field un-checked and presses Calculate, Quick Save, or Save,
  • Then display "Term is not editable for this part"
  • Reset the term to the part level default 
I really appreacite your help.

Many thanks
Samrendra
Hi Guys,

Please help me. I am facing below error for my code

Error:

Line: 4, Column: 5 Invalid constructor syntax, name=value pairs can only be used for SObjects: Contact  OK

Code:


//Create a new contact

List<Contact> conList = new List<Contact> {
    new Contact(FirstName='Nagraj',LastName='B',Department='Finance'),
    new Contact(FirstName='Deepak',LastName='Shivalingappa',Department='Design'),
    new Contact(FirstName='Sachin',LastName='Gotal',Department='PIM'),
    new Contact(FirstName='Rachithra',LastName='R',Department='Automation')     
};
    
// Bulk insert all contacts with one DML call
    
    insert conList;

// List to hold the new contacts to update

List<Contact> listToUpdate = new List<Contact>();

// Iterate through the list and add a title only
//   if the department is Finance

for(Contact con : conList){
    if(con.Department == 'Finance'){
        con.Title = 'Financial Advisor';
        // Add updated contact sObject to the list.
        listToUpdate.add(con);
    }
}    
// Bulk update all contacts with one DML call
update listToUpdate;
 
Hello Friends,

I need your help for the below error which i am facing in the "
Reports & Dashboards for Lightning Experience>>>>Visualize Your Data with the Lightning Dashboard Builder"-

Challenge not yet complete in sam@cerner123.com
The 'Opportunity Stages' report is not a summary report.


Challenge: 
Create a report named Opportunity Stages with the report type Opportunities
Set the range to All Time, include the fields Opportunity Name and Opportunity Owner, and group by Stage
Save the report in any folder
Create a dashboard with the name Big Deals
Save the dashboard in any folder
Add a component and select report Opportunity Stages
Ensure that the title of the component is Opportunity Stages
Display as Donut Chart
Save and refresh the dashboard at least once


Many thanks,
Sam
Hi Guys,

Please help me. I am facing below error for my code

Error:

Line: 4, Column: 5 Invalid constructor syntax, name=value pairs can only be used for SObjects: Contact  OK

Code:


//Create a new contact

List<Contact> conList = new List<Contact> {
    new Contact(FirstName='Nagraj',LastName='B',Department='Finance'),
    new Contact(FirstName='Deepak',LastName='Shivalingappa',Department='Design'),
    new Contact(FirstName='Sachin',LastName='Gotal',Department='PIM'),
    new Contact(FirstName='Rachithra',LastName='R',Department='Automation')     
};
    
// Bulk insert all contacts with one DML call
    
    insert conList;

// List to hold the new contacts to update

List<Contact> listToUpdate = new List<Contact>();

// Iterate through the list and add a title only
//   if the department is Finance

for(Contact con : conList){
    if(con.Department == 'Finance'){
        con.Title = 'Financial Advisor';
        // Add updated contact sObject to the list.
        listToUpdate.add(con);
    }
}    
// Bulk update all contacts with one DML call
update listToUpdate;
 
Hello Friends,

I need your help for the below error which i am facing in the "
Reports & Dashboards for Lightning Experience>>>>Visualize Your Data with the Lightning Dashboard Builder"-

Challenge not yet complete in sam@cerner123.com
The 'Opportunity Stages' report is not a summary report.


Challenge: 
Create a report named Opportunity Stages with the report type Opportunities
Set the range to All Time, include the fields Opportunity Name and Opportunity Owner, and group by Stage
Save the report in any folder
Create a dashboard with the name Big Deals
Save the dashboard in any folder
Add a component and select report Opportunity Stages
Ensure that the title of the component is Opportunity Stages
Display as Donut Chart
Save and refresh the dashboard at least once


Many thanks,
Sam