• Admin User 3354
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 9
    Replies
Sumarry field error in report
Hello,
I have marked the above row in red.
I have applied summarized the column by sum
But my sum is showing 30000/- which is not correct . Can you tell me why i am getting wrong sum genrated??
Please help needed urgently.
Thanks.


Regards,
Nikki.
Hello ,
I have following scenario in which i need various options ,that how can i implement it in Salesforce.
Scenario: I have information of Taxis which are assigned to driver. So  how can I show that particular days taxi is free and for particular days it is availabel. Is there any way I can show it??
Is there a way through which i can show using calender marking the days where taxi is hired in red or so.
example:
Taxi 123:   mon tue wed thurs fri sat sun
                 1      2    3    4      5   6   7
                  8     9    10   11   12  13 14

                  15   16   17   18   19  20 21
                   22   23   24  25   26  27 28
                  29    30
So i need to show :
 Taxi hired: 1 -15 & 19-21 & 30 (which i have made bold)
Remaining days taxi was not hired.

So how can i show this in salesforce. Are there any better options that I can implement in salesforce.
Need suggestions urgently.
Please help.

Thanks.
Regards,
Nikki
 
I want an email alert to be send all 14 days before my expiry date.
how to do it??
How can i achive this?? Do I have to use schedular apex??
Help needed asap.
Thanks.
Hello,
Can anyone help me about how to give alert in salesforce.
Scenario: I have to give alert 2 weeks before expiry date.
so please help how can i achieve this requirement . Do I need to use validation rule or is there any other way?
If we have to use validation rule how to do using it??
Requirement:hrack t I have to show free slots in report. Taht means if my taxi driver has assigned a taxi say from Jan15 as start date to June15 as end date, & suppose my driver is going on leave for about 10daysin May.(1st May to  10th may)
So my requirement is to track when my Taxi is free or available. (In this case Taxi  would be available for that10days of holidays)
How could I track this in Salesforce.
Please Help.
High Priority Requirement.
Thanks.
Hello,
I am facing the following Error: " TestAttendanceUpdateTaxi.TestinsertAttendance(), Details: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, No Existing Campaign Product found, request you to generate it manually.: [] Class.TestAttendanceUpdateTaxi.TestinsertAttendance: line 53, column 1" during deplyment when i validate the following trigger.

Test Class:

@isTest

public class TestAttendanceUpdateTaxi
{
  private  static testMethod void TestinsertAttendance()
    {
    
    
        //Inserting Records for Company Obj(Accounts).
        ////Fetching Record Type for Company Obj
        RecordType rt1 = [select id, Name from RecordType where SobjectType = 'Account'  AND Name='Sherbet'];
        Account account = new Account();
        account.recordTypeId = rt1.id;
        account.Name= 'Test Account';
        insert account;

        //Insering into Opportunity
       Opportunity o=new Opportunity();
       o.Name='Test2';
       o.AccountId=account.Id;
       o.CloseDate=date.today();
       o.Order_Reference__c = 'test1212';
       o.StageName='6 Signed deal';
       insert o;
      
   //Inserting Record for Taxi Obj
       //Fetching Record Type for Taxi Obj
        RecordType rt = [SELECT id, Name FROM RecordType WHERE SobjectType='Taxi__c' AND Name='Sherbet'];
        Taxi__c OTaxi = new Taxi__c();
        OTaxi.recordTypeId=rt.id;
        OTaxi.Name = 'Tx912';
        OTaxi.Company__c = account.id ;
        OTaxi.Last_Attended_Date__c = System.today();
        insert OTaxi;
        
        //Retrive inserted Taxi
        OTaxi = [select Name from Taxi__c where Id =: OTaxi.Id];
        System.debug('Taxi Registration No :'+ OTaxi.Name);
        
        
        //Inserting record for Attendance Object
       Driver_Payment__c OAttendance = new Driver_Payment__c();
        OAttendance.Campaign__c = o.id;
        OAttendance.Company_Name__c = account.id;
        OAttendance.Taxi_ID__c = OTaxi.id;
       OAttendance.Attended_Date__c = System.today();
       OAttendance.Update_current_receipt_campaign__c = True;
       OAttendance.Update_current_Superside_Livery_Campaign__c = True;
     //  OAttendance.Update_current_Tip_seat_campaign__c = True;
       
       insert OAttendance;
       
        System.debug('Inserted values in Attendance obj');
       //updating attendance
    
         //Updating Values   
        OAttendance.Update_current_Tip_seat_campaign__c = True;
       update OAttendance;
       
        
        //Assert
       Taxi__c ObjTaxi = [select Last_Attended_Date__c from Taxi__c where Name = 'Tx912' and Taxi__c.Company__c =: account.Id /*'001q000000JwBJT'*/ limit 1];
      System.assertEquals(OAttendance.Attended_Date__c , ObjTaxi.Last_Attended_Date__c);
    }
}


There are no validation rules on any object except opportunity.
Also I can't understand why it is asking me to create campaign product.
Urgent help is needed as my deployment is stuck because of single trigger.
Thanks.
I am not able to access standard & custom fields of Opportunity Object in my apex classes. It gives me error "Variable does not exist" even for standard fields of Opportunity.
Sumarry field error in report
Hello,
I have marked the above row in red.
I have applied summarized the column by sum
But my sum is showing 30000/- which is not correct . Can you tell me why i am getting wrong sum genrated??
Please help needed urgently.
Thanks.


Regards,
Nikki.
Hello,
Can anyone help me about how to give alert in salesforce.
Scenario: I have to give alert 2 weeks before expiry date.
so please help how can i achieve this requirement . Do I need to use validation rule or is there any other way?
If we have to use validation rule how to do using it??
Requirement:hrack t I have to show free slots in report. Taht means if my taxi driver has assigned a taxi say from Jan15 as start date to June15 as end date, & suppose my driver is going on leave for about 10daysin May.(1st May to  10th may)
So my requirement is to track when my Taxi is free or available. (In this case Taxi  would be available for that10days of holidays)
How could I track this in Salesforce.
Please Help.
High Priority Requirement.
Thanks.
Hello,
I am facing the following Error: " TestAttendanceUpdateTaxi.TestinsertAttendance(), Details: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, No Existing Campaign Product found, request you to generate it manually.: [] Class.TestAttendanceUpdateTaxi.TestinsertAttendance: line 53, column 1" during deplyment when i validate the following trigger.

Test Class:

@isTest

public class TestAttendanceUpdateTaxi
{
  private  static testMethod void TestinsertAttendance()
    {
    
    
        //Inserting Records for Company Obj(Accounts).
        ////Fetching Record Type for Company Obj
        RecordType rt1 = [select id, Name from RecordType where SobjectType = 'Account'  AND Name='Sherbet'];
        Account account = new Account();
        account.recordTypeId = rt1.id;
        account.Name= 'Test Account';
        insert account;

        //Insering into Opportunity
       Opportunity o=new Opportunity();
       o.Name='Test2';
       o.AccountId=account.Id;
       o.CloseDate=date.today();
       o.Order_Reference__c = 'test1212';
       o.StageName='6 Signed deal';
       insert o;
      
   //Inserting Record for Taxi Obj
       //Fetching Record Type for Taxi Obj
        RecordType rt = [SELECT id, Name FROM RecordType WHERE SobjectType='Taxi__c' AND Name='Sherbet'];
        Taxi__c OTaxi = new Taxi__c();
        OTaxi.recordTypeId=rt.id;
        OTaxi.Name = 'Tx912';
        OTaxi.Company__c = account.id ;
        OTaxi.Last_Attended_Date__c = System.today();
        insert OTaxi;
        
        //Retrive inserted Taxi
        OTaxi = [select Name from Taxi__c where Id =: OTaxi.Id];
        System.debug('Taxi Registration No :'+ OTaxi.Name);
        
        
        //Inserting record for Attendance Object
       Driver_Payment__c OAttendance = new Driver_Payment__c();
        OAttendance.Campaign__c = o.id;
        OAttendance.Company_Name__c = account.id;
        OAttendance.Taxi_ID__c = OTaxi.id;
       OAttendance.Attended_Date__c = System.today();
       OAttendance.Update_current_receipt_campaign__c = True;
       OAttendance.Update_current_Superside_Livery_Campaign__c = True;
     //  OAttendance.Update_current_Tip_seat_campaign__c = True;
       
       insert OAttendance;
       
        System.debug('Inserted values in Attendance obj');
       //updating attendance
    
         //Updating Values   
        OAttendance.Update_current_Tip_seat_campaign__c = True;
       update OAttendance;
       
        
        //Assert
       Taxi__c ObjTaxi = [select Last_Attended_Date__c from Taxi__c where Name = 'Tx912' and Taxi__c.Company__c =: account.Id /*'001q000000JwBJT'*/ limit 1];
      System.assertEquals(OAttendance.Attended_Date__c , ObjTaxi.Last_Attended_Date__c);
    }
}


There are no validation rules on any object except opportunity.
Also I can't understand why it is asking me to create campaign product.
Urgent help is needed as my deployment is stuck because of single trigger.
Thanks.
I am not able to access standard & custom fields of Opportunity Object in my apex classes. It gives me error "Variable does not exist" even for standard fields of Opportunity.