• SunilKumar
  • NEWBIE
  • 20 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 19
    Questions
  • 10
    Replies
Hi Friends,

I need to creeat the report with two fields 1. Name 2. Score  and name is Y- axis and Score is X -axis So I creat the report without having any sumaary and matrix report the in that case i am unable to show the score on X- axis because without summary and matrix i think its not posible to avoid record count. Ok Suppose if create the summary report(sum) then in that case the Score will be showing sum of score But i nned to display exactly score only not with SUm

So anybody having any idea on this.


Regards,
Sunil
Hi all,

I got the related to changeset issue like 
This change set requires the "41.0" or later platform version.
 i have all components like custome objects , fields, pagelayouts etc ...... not any coding part.

So How can i deployee from sandbox to production
we click on the convert button then there is some required field is subject(picklist) its is a required field but without selecting any picklist values also it is saved it is a out of box functinality my question is without selecting the subject it should not saved. and it shows error

Please help on this thanks in advance
Hello,
first off, thanks to the community for getting me this far.  I am attempting to create an outbound change set for a test class that will give me code coverage.  I have the test class and it's giving proper coverage.  however, I am now recieving an error that "changeset requires 38.0 or higher platform version".  is this because I am attempting a changeset from winter '17 sandbox to summer '16 prod?  is there a fix or workaround for this? 
Update the New Leads button on Case Related List for Lead. 
This should autopopulate 
The record type as Sales Lead , 
 Contact on Lead should be populated with Account Name from Case 
 Assigned Dealer should be populated with Primary Case Dealer from Case.
Hi Friends

I am inserting contacts record through dataloader but there is lookup fields are there for account 

Please help me how can i insert contacts records 

Thanks Friends
 
Hi  I Have a requirement

I have Account object and B  is the custom object  , Here My question is Account having the self lookup relation with the name of city(its a lookup field) and in Account object only state(picklist ) is there with few values a,b ,c, I want when ever user insert or update the record and by selecting the picklist value a , Automatically the a is populate in the city (i mean in lookup filed),
I don't want do this one with pointand click , Do this one trigger only

Please give me reply

Thanks 
 
Hello,
 I am using new  interface SandboxPostCopy which is newly released in spring 16 , and write some script with dml operation  AND  email sending code  in method  called   runApexClass
 After that i added that class Name  in   Sandbox Template Apex class   which suppose to run  on sandbox after sandbox created/refreshed 
 See the release link -> https://releasenotes.docs.salesforce.com/en-us/spring16/release-notes/rn_deployment_sandbox_postcopy_script.htm

 Below is my code , but it is not doing any change in sandbox which being created/refreshed  while i checked using test class the code is having 100% coverage with no error . Please let me know if any body has any solution 

global  without Sharing class SandBoxAfterRefreshHandler implements SandboxPostCopy { 
  //Method which Run Post-Copy Script for Sandboxes
    global void runApexClass(SandboxContext context){
    
     System.debug('Hello  ' + context.organizationId() + 
           + context.sandboxId() + context.sandboxName());    
      String Status = '';
      try{
      List<User> Ulist  =  [Select id from User where name='Test' and IsActive = True];
      List<RecordType> rtlist = [Select id from RecordType where SObjectType = 'Account' And DeveloperName = 'Test' And isActive = True];
      Account acc = new Account(Name ='TestSandbox'); 
      if(!Ulist.isEmpty()){
      acc.OwnerId = Ulist[0].id;
      }
      if(!rtlist.isEmpty())
      acc.RecordTypeId = rtlist[0].id;
      
      insert acc;
      system.debug('acc.id');
      Status = acc.id;
      }
      catch(Exception de){
        Status = 'fail'+de.getMessage();
        system.debug('insert account failed' + Status);
        
      }

//sending email 
      messaging.Singleemailmessage mail = new  Messaging.SingleEmailMessage();
                    
                String[] toAddresses = new String[] {'ANY EMAIL'}; 

                mail.setToAddresses(toAddresses);
                mail.setSenderDisplayName('Coming from Refreshed Sandbox');
                mail.setSubject('Coming from Refreshed Sandbox');
                mail.setBccSender(false);  
                mail.setUseSignature(false);
                mail.setPlainTextBody('Hello Saurabh ' + context.organizationId() + 
      '' + context.sandboxId() + context.sandboxName()+'Current Sandbox Organization Id '+ Userinfo.getOrganizationId() + ' Current sandbox Name '+ UserInfo.getOrganizationName() +' and DML Status '+ Status  );
                
                List<Messaging.SendEmailResult> sendEmailResults =  new List<Messaging.SendEmailResult>{};   
                // Send the email you have created.
                try{
                sendEmailResults = new list<Messaging.SendEmailResult>() ;
                Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail }, false);
                
                }
                catch(Exception e)
                {
                    
                
                }

}
}