• mukesh gupta
  • NEWBIE
  • 100 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 41
    Questions
  • 24
    Replies
Hi Expert

I need to create formula for these Total leads rejected.

Can any one suggest.


Thanks
Mukesh

 
Hi Expert,

I have need formula to get the "total leads rejected".

Can you plaese suggest

Many Thanks
Mukesh
Hi Expert

I am some confuse to about requirment for Admin and Front End in salesforce


Admin :-  


Administrator can view the user company information 
Administrator can view the user uploaded document

 Front End:-  

User can add/edit their company information 
User can upload/remove documents

How i can mennage in salesforce?

Please suggest.

Many Thanks
Mukesh
Hi Exprt,

On Lead page, I have a two field Name1 and Name2, and one checkbox. if fill value in Name1 and mark checkbox checked. Then field Name1 value will assign to Field Name2.

but i am using professional edition so workflow doesn't support.


Please suggest.

Thanks
 
Hi Expert,

Can you please suggest about:-

Lead field Should be populated by Campaign ID

Thanks


 
Hi, 

if a contact is already add with an email id , and user try to  insert a new contact with existing email id then old contact details with update with new contact after that new contact will delete.
this is my code 
Trigger NewContact on Contact (before insert) {
    Set<String> con = new Set<String>();
    List<Contact> cont = new  List<Contact>();
     List<Id> duplicateIds = new List<Id>();  
      Map<string, Contact> existing = new Map<string, Contact>();
    
    for (Contact c : Trigger.New) 
    {
        con.add(c.Email);
        
    }
    
   
    for(Contact c: [SELECT Id,Email,Phone,Title
                    FROM Contact
                    WHERE Email IN :con])
    {
      existing.put(c.Email, c);
    }
    
    if(existing.size()>0){
       for (Contact c : Trigger.New) 
    {
        if(existing.containsKey(c.Email)){
            duplicateIds.add(c.id);
            Contact clone = c.clone();
            clone.Id = existing.get(c.Email).Id;
            existing.put(c.Email, clone); 
        }
    }
    }
    
    try {
    update existing.values();
   Database.delete(duplicateIds);
} catch (System.DmlException e) {
   
}
    
  
}

 
Hi Expert, 

I created a contact wtih (name= "AA" ,Email="aa@gmail.com"), if i insert a new contact with same Email id (name= "BB" ,Email="aa@gmail.com") then existing record will become (name= "BB" ,Email="aa@gmail.com") and new record will be delete. I want to use  upsert method. this is my code please suggest where is mistake
 
Trigger NewContact on Contact (before insert) {
    Set<String> con = new Set<String>();
    List<Contact> cont = new  List<Contact>();
     List<Id> duplicateIds = new List<Id>();  
      Map<string, Contact> existing = new Map<string, Contact>();
    
    for (Contact c : Trigger.New) 
    {
        con.add(c.Email);
        
    }
    
   
    for(Contact c: [SELECT Id,Email,Phone,Title
                    FROM Contact
                    WHERE Email IN :con])
    {
      existing.put(c.Email, c);
    }
    
    if(existing.size()>0){
       for (Contact c : Trigger.New) 
    {
        if(existing.containsKey(c.Email)){
            duplicateIds.add(c.id);
            Contact clone = c.clone();
            clone.Id = existing.get(c.Email).Id;
            existing.put(c.Email, clone); 
        }
    }
    }
    
    try {
    update existing.values();
   Database.delete(duplicateIds);
} catch (System.DmlException e) {
   
}
    
  
}

 
Hi Expert,

I am stuck in a logic.

i have contact with email fields. like
Contact1(lastname='test', email="aa@gmail.com"). if a new contact insert with same email id then new contact all fields value merge in old contact and this new contact will be delete.  

Please suggest a way.

Thanks
Mukesh  
Hi Expert, 

I am creating a dropdown list by VF and apex page. but i am not getting the value from drop down, it's display blank.
 
<apex:pageBlockSectionItem >
         <apex:outputLabel value="Card Type"></apex:outputLabel>
                   <apex:selectList value="{!selectedCardType}">
                   <apex:selectOptions value="{!cardTypes}" />
            </apex:selectList>
</apex:pageBlockSectionItem>



///////////////////-------------------------------------------////////////////////////////

public String cardTypes { get; set; }
 public String selectedCardType { get; set; }

 public List<SelectOption> getCardTypes(){
       list<SelectOption> cardtype = new list<SelectOption>();
       cardtype.add(new selectOption('Visa','Visa'));
       cardtype.add(new selectOption('Master Card','Master Card'));
       cardtype.add(new selectOption('American Express','American Express'));
       return cardtype;
    }

Please suggest 
Thanks
Mukesh
 
 
Hi Expert, 

I am using a trigger that will fire to delete any record but when  record delete then new screen appears
"The record you attempted to access has been deleted. The user who deleted this record may be able to recover it from the Recycle Bin. Deleted data is stored in the Recycle Bin for 15 days."

But here i don't need this message.
Can any one plesae suggest.

Thanks
Mukesh 
Hi Expert,

I want to create some demo on marketing cloud  journey builder. Can any one share about how to acces journey builder in markeing cloud.

Thanks
Mukesh
Hi Expert,

I need to create a visualforce page that show the lead with  current date. and i have a Assigend buton  top side.
user can choose any lead and then assigned to user , then selected lead will be remove from visualforce page.

Please suggest, what should i do for this task.

Thanks
Mukesh
Hi Expert,

I need to create objects just like :-
                                    Furniture(Object):- wooden(Object):- 1.Chair(Field)
                                                                                               2.Table(Field)

Can any one suggest a way to create object.

Thanks
Mukesh


 
Hi Expert,

I need to create an application for me to send SMS directly from Salesforce. Please suggest.

User-added image
Hi Expert,

I am using User-added image in my salesforce but when i click on Campaign monitor tab in salesforce then got below error
Please sugggest:-
 
Hi Expert,

I am using campaign monitior , but when i am on "Automation" tab and create a journey then "TURN ON JOURNEY" tab is not enable. so i am not moving next step.User-added image

 
Hi Expert,

I am following trailhead "Use SOAP API", but i am stuck , Can you please tell me about, what is in red rectangle area.

User-added image

Thanks
Mukesh
 
Hi Expert,

I am using a test class for coverage 75% code, but few things are not covered. Can any one suggest what is going wrong.

this my test Class: --
@isTest
public class TestProfessorSelectCourse {
    @isTest static void ProfessorCourse(){
       
        
        Professor__c prof = new Professor__c(Name ='JP',Email__c='jp@gmail.com');
        insert prof;
        
        Class__c cls = new Class__c(name='12G', Class_Teacher__c = prof.id);
        insert cls;
        
        Course__c cors = new Course__c(Professor__c=prof.id,Class__c =cls.id, name='Ruby', Start_Date__c= Date.today() , End_date__c= Date.newInstance(2017,03,20));
       	//Professor__c prof = new Professor__c(Name ='JP');
        //cors.Professor__c = prof.Name;
        insert cors;
    }
}

and below is my main class


User-added image

Thanks 
Mukesh

Hi Expert,

I need to get all students name with his class. here class is a parent and student is child. means class 12 have student "A", "B" ,"C" etc.
 
User-added image


Thanks
Mueksh

Hi Expert,

I have  a object name  is "Class" but on this object a standard filed  "Name" , now i want to hide this field form class page layout sothat any one can't see this field.

Please suggest 

Thanks
Mukesh
Hi Expert,

I want to create some demo on marketing cloud  journey builder. Can any one share about how to acces journey builder in markeing cloud.

Thanks
Mukesh
Hi Expert,

I need to create an application for me to send SMS directly from Salesforce. Please suggest.

User-added image
Hi Expert,

I am using a test class for coverage 75% code, but few things are not covered. Can any one suggest what is going wrong.

this my test Class: --
@isTest
public class TestProfessorSelectCourse {
    @isTest static void ProfessorCourse(){
       
        
        Professor__c prof = new Professor__c(Name ='JP',Email__c='jp@gmail.com');
        insert prof;
        
        Class__c cls = new Class__c(name='12G', Class_Teacher__c = prof.id);
        insert cls;
        
        Course__c cors = new Course__c(Professor__c=prof.id,Class__c =cls.id, name='Ruby', Start_Date__c= Date.today() , End_date__c= Date.newInstance(2017,03,20));
       	//Professor__c prof = new Professor__c(Name ='JP');
        //cors.Professor__c = prof.Name;
        insert cors;
    }
}

and below is my main class


User-added image

Thanks 
Mukesh
Hi Expert

I need to create formula for these Total leads rejected.

Can any one suggest.


Thanks
Mukesh

 
Hi Expert,

I have need formula to get the "total leads rejected".

Can you plaese suggest

Many Thanks
Mukesh
Hi Exprt,

On Lead page, I have a two field Name1 and Name2, and one checkbox. if fill value in Name1 and mark checkbox checked. Then field Name1 value will assign to Field Name2.

but i am using professional edition so workflow doesn't support.


Please suggest.

Thanks
 
Hi Expert,

Can you please suggest about:-

Lead field Should be populated by Campaign ID

Thanks


 
Hi Expert,

I am stuck in a logic.

i have contact with email fields. like
Contact1(lastname='test', email="aa@gmail.com"). if a new contact insert with same email id then new contact all fields value merge in old contact and this new contact will be delete.  

Please suggest a way.

Thanks
Mukesh  
Hi Expert, 

I am using a trigger that will fire to delete any record but when  record delete then new screen appears
"The record you attempted to access has been deleted. The user who deleted this record may be able to recover it from the Recycle Bin. Deleted data is stored in the Recycle Bin for 15 days."

But here i don't need this message.
Can any one plesae suggest.

Thanks
Mukesh 
Hi Expert,

I want to create some demo on marketing cloud  journey builder. Can any one share about how to acces journey builder in markeing cloud.

Thanks
Mukesh
Hi Expert,

I have  a object name  is "Class" but on this object a standard filed  "Name" , now i want to hide this field form class page layout sothat any one can't see this field.

Please suggest 

Thanks
Mukesh
Hi Expert,

I have a developer account. Can i add new  app on appExchange by this account. or need any extra.

Thanks 
Mukesh 
Hi Expert,

I have few rquirements:-
 1. GitHub authentication by apex, salesforce on simle button click "Log in GitHub" form visualforce page.
 2. create a Inputtext field on visualforce page to Add new repository on GitHub 

Please suggest.

Thanks
Mukesh
Hi Expert,

I have create Hybrid App with salesforce. Now i am confused to how to upload this app on AppExchange. Please can you please give an idea for this. i have a developer account.

Thanks 
Mukesh 
 
Hi All,

I have created hybrid mobile App in salesforce  
how to upload salesforce hybrid mobile app on appexchange. Can you plesae share me process for uploading.

Thanks
Hi Expert,

I want to add Lead in Campaign, but i have a  DML error.
 
String searchItem = selectedValue;
 List<Lead> l = [SELECT id,leadsource FROM LEAD WHERE Name = :selectedValue];
 String cname = l[0].leadsource;

 List <CampaignMember> cm = new list<CampaignMember>();
 Campaign c = new Campaign(name = cname);
 insert c;

 CampaignMember cml = new CampaignMember();
 cml.campaignid = c.id;
 cml.leadid = l[0].id;
 cm.add(cml);
 insert cm;
Please suggest.

Thanks
Mukesh