Ask Search:
Anton IgnacioAnton Ignacio 
Hi,

How can I add or Update tabs in the Lightning Experience?
User-added image
I need to add Events into the mix?

I tried looking at the Lightning App Builder but it seems not have the option on adding tabs of object?

Thanks!
Best Answer chosen by Anton Ignacio
Divyesh ArdeshanaDivyesh Ardeshana
Hi Anton,
You have to edit app and selected objects
Have a look this article which will help you configure : http://www.salesforcearticle.com/how-to-create-app-in-lightning-experience/
Jalal IftikharJalal Iftikhar 
I want to show the total value that is calculated in the formula field to show up in a number widget? 
Stefan HsiaoStefan Hsiao 
I created an closed/lost opportunity stage titled "Project Died". I am looking to create a filter that allows me to see Projects that have died. How do I go about this?

-Stefan
Best Answer chosen by Stefan Hsiao
Ahilesh RagavanAhilesh Ragavan
Stefan,
You can create a Custom List View on the Opportunity tab with a list filter:
Stage equals "YourStageName"

Create a Custom List View in Salesforce Classic
https://help.salesforce.com/articleView?id=customviews.htm&type=0
Best Answer chosen by Shawn Kaiser
Sunil SarillaSunil Sarilla
Hi Shawn,
+ Rick.
Make sure time zone on Data Loader is set as your Salesforce Org time zone.
Open Data Loader and Settingsand check the time zone.
User-added image
David LiuDavid Liu 
Hi all,

   I set up a workflow for a checkbox on cases to be made true whenever the referenced account checkbox is true (this checkbox is by default true). When I created a new case to test and the account checkbox was true, the case checkbox is true (which is good). But when I made the account checkbox false, the case checkbox did not go false. What am I missing? Thanks.
Best Answer chosen by David Liu
Ryan HeadleyRyan Headley
Basically you want the Case's checkbox to reflect the Account's Checkbox? Any reason you're not trying to use a formula? Something like Case.Account.Yourcheckbox? Maybe I'm missing something?
Demian RihsDemian Rihs 
I have an approval process that need to notify the approver via email --> Doesn't sent
Later on when the request is approved/rejected the user should be notified --> Doesn't sent

I chacked the email log and it turns out that no email are sent at all, altought all the other rules are triggered.

Can somebody help me?
Best Answer chosen by Demian Rihs
Demian RihsDemian Rihs

Turns out I am on a Trial version so maximum # of email per day is 15!

I just spent two hours troubleshooting for nothing!!!

Alan KinsleyAlan Kinsley 
When a Record has been Rejected, Approved, or Recalled I am needing that record Owner to change from a Queue to a User. This cannot be done in the Approval Process. I attempting using the Process Builder, but I am not having any luck. 

Here is the PB I created. What am I missing here?User-added image
User-added image
User-added image
Best Answer chosen by Alan Kinsley
Mayank SrivastavaMayank Srivastava
Alan, I would make three changes and then check if that works:

1. On the Approval process Field Update action which sets the Status to Recalled, make sure the following checkbox is checked:
Re-evaluate Workflow Rules after Field Change

2. ON the process first page where you select the object, make sure the following is checked:
Recursion - Allow process to evaluate a record multiple times in a single transaction?

3. Change those ID fields in process criteria to reference following instead:
SBQQ__c.OwnerID

And change them from 15 digits to 18 digits using the following tool:
https://www.adminbooster.com/tool/15to18

I would refer Queue Name instead of ID if that is an option to select as it much more reliable.
David MurphyDavid Murphy 
It appears that when I deleted a lead, it deleted the whole list I was working from.  How can I retrieve this list?
Best Answer chosen by David Murphy
Aaron DeRanAaron DeRan
How did you attempt to delete the lead that caused you to delete a whole list?

User-added image

If you deleted a list view (by clicking where the red x is), its gone. You just need to recreate it with the filters that were applied for it and you will get your "list" back.
James AppenzellerJames Appenzeller 
For my query this works fine in a stacked column chart,
"groups": 
[
    ["MyDate__c_Year","MyDate__c_Month"],
       "MyCategory__c"                    
]


But when I add a static step with the below value it won't let me use it in the groups of the other query,
"Date_1": {                
    "type": "staticflex",
    "values": [{                       
        "display": "MyDate",                        
        "value": ["MyDate__c_Year","MyDate__c_Month"]                   
    }],

This doesn't work,
"groups": 
[
    "{{column(Date_1.selection, [\"value\"]).asObject()}}",
        "MyCategory__c"                    
]

We have multiple date fields and I want to be able to swap which one is being used, but I can't quite get the syntax right.
Best Answer chosen by James Appenzeller
Carl BrundageCarl Brundage
James,

Change to use a cell binding rather than column, as you don't want an array in your groups node.

"groups": 
[
    "{{cell(Date_1.selection, 0, \"value\").asObject()}}",
        "MyCategory__c"                    
]
 
Eric BlaxtonEric Blaxton 
Hi and thanks in advance.

I have several trigger and a several tests written.  The code coverage is good, 77% and higher per test, but I want to get them higher.  The tests don't cover my .addError code.  the 2 lines not covered are in bold.

My trigger:
trigger checkAccountCreditStatusisRejected on Opportunity (before insert) {
       //Create list to store data in  
       list<id>AccountidLst=new list<id>(); 
      
       for(Opportunity opp : System.trigger.new)
      { // store all Opportunity Account Id's
       AccountidLst.add(opp.AccountId);
      }
      // Create map that stores the id and credit status of Active Opportunity Account
      map<id,account>accountMap=new map<id,account>([select id,Credit_Status__c from account where id In : AccountidLst]);
      
      for (Opportunity opp : System.trigger.new) {          
          if(accountMap.containskey(opp.AccountId))
            {
            if (accountMap.get(opp.AccountId).Credit_Status__c == 'Rejected')
              {
                opp.addError('WARNING: New Opportunity cannot be created when Account Credit Status = Rejected');
              }// end if 
            }
                           
       }//end for  
        
    }// end trigger

My test:
@isTest 
public class testCheckAccountCreditStatusisRejected{
   static testMethod void checkAccountCreditStatusisRejected () {
 
         // create mock user
User mockUser = new User(alias = 'newUser', email='newuser@pbsnow.com',
emailencodingkey='UTF-8', lastname='Testing',
languagelocalekey='en_US', localesidkey='en_US', profileid = UserInfo.getProfileId(),
timezonesidkey='America/Los_Angeles', CommunityNickname='test1', username='testAddDefaultTeam@pbsnow.com');
insert mockUser;  
        
        //Define list
        list<id>AccountidLst=new list<id>();  
        
       //create Account and Opportunity to add default team member
        Account acc = new Account ( Name = 'testAccount', BillingStreet = '123 Main Street', BillingCity = 'Dallas' ,
         BILLINGCOUNTRYCODE='US', BillingStateCode = 'TX', Industry = 'Healthcare', Company__c = 'Pinnacle Business Systems', BillingPostalCode = '75749' );
         insert acc;                     
      
       // store all Opportunity Account Id's
       AccountidLst.add('001J000001DYN5I');     
        
        // Create map that stores the id and credit status of Active Opportunity Account
      map<id,account>accountMap=new map<id,account>([select id,Credit_Status__c from account where Name = 'testAccount']);      
     
       
        Opportunity opp = new Opportunity( Name = 'testOpportunity', Account = acc,/* ToBeSync__c = false,*/ StageName ='Prospecting', Is_this_a_Maintenance_Renewal_Op__c = 'No',Description = 'Test', CloseDate = Date.today(),
         OwnerId = mockUser.id);
                 
        try{
            insert opp;
         
         if(accountMap.containskey('001J000001DYN5I'))
            {
            if (accountMap.get('001J000001DYN5I').Credit_Status__c == 'Rejected')
              {
                opp.addError('WARNING: New Opportunity cannot be created when Account Credit Status = Rejected');
              }// end if 
            }
            
         }//end try
         catch (ListException e) {
         
         }
       
    }

}// end public class

 
Best Answer chosen by Eric Blaxton
Paras BhattParas Bhatt
Opportunity opp = new Opportunity( Name = 'testOpportunity', AccountID = acc.id,/* ToBeSync__c = false,*/ StageName ='Prospecting', Is_this_a_Maintenance_Renewal_Op__c = 'No',Description = 'Test', CloseDate = Date.today(),
         OwnerId = mockUser.id);

Hi,

Please make one more change AccountID = acc.id and try again