• mayuri patil 6
  • NEWBIE
  • 30 Points
  • Member since 2015

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 9
    Replies

I am trying to hide a contact tab from the nav bar for the end user.
surpisingly the contact tab is not included in nav bar but still its appearing on the nav bar(with *).
when I try to close the tab & relogin its appearing again.
Please let me know if I am missing any setting
User-added image
How to generate these kind of reports

I am trying to hide a contact tab from the nav bar for the end user.
surpisingly the contact tab is not included in nav bar but still its appearing on the nav bar(with *).
when I try to close the tab & relogin its appearing again.
Please let me know if I am missing any setting
Hi,

I have an inbound Changeset that has failed with the following message:

Apex Test Failures 
Class Name: TestTriggerUtility
Method Name: testContactTrigger
Error Message: System.AssertException: Assertion Failed: Expected: 005D0000008twq8IAA, Actual: 005D0000001gINxIAM 
Stack Trace: Class.TestTriggerUtility.testContactTrigger: line 40, column 1

I have tried googling this but nothing is very specific.  I have no idea what the Trigger Utility is or how to ignore this.

Any help would be appreciated.  
I inherited this copy of Salesforce and still trying to find out what all the triggers and classes are for!
 
Hello,

I am trying to create a test class for this trigger:
trigger leadDuplicatePreventer on opportunity(before insert) {
   set<string> settgs = new set<string>();
   list<opportunity> opps = [select id,Trigger_Help__c  from opportunity WHERE CreatedDate = LAST_N_DAYS:90];
   Profile p=[SELECT ID, Name FROM Profile WHERE Id=:userinfo.getProfileId() Limit 1];
   for(opportunity opp : opps){
     if(opp.Trigger_Help__c != null && p.Name <> 'System Administrator'){
	 settgs.add(opp.Trigger_Help__c);
	 }
   }
   
   for(opportunity op : trigger.new){
      if(settgs.contains(op.Trigger_Help__c)){
	     op.adderror('An Opportunity of this type already exists on this Account.  Please contact a system administrator with questions.');
	  }
   
   }


   
}

I think my problem is with assigning the second opp to be put on the Test Account.  How should I do this so that it does so correctly?

My current test class:
@isTest
private class TestleadDuplicatePreventer {
    @isTest static void TestleadDuplicatePreventerwithOneOpp() {
        Account acct = new Account(Name='Test Account');
        insert acct;
        Opportunity opp = new Opportunity(Name=acct.Name + ' Opportunity',
                                         StageName='Open Opportunity',
                                         CloseDate=System.today().addMonths(1),
                                         Facility__c='Tacoma WA',
                                         Oppty_Type__c='UCO Service',
                                         AccountID=acct.Id);
        insert opp;
        Test.startTest();
        opp= new Opportunity(Name='Opportunity Test',
                            StageName='Open Opportunity',
                            CloseDate=System.today().addMonths(2),
                            Facility__c='Tacoma WA',
                            Oppty_Type__c='UCO Service',
                            Account='Test Account');
        try
        {
            insert opp;
        }
        catch(Exception duplicate)
        {       
        }
        Test.stopTest();
    }

}

 
We just wanted to know whether the syntax to fetch the queue owner 'Owner:Queue.QueueName='Duplicate Leads'' (in formula field)still works fine in salesforce becuase it seems like this is not working in our functionality.
OK, I open a Contact record...Scroll dowm and see this: 
User-added image

I want to make a new Course connection:
User-added image
Is it possible to customize the Program Enrollment ID field ; So that when i click on the magnifying glass only Programs the Contact is already linked to will show up there not ALL Program Enrollments in our ORG??

would this be a validation Rule?

Please help ASAP!! 
I created a custom object in my org and created custom lookup fields for account and contact so they would show up in the respective related list. When i create a new record for my custom object via the related list in either account or contact it does not pre populate the lookup field. The users have to click the lookup magnifying glass and select the account or contact themselves. How do I fix this?