• mukesh gupta
  • NEWBIE
  • 200 Points
  • Member since 2015
  • 3X Salesforce Certified

  • Chatter
    Feed
  • 1
    Best Answers
  • 2
    Likes Received
  • 1
    Likes Given
  • 85
    Questions
  • 54
    Replies
Hello Friends,
I am new to visualforce development,
I want to create a visualforce form in which i want a picklist field and values for picklist will be : DOC, RAR, ZIP
and a TextArea Field in which we can give comment or description
and a Save Button which will save all data of the form to the Activity Object Inside Salesforce
I have picklist field 'Filetype' with values DOC, RAR, ZIP and a TextArea Field 'Description' on Activity Object

and please do not provide any link or reference, if possible, then help me with an example,

Any help would be greatly appreciated
Thanks in Advance
Hi Epxert,

I have create a third party(.net) login page with username and password. user can login in salesforce by .net login page to salesforce by Existing user name and password. But i am not able to match password by SOQL in salesforce.

Please suggest.

Thanks
Mukesh 
hi Expert,

When i create a Notes in oppertunity then this notes will Rollup in Account object. but when i use same process in Enterprise edition then Oppertunity Related list notes not Rollup in Account object.

Can you please suggest about this process.

Thanks
Mukesh
Hi exprt, 

I have two datetime field d1(10/12/2017 : 10:40 pm)  and d2(10/12/2017 : 11:40 pm)  now i want to get 2 hours, so i am using business hours formula,
5day in week and 8 hours per day but get only 0.00 by use below formula

ROUND( 8 * ( ( 5 * FLOOR( ( DATEVALUE( First_Activity_Date_Time__c) - DATE( 1900, 1, 8) ) / 7) + MIN(5, MOD( DATEVALUE( First_Activity_Date_Time__c ) - DATE( 1900, 1, 8), 7) + MIN( 1, 24 / 8 * ( MOD( First_Activity_Date_Time__c - DATETIMEVALUE( '1900-01-08 16:00:00' ), 1 ) ) ) ) ) - ( 5 * FLOOR( ( DATEVALUE( Last_Assignment_Date__c ) - DATE( 1900, 1, 8) ) / 7) + MIN( 5, MOD( DATEVALUE( Last_Assignment_Date__c ) - DATE( 1996, 1, 1), 7 ) + MIN( 1, 24 / 8 * ( MOD( Last_Assignment_Date__c - DATETIMEVALUE( '1900-01-08 16:00:00' ), 1) ) ) ) ) ), 0 )
Hi Expert,

When i send Email from Case and add attachment,  this attachment show in only Email page related list in "Google Docs & Attachments". but not showing case related list "Google Docs & Attachments".

User-added image
User-added image
Please suggest, How to able to add email attachment in to the "Google Docs & Attachments" on case .

Thanks
​Mukesh

 
Hi Expert,

i have a one user with Role "Manager", Now this user(manager role) not able to edit "Contract object fields". Can you please suggest how this user will able to edit the contract object fields.

Thanks
Mukesh 



 
Hi Expert,

I have a more then one user in salesforce, i need a functionality sothat all account manager of company will able to see the oppertunity List view. Now when another user try to access opertunity then facing error.
"Insufficient Privileges Errors"

Please suggest.

Thanks
​Mukesh

 
Hi Expert,

I need to create custom webTab by apex code just Like Custom object, Can you please suggest how to achive this.

Thanks
mukesh
Hi Expert,

I have internal chatter for case object. but i dont want to email notification by chatter on case. How to disable chatter email notification.
User-added image
 
Hi Expert,

I need to logout salesforce by another website. Can you please confirm about this.

Many Thanks
Mueksh


 
Hi Expert,

I have a two object "Account" and "Project". both have a picklist. When i add new option in "Account" object picklist the "Project"  object picklist auto upate by "Account" object picklist. For Example 

Object(Account)                    Object(Project)

Picklist(State)                       Picklist(State)
                                          
option A, B ,C                       option A,B,C

Means when i delete 'A' from  project object picklist then  Account Object will have only "B, C" now "A" will delete, Same apply if i delete Account object picklist.

Please suggest about any process.

Thanksa
Mukesh 



 
Hi exprt, 

I have a standard plicklist name is  status on case object. Now i want to use same picklist on customer portal, but only few status picklist option not all. Means in salesforce csae status plicklist have 4 option, but in customer portal same picklist will have only 2 options

Please suggest 
Hi Expert,

I have a Status picklist on Case object with 4 options in salesforce, but now i need same Status picklist display only 2 option on customer portal.

Please give any idea.

Thanks
Mukesh 
 
Hi exprt 

Any chatter seething, so that clients should not see the chatter. 

Please suggest 
Hi Expert,

I need to some setting regading chatter for below steps:-
1. Actual Chatter not viewable to clients.
2. Chatter updates not send to publisher, publisher get only email update. 

Thanks
Mukesh

 
Hi Expert,

I need to change the permission of  "Internal Comments" on case object by profile. but this field is not editable in profile. So how i can edit this permission. 

User-added image

Please suggest

Thanks
Mukesh
Hi Expert,

I have a 50000 of case and  few case Status was "Closed". but acidentily it's Satus change to "New" and date of case close not change. I know the usermodifybyId for all updated cases. but how to change status to 'Closesd' again that was change 'New'. if i changed Status 'New' to 'Closed' then Date of case cloesd will change , here i need to maintain date of case closed as alerady set. i don't want to change date of  case close

Pleaes suggest.

Many Thanks
Mukesh   
 
Hi Expert

I have case , when i change the case status to CLOSE then , 
Date/Time Closed filed does not showing any cloase date of case. How to achive this.User-added image

Thanks
Mukesh

 
I need a line break in Email format . Please suggest, I have tried BR that does not working .

User-added image

Many Thanks
Mukesh
Hi Expert,

I hava Custom Button or Link Detail button on salesforce .  Now i want to add new line in "OnClick JavaScript" field.

How to achive this.

Thanks
Mukesh
Hi Expert,

I need to related list case Team member notification , when any Related list Email comes in case. how to achive this.

Plaese suggest
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
Hello All,

I am getting case notification from email service when i have set email Deliverability to all emails. 

Please let me know how to deactivate those notifications.

Thansk,
Kumar
  • December 08, 2017
  • Like
  • 0
Why I am getting this error--
"Executing the 'insertNewAccount' method failed. Either the method does not exist, is not static, or does not insert the proper account."
my code--

public class AccountHandler {

     public static Account insertNewAccount(String name){
        
          Account a = new Account();
          a.Name = 'name';
        
        try{
            insert a;
        }
        catch(Exception e){
            return null;
        }    
       return a;
    }
}
Hello,

I have an approval process and an email template.

In approval process, I mentioned name of that email template in  "Approval Assignment Email Template".

I would like to know what is the entry criteria to trigger that email notification? And does email notification is sent to initial submitters also?

Thanks in advance. Please help me
I am trying to send an email but it does not send. I test delivery that does not work. One I use the following code,  the log says that there is 1 email invocation but no email is sent.  Is there something that I have to set in order to send email.

<apex:page controller="RequestEmailController">
    <apex:form >
        <apex:pageBlock title="Email">
            <b>Enter Subject  </b>    <apex:inputText value="{!Subject}" maxlength="100" /><p/> <br/>
            <apex:outputLabel for="bod" value="Enter Body"> </apex:outputLabel>
            <apex:inputTextarea value="{!Body}" id="bod" rows="8" cols="60" /><p/>

             <apex:pageBlockButtons > 
             <apex:commandButton value="Send Request" action="{!Send}"  />
            </apex:pageBlockButtons>   

        </apex:pageBlock>
    </apex:form>
</apex:page>

public class RequestEmailController {
    Public String subject {Get;Set;}
    Public String body {Get;Set;}
    List<String> eaddr = new List<String>{'c.mcdowell@sbcglobal.net'};
    
    Public PageReference send(){
        
        messaging.singleEmailmessage email = new messaging.singleEmailmessage();
            email.setSubject(Subject);
            email.setPlainTextBody(Body);
            email.setToAddresses(eaddr);
        
            Messaging.sendEmailResult[] r = messaging.sendEmail(new messaging.SingleEmailMessage[] {email});
        System.debug('The email size is: ' + r.size());
        Return null;
    }

}
 
Hello Friends,
I am new to visualforce development,
I want to create a visualforce form in which i want a picklist field and values for picklist will be : DOC, RAR, ZIP
and a TextArea Field in which we can give comment or description
and a Save Button which will save all data of the form to the Activity Object Inside Salesforce
I have picklist field 'Filetype' with values DOC, RAR, ZIP and a TextArea Field 'Description' on Activity Object

and please do not provide any link or reference, if possible, then help me with an example,

Any help would be greatly appreciated
Thanks in Advance
Schedulable apex class staying "Queued" and then "Aborted"  but not executing.
 
global class woww_refresh_v2 implements Schedulable {
    
    public static void execute(SchedulableContext SC) {
       try{
        list<Challenge__c> chal = [SELECT Id, Start_Date__c 
                                       FROM Challenge__c 
                                       WHERE Is_Started__c=true];
            list<Participant__C> participants=[SELECT Id, Name__c
                                               FROM Participant__C];
            list<mdg_daily_tip__c> tips=[SELECT Description__c, Name
                                         FROM mdg_daily_tip__c
                                         WHERE Date__c=TODAY];
             
.......................

            Ch_Data__c challdata=new Ch_Data__c(
                                    status__c = status,
                                    ...
                                );
                                insert challdata;
     } catch(Exception e)
        {
                    
        }
   }
}

What can I do wrong? 
I have override the Standard Account Page with <apex:detail> and Account Address Field fill the Address of the Record but It does not display the Map of the Particular Address.

Please provide me powerful Reason. Is it possible or not . If possible then provide me the sollution of this problem.

 
Hi Expert,

I need to logout salesforce by another website. Can you please confirm about this.

Many Thanks
Mueksh


 
Hi Expert,

I have a Status picklist on Case object with 4 options in salesforce, but now i need same Status picklist display only 2 option on customer portal.

Please give any idea.

Thanks
Mukesh 
 
Hi Expert,

I have a 50000 of case and  few case Status was "Closed". but acidentily it's Satus change to "New" and date of case close not change. I know the usermodifybyId for all updated cases. but how to change status to 'Closesd' again that was change 'New'. if i changed Status 'New' to 'Closed' then Date of case cloesd will change , here i need to maintain date of case closed as alerady set. i don't want to change date of  case close

Pleaes suggest.

Many Thanks
Mukesh   
 
I need a line break in Email format . Please suggest, I have tried BR that does not working .

User-added image

Many Thanks
Mukesh
Hi Expert,

When a case receive an email in Email Related list , then case owner will get the Email notification. 

User-added image

Please suggest, how to case owner will get this email.

Thanks
Mukesh
Hi Expert,

I am using salesforce API in outside angularjs, i am getting records on client side, but if any new update become in salesforce side then , new added record will display automatic, currently i am using set time interval, but i want to use another method instead of interval.

Example:- I am getting salesforce contacts in my angular side, but if user Add a new contact in salesforce , then this will instantly reflect in client side. 

CAn you please suggest !  

Thanks
Mukesh  
Hi Expert,

I am some confused about callback_url in connected App. Can you please tell be about this with a simple example. I wanrt to add this "callback_url" in "redirectURI" for authitication.
 

Thanks