• chanbasha nbsk
  • NEWBIE
  • -1 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 4
    Replies
Hi All,

 Anyone please help to write a test class for the below apex class
 
 public with sharing class Page2Controller {
    
    public Integration__c ic {get;set;}
    
    public String selectedVal{get;set;} 
    
    
    Map<ID, Integration__c> existingIntegrations = new Map<ID, Integration__c>();
    List<SelectOption> options = new List<SelectOption>(); 
    
    public Page2Controller(){
       
     for(Integration__c intgr : [Select Id,Name, IntegrationAccount__c, In__c, password__c, URL__c, username__c FROM Integration__c]){ 
         existingIntegrations.put(intgr.id, intgr);
         options.add(new SelectOption(intgr.Id, intgr.Name));
     }
        selectedVal = options.get(0).getValue();
        System.debug('Initially selected value:::: ' + selectedVal);
        updateSelection();
        System.debug('current IC:::: ' +ic);
    }
    public List<SelectOption> getExistingIntegrations(){
        return options;
    }
    
    public void updateSelection(){
        System.debug('Selection Changed to::: ' +selectedVal);
        ic = existingIntegrations.get(selectedVal);
    }
   
    
     public PageReference Move1() {     // used in update existing one                     
        
       update ic;
    
       PageReference Page = new PageReference('https://c.na40.visual.force.com/apex/Page2');

       Page.setRedirect(true);
       
       return Page;       
   
       }   
          
       public PageReference Move2() {     // Used to create new record
    
       PageReference Page = new PageReference('https://c.na40.visual.force.com/apex/Page1');

       Page.setRedirect(true);
       
       return Page;       
   
       }
}         
       Thanks In Advance
       
     
 
Hi,

  Anyone please update the below apex class as testclass
  I have tried so many ways but no luck

 this is myapex class


public class CaseUserHelper {

    public static void updateCaseStage(List<Case> cases) {
    
             List<ID> cIds = new List<ID>();
        
             List<Case_User__c> cuser = New  List<Case_User__c>();
             Map<ID, Case_User__c> cusermap = new Map<ID, Case_User__c>();

             Set<String> skillSet = new Set<String>();
             List<String> skillSetList = new List<String>();
    
             for(Case c: cases){
        
                   if(c.Status == 'New') {
                   cIds.add(c.Id); //add case ids.
                   }     
                   skillSet.add(c.CaseRelatedTo__c);
             }   
           skillSetList.addAll(skillSet);    
        
         //available users               
           try{
                   List<Case_User__c> availableCaseUsers = [SELECT AvailableUsers__c, Timings__c, SkillSet__c  FROM Case_User__c where Availability__c = TRUE ORDER BY Last_Case_Allocated_Time__c ASC];
                 //List<Case_User__c> availableCaseUsers = Database.query(queryString);
                    integer i=0;
                    integer nomatchingSkillset = availableCaseUsers.size();
                    for(Case c: cases){
                        for(; i<=availableCaseUsers.size();i++){
                        if(availableCaseUsers.get(i).SkillSet__c.contains(c.CaseRelatedTo__c)){
                          c.OwnerId = availableCaseUsers.get(i).AvailableUsers__c;
                          availableCaseUsers.get(i).Last_Case_Allocated_Time__c = DateTime.now();
                          cusermap.put(availableCaseUsers.get(i).id, availableCaseUsers.get(i));
                         } else {
                              nomatchingSkillset--;
                              if(nomatchingSkillset == 0){
                                  //TODO assign to case queue
                                  
                                     User u =[SELECT Email FROM User WHERE Id IN (SELECT UserOrGroupId FROM GroupMember WHERE Group.DeveloperName ='CaseQueue')];
                                     String us = u.Email;
                                                          
                                      Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
                                      String[] toAddresses = new String[] {us};
                                      mail.setToAddresses(toAddresses );
                                      mail.setSubject('No Users available to handle this case');
                                      mail.plainTextBody='handle this case';
                                      Messaging.SendEmail(new Messaging.SingleEmailMessage[] {mail});
                                                          
                                  break;
                              }
                              continue;
                        }
                        if(i>=availableCaseUsers.size()){
                            i=0;
                        }
                        break;
                     }      
                }
            }catch(System.DmlException e){
            
                 System.debug('Missing the required field in record');
                 
            }catch(Exception e){
            
                 System.debug('An Error Occured at:' +e.getMessage());
                 
            }finally{
            
                 System.debug('This is block just for closing the class');
            }      
          
 
     if(!cusermap.isEmpty()) {
      update cusermap.values();
     }

        
   }
}

Thanks In Advance
HI,


    How to write the test class for the below code 


    public class CaseUserHelper {

    public static void updateCaseStage(List<Case> cases) {
    
             List<ID> cIds = new List<ID>();
        
             List<Case_User__c> cuser = New  List<Case_User__c>();
             Map<ID, Case_User__c> cusermap = new Map<ID, Case_User__c>();

             Set<String> skillSet = new Set<String>();
             List<String> skillSetList = new List<String>();
    
             for(Case c: cases){
        
                   if(c.Status == 'New') {
                   cIds.add(c.Id); //add case ids.
                   }     
                   skillSet.add(c.CaseRelatedTo__c);
             }   
           skillSetList.addAll(skillSet);    
        
         //available users               
           try{
                   List<Case_User__c> availableCaseUsers = [SELECT AvailableUsers__c, Timings__c, SkillSet__c  FROM Case_User__c where Availability__c = TRUE ORDER BY Last_Case_Allocated_Time__c ASC];
                 //List<Case_User__c> availableCaseUsers = Database.query(queryString);
                    integer i=0;
                    integer nomatchingSkillset = availableCaseUsers.size();
                    for(Case c: cases){
                        for(; i<=availableCaseUsers.size();i++){
                        if(availableCaseUsers.get(i).SkillSet__c.contains(c.CaseRelatedTo__c)){
                          c.OwnerId = availableCaseUsers.get(i).AvailableUsers__c;
                          availableCaseUsers.get(i).Last_Case_Allocated_Time__c = DateTime.now();
                          cusermap.put(availableCaseUsers.get(i).id, availableCaseUsers.get(i));
                         } else {
                              nomatchingSkillset--;
                              if(nomatchingSkillset == 0){
                                  //TODO assign to case queue
                                  
                                     User u =[SELECT Email FROM User WHERE Id IN (SELECT UserOrGroupId FROM GroupMember WHERE Group.DeveloperName ='CaseQueue')];
                                     String us = u.Email;
                                                          
                                      Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
                                      String[] toAddresses = new String[] {us};
                                      mail.setToAddresses(toAddresses );
                                      mail.setSubject('No Users available to handle this case');
                                      mail.plainTextBody='handle this case';
                                      Messaging.SendEmail(new Messaging.SingleEmailMessage[] {mail});
                                                          
                                  break;
                              }
                              continue;
                        }
                        if(i>=availableCaseUsers.size()){
                            i=0;
                        }
                        break;
                     }      
                }
            }catch(System.DmlException e){
            
                 System.debug('Missing the required field in record');
                 
            }catch(Exception e){
            
                 System.debug('An Error Occured at:' +e.getMessage());
                 
            }finally{
            
                 System.debug('This is block just for closing the class');
            }      
          
 
     if(!cusermap.isEmpty()) {
      update cusermap.values();
     }

        
   }
}

and trigger is 

trigger CaseUserHelperTrigger on Case(before insert,before update){     

        CaseUserHelper.updateCaseStage(Trigger.new);
}

could you please anyone help

Thanks In Advance
Hi,

I have taken two objects Case and one custom object.i have created some records in custom object with availability checkbox(just checkbox only) is checked and some records are unchecked with availability checkbox.

I wrote a soql query to get availability checkbox records:
List<CaseUser__c> cuser =[SELECT id,Name FROM CaseUser__c where Availability__c=true ORDER BY Name ASC];

by this query i can get all availability records but my point is when i created a new case it is assign to first record in custom object and next if i create a new case then assign to a second record like this furher.....

by using the trigger how can i achieve this

my trigger is

trigger CaseUserAssiginingTrigger on Case (after insert,after update){
 
  List<ID> ids = new List<ID>();
 
  for(Case c : Trigger.new){
  if (c.Reason != null) {
      ids.add(c.Id);
      
      }
  }
   
  //getting all available users
  List<CaseUser__c> cuser =[SELECT id,Name FROM CaseUser__c WHERE Availability__c=true
                            ORDER BY Name ASC];

//add some logic here

Thanks


Thanks

  
Hi all,

    could anyone help how to get the access token from OAuth 2.0 SAML bearer assertion flow,
currently i'm going with Salesforce to salesforce SSO.so i follow some docs and i created saml assertion like below but at the time i'm getting the errors like "Unable to parse the response  Expect Root element is "Response"[saml:Assertion: null]"  so help me to complete the process for getting the access token.

this is my SAML assertion check it once please give instructions to get the respons

<?xml version="1.0" encoding="UTF-8"?>
<saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_cd3649b3639560458bc9d9b33dfee8d21378409114655" IssueInstant="2013-09-05T19:25:14.654Z" Version="2.0">
  <saml:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">3MVG9ZL0ppGP5UrCzpgjLM7.KM8Li1qWt9ElgvJ9WeVldVZ3Ik1wHlznwJhNdGptyaiH2IHpKW0MNWKGdfHc2</saml:Issuer>
  <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <ds:SignedInfo>
    <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
    <ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
    <ds:Reference URI="#_cd3649b3639560458bc9d9b33dfee8d21378409114655">
      <ds:Transforms>
      <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
      <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="ds saml"/>
      </ds:Transform>
      </ds:Transforms>
    <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
    <ds:DigestValue>N8DxylbIeNg8JDO87WIqXGkoIWA=</ds:DigestValue>
    </ds:Reference>
    </ds:SignedInfo>
    <ds:SignatureValue>
XV0lFJrkhJykGYQbIs0JBFEHdt4pe2gBgitcXrscNVX2hKGpwQ+WqjF8EKrqV4Q3/Q4KglrXl/6s
xJr6WOmxWtIQC4oWhSvVyfag34zQoecZeunEdFSMlnvPtqBVzJu9hJjy/QDqDWfMeWvF9S50Azd0
EhJxz/Ly1i28o4aCXQQ=
    </ds:SignatureValue>
    <ds:KeyInfo>
    <ds:X509Data>
    <ds:X509Certificate>
MIIEZzCCA0+gAwIBAgIOAVq2Ua3kAAAAADbMhpowDQYJKoZIhvcNAQELBQAwezET
MBEGA1UEAwwKc2FtcGxlY2VydDEYMBYGA1UECwwPMDBEMjgwMDAwMDFLbDdqMRcw
FQYDVQQKDA5TYWxlc2ZvcmNlLmNvbTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzEL
MAkGA1UECAwCQ0ExDDAKBgNVBAYTA1VTQTAeFw0xNzAzMTAwMzQ0NTBaFw0xODAz
MTAwMDAwMDBaMHsxEzARBgNVBAMMCnNhbXBsZWNlcnQxGDAWBgNVBAsMDzAwRDI4
MDAwMDAxS2w3ajEXMBUGA1UECgwOU2FsZXNmb3JjZS5jb20xFjAUBgNVBAcMDVNh
biBGcmFuY2lzY28xCzAJBgNVBAgMAkNBMQwwCgYDVQQGEwNVU0EwggEiMA0GCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDaAgnfHFQYMP3YRemz5TPlnFP4qlbJmXPj
dVPS3ZYtMEUcnyMySbCBBEFg/qmn4QAUjUERu8d5aPl2s2xImgBiOgM+RDeHaBYU
NfMauZc3Nogx77DMKMsGPP91yy5yOE80wmBD5glXGDMF9Y8aFpxwEH5EDvz6nUZS
8XoeHSCQvoUMjKiUX80AygYYB02gkxg//f5aXFZ/MZ8UNtZP+eO7AZSTLgARZjLY
WeinYvDnnmXU41IJbEVV2L5VwgSe/jaiMliKeouf6v/RBBO5EqTqBvFnVPsUrEJq
aWwMCjF6YgkZQ9aR4byKbtonDqC7Ok3HnNUexNGS088riplich/vAgMBAAGjgegw
geUwHQYDVR0OBBYEFEHAYzatXZlP5oShNg8TGfgVdsWeMA8GA1UdEwEB/wQFMAMB
Af8wgbIGA1UdIwSBqjCBp4AUQcBjNq1dmU/mhKE2DxMZ+BV2xZ6hf6R9MHsxEzAR
BgNVBAMMCnNhbXBsZWNlcnQxGDAWBgNVBAsMDzAwRDI4MDAwMDAxS2w3ajEXMBUG
A1UECgwOU2FsZXNmb3JjZS5jb20xFjAUBgNVBAcMDVNhbiBGcmFuY2lzY28xCzAJ
BgNVBAgMAkNBMQwwCgYDVQQGEwNVU0GCDgFatlGt5AAAAAA2zIaaMA0GCSqGSIb3
DQEBCwUAA4IBAQCcwNOdiyZLAH/6siSRZacs02kZ4l0c3miICQc7injPJRBu6Sn1
RF9SWnVqpAPVrJK9CJ1lSnAY+E/YCnuS1Gpm4G6FDCqHh4loHoduqg72sNXiE7u7
oCUhrqlEPDJNBLjJTREV0UP7BQbkoE6OKdEo3NYsl3+F2gdmrXWToqpZb497vfe6
xzD5KFALAVouOIHUV0Ea5Man0wvOOGl667+vOHwzaMwFPJjlikw6TcNgTN0i/sj6
hxWn5+1B3E12AhvsvlpNLrzhGpqFraeptkZ+c0ZsOyFwil4QVjsyqs82saROmBmM
LvvbLcUj4Dst4jQSvpj94YCIkCrFi8fUl/cS
    </ds:X509Certificate>
    </ds:X509Data>
    </ds:KeyInfo>
  </ds:Signature>
<saml:Subject xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
<saml:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">chanbasha@miraclesoft.com</saml:NameID>
  <saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
  <saml:SubjectConfirmationData NotOnOrAfter="2013-09-05T19:30:14.654Z" Recipient="https://login.salesforce.com/services/oauth2/token"/>
  </saml:SubjectConfirmation>
</saml:Subject>
<saml:Conditions NotBefore="2013-09-05T19:25:14.654Z" NotOnOrAfter="2013-09-05T19:30:14.654Z" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
<saml:AudienceRestriction xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
<saml:Audience>https://login.salesforce.com/services/oauth2/token</saml:Audience>
</saml:AudienceRestriction>
</saml:Conditions>
  <saml:AuthnStatement AuthnInstant="2013-09-05T19:25:14.655Z" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
    <saml:AuthnContext xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
    <saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified</saml:AuthnContextClassRef>
    </saml:AuthnContext>
  </saml:AuthnStatement>
</saml:Assertion>

Thanks
Hi,

Could anyone help on this

actually i didn't change my salesforce login credentials but when i'm trying to login it displays username or password is wrong but the credentials are correct is there any alternate to login to salesforce without resetting the pwd because some of the integrations combined with that org so without changing the pwd any alternate is  there to login.

help will be appreciated

Thanks
Hi,

Could anyone help on this

How to use Salesforce Commerce Cloud Trail version?

Thanks
Hi,
 
   Anyone could help on the below questions for certification.

1. A user’s profile does not have any permissions to view a custom object. However, the Organization Wide Defaults for the custom object are set to Public Read/Write. Users with this profile will still be able to access the custom object.
1. False
2. True

2.In a recruiting application all users should be able to see and edit the candidate records, but interviewers should NOT be able to modify the address of a candidate and should NOT be able to see the birth date of a candidate.
How would a developer meet this requirement?
A.      Set the Organization wide default for candidates to Read only
B.      Use field level security to control access to the Address and Birth date fields
C.      Set the Organization wide default for candidates to Edit Some fields
D.      Remove the edit permission on candidates from the interviewers profile

3..All users of a recruiting application should be able to edit all positions, except the User X. User X should be able to see, but NOT edit all positions.How can a developer meet this requirement?
 A.Set the organization-wide default for positions to Public Read/Write and use a Sharing rule to restrict user X from editing any position records
B.Set the organization-wide default for positions to Public Read/Write and use a Sharing rule to grant edit access to everyone except user X
C.Set the organization-wide default for positions to Public Read-only and remove user X from the role hierarchy
D.Set the organization-wide default for positions to Public Read/Write and remove user X from the role hierarchy

4.Which of the following is NOT a Standard Salesforce.com Functionality?
Email to Lead
Email to Case
Web to Lead
Web to case

5.Which statement about change set deployments is accurate? choose 3 answers

1. They require a deployment connection
2. They can be used only between related organizations
3. They can be used to deploy custom settings data
4. They can be used to transfer Contact records
5. They use an all or none deployment model

6.1)A company has a custom object named Warehouse.Each warehouse record has a distinct record owner,and is related to parent Account in salesforce.

A.One-to-Many
B.Lookup
C.Master-Detail
D.Parent-Child

Thanks in Advance
 
Hi All,

   how to create a new contact from visualforce page to related list contacts in Account Details page?

Thanks,
Basha

Hi All,


   1.On a visual force page with a custom controller, how should developer retrieve a record by using and ID that is passed on the URL?
A.Create a new PageReference object with the id
B.Use the tag in the visualforcepage
C.Use the $Action.View method in the Visualforce page
D.Use the contructor method for the controller.

2.  How Can a developer avoid exceeding governor limits when usingan apex Trigger?Choose 2 answers.
A.By using Maps to hold data from query results
B.By performing DML transactions on lists of sObjects
C.By using a helper class that can be invoked from multiple triggers
D.By using the Database class to handle DML transactions

3.The Review__c object has a lookup relationship up to theJob_Application__c object. The job_application__c objet has amaster-detail relationship up the position__c objet. Therelationship field names are based on the auto-populateddefaults.What is the recommended way to display field data from therelated Review__c records on a Visualforce page for a singleposition__c record?

A.Utilize the Standard Controller for position__c and a Controller Extension to query for Review__c data.
B.Utilize the Standard Controller for Position__c and cross-object Formula fields on the job_Application__c object to display Review__c data.
C.Utilize the Standard Controller for Position__c corss-object Formula fields on the Review__c object to display Review__c data.
D.Utilize the Standard Controller for position__c and expression syntax in the page to display related Review__c data through the job_Application__c object.

4.What is the benefit of the Lightning Component Framework?
A.Better performance for custom SalesforceI Mobile apps.

B.More pre-built components to replicate the Salesforce look and feel
C.More centralized control via server-side logic.
D.Better integration with Force.com sites.

5.A developer wants to create a custom object to track Customer Invoices.How should Invoices and Accounts be related to ensure that all Invoices are visible to everyone with access to anAccount?
A.The Invoice should have a Master-Detail relationship to the Account
B.The Account should have a Master-Detail relationship to the Invoice.
C.The Account should have a Lookup relationship to the Invoice
D.The Invoice should have a Lookup relationship to the Account

6.A developer needs to provide a Visualforce page that lets users enter Product specific details during a Sales cycle. How can this be accomplished?Choose 2 answers

A.Copy the standard page and then make a new Visualforce page for Product data entry. B.Download an Unmanaged Package from the AppExchange that provides a custom Visualforce page to modify.
C.Create a new Visualforce page and an Apex controller to provide data entry.
D.download a Managed Package from the AppExchange that provides a custom Visualforce page to modify.

7.An sObject named Application _c has a lookup relationship to another sObject named Position_c. Both Application _c and Position c have a picklist field named Status_c. When the Status c field on Position __c is updated, the Status_c field on Application _c needs to be populated automatically with the same value, and execute a workflow rule on Application c. Flow can a developer accomplish this?

A. By changing Application c.Status_c into a roll-up summary field.
B. By changing Application c.Status_c into a formula field. (ANS)
C. By using an Apex trigger with a DML operation.
D. By configuring a cross-object field update with a workflow.

8.A developer creates an Apex helper class to handle complex trigger logic. How can the helper class warn users when the trigger exceeds DML governor limits?
A. By using ApexMessage.Message() to display an error message after the number of DML statements is excel
B. By using Messaging.SendEmail() to conthtinue the transaction and send an alert to the user after the number DML statements is exceeded
C. By using PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number DML statements is exceeded.
D. By using Limits.getDMLRows() and then displaying an error message before the number of DML statements exceeded. (ANS)

Thanks in Advance

Hi,

    How to write the trigger in apex class ?

    trigger UpdatedCaseUserTrigger on Case (before insert,before update) {

   List<ID> cIds = new List<ID>();
       
    List<Case_User__c> cuser = New  List<Case_User__c>();
    Map<ID, Case_User__c> cusermap = new Map<ID, Case_User__c>();

    Set<String> skillSet = new Set<String>();
    List<String> skillSetList = new List<String>();
    
    for(Case c : Trigger.new){
        
        if(c.Status == 'New') {
            cIds.add(c.Id); //add case ids.
        }     
        skillSet.add(c.CaseRelatedTo__c);
     }   
     skillSetList.addAll(skillSet);    
        
         //available users               
         List<Case> cases = Trigger.new;
         List<Case_User__c> availableCaseUsers = [SELECT AvailableUsers__c, Timings__c, SkillSet__c FROM Case_User__c where Availability__c = TRUE ORDER BY Last_Case_Allocated_Time__c ASC];
         //List<Case_User__c> availableCaseUsers = Database.query(queryString);
         integer i=0;
         integer nomatchingSkillset = availableCaseUsers.size();
         for(Case c: cases){
             for(; i<=availableCaseUsers.size();i++){
                if(availableCaseUsers.get(i).SkillSet__c.contains(c.CaseRelatedTo__c)){
                  c.OwnerId = availableCaseUsers.get(i).AvailableUsers__c;
                  availableCaseUsers.get(i).Last_Case_Allocated_Time__c = DateTime.now();
                  cusermap.put(availableCaseUsers.get(i).id, availableCaseUsers.get(i));
                } else {
                      nomatchingSkillset--;
                      if(nomatchingSkillset == 0){
                          //TODO assign to case queue
                          
                           User u =[SELECT Email FROM User WHERE Id IN (SELECT UserOrGroupId FROM GroupMember WHERE Group.DeveloperName ='CaseQueue')];
                            String us = u.Email;
                                                  
                              Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
                              String[] toAddresses = new String[] {us};
                              mail.setToAddresses(toAddresses );
                              mail.setSubject('No Users available to handle this case');
                              mail.plainTextBody='handle this case';
                              Messaging.SendEmail(new Messaging.SingleEmailMessage[] {mail});
                                                  
                          break;
                      }
                      continue;
                }
                if(i>=availableCaseUsers.size()){
                    i=0;
                }
                break;
             }      
         }
        
      
 
     if(!cusermap.isEmpty()) {
      update cusermap.values();
     }
        
   
   }

Could anyone help me to convert 

Thanks
Hi,

Could anyone help on this

actually i didn't change my salesforce login credentials but when i'm trying to login it displays username or password is wrong but the credentials are correct is there any alternate to login to salesforce without resetting the pwd because some of the integrations combined with that org so without changing the pwd any alternate is  there to login.

help will be appreciated

Thanks
Hi,

Could anyone help on this

How to use Salesforce Commerce Cloud Trail version?

Thanks
Hi All,

   how to create a new contact from visualforce page to related list contacts in Account Details page?

Thanks,
Basha