• singhd62
  • NEWBIE
  • 5 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 12
    Questions
  • 11
    Replies
After enabling new lightning UI, I logged in as one of the User using loginAs feature. After that I logged out from it, and it takes me to a page where there is no sidebar and no header and it just contains list of users of that profile. 

User-added image
Hi,

Want to perform custom sorting on multiple fields in apex same as Excel which narrows down the list lets say from 100 to 5 using sort type (asc or desc)

Thanks,
singhd62
Dear All,

I have written a apex trigger to create a child object record when there is an update on the parent object.

The parent is account and child is account status note.

I am unable to cover the code on the trigger with the test class written.

I am posting both the trigger and class here. Please help me.

Trigger - 

trigger MissCallStatusNote on Account (after update) {
  if(recursivecheckBankingExsLease.runOnce())
    {
  integer i=1;
  DateTime val = DateTime.now();

  for (Account  acc : trigger.new) {
    Account_Status_Note__c asn = new Account_Status_Note__c ();
   
  
    if(acc.Misscall__c == true){
  
    asn.Account_Name__c = acc.id;
    asn.OwnerId = acc.OwnerId;
    asn.Status_Notes__c = 'Missed Call Email sent';
    asn.Follow_Up_Date__c = val + 1 ;
  
   
   
   
    insert asn;
   
   }
  }
  }
  }


Test Class

@isTest
private class UnitTestsMissCallStatusNote {

    static testMethod void myUnitTest() {
        // TO DO: implement unit test
       
      
       
        LIST<User> u4 = [select id from user where LastName = 'CRM Support Helpdesk'];  
        for(integer i = 0 ; i < u4.size(); i++){
       
        //create test account
        Account a = new Account();
        a.LastName = 'testabcd';
        a.PersonEmail='testyyy@test.com';
        a.Phone='85765';
        a.OwnerId = u4[i].id;
        a.Misscall__c = true;
        a.pb__Status__c = 'Unqualified';
        insert a;
        
       
       
      
        DateTime val = DateTime.now();
   
        Account_Status_Note__c asn = new Account_Status_Note__c ();
        asn.Account_Name__c = a.id;
        asn.OwnerId = a.OwnerId;
        asn.Status_Notes__c = 'Missed Call Email sent';
        asn.Follow_Up_Date__c = val + 1 ;
  
   
   
   
   
       insert asn;
   
      
       }
       
    }
}

Thanks a lot

Finney
Hi All,

I wanted to create new HTML Area Component but at the time of creating am not able to see checkbox (show html area).

Can anyone tell how to set the seperator for html multiple attribute

Hi,

 

I have a webform which creates opportunity on Salesforce. Once Opportunity is created we are making an asynchronous call (via @future callout) to external web service to fetch the Account number based on the passed telephone number. After receiving we are updating the Opportunity with that Account owner and in case no account number received from web service we are not performing anything.

 

There is a formula field on the Opportunity which displays the Department and division of the opportunity owner.

 

So the problem is when we are updating the opportunity with the account number from the @future callout, the formula field is not updating correctly as it is showing incorrect department and division name.

 

If we manually edit the opportunity and saves with or without modifying anything. The formula field is displaying correctly.

 

Any suggestion would be helpful.

 

Thanks,

Mr. Singh

Does SFDC have the capability to extract values from the xml format? 

 

Would like to know more details to directly integrating of Infopath form(Ms office product) via SFDC WEBService.

What is the maximum Size of attachments can be sent to salesforce via Webservice, integration. 

 

Currently receiving through email services using middle layer. maximum size for attachments limit is 10mb. 

 

Lets say ! If integration approach is feasible, What is the maximum attachment size we can insert into salesforce

 

Also would like to know more on SITE interface of SFDC for collecting non-SFDC user inputs. Limitaions , licences ....??? 

 

Responce is much appreciated..