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

  • Chatter
    Feed
  • 3
    Best Answers
  • 2
    Likes Received
  • 1
    Likes Given
  • 85
    Questions
  • 77
    Replies
Hi all,

I'm using VisualForce for an intake survey. The first part of it is relatively easy. This is the code for First Name.

<apex:inputfield value="{!Contact.FirstName}" />

However, I can't find any guidance on how to ask a yes or no question in the intake. I would want to limit it to yes or no. Not allow anything else like "working on it" or "almost."

Anyone know of a possible answer?
Hi Expert,

I have a account with oppertunities. now  i want to add GrossTotal custom field in Account and all opertunity Amount will be add in Gross total.

Please suggest.

Regards
Romesh
  


 
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,

I have following error:
System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out

My usecase:
I am calling a webservice in a future handler. 

Other workaround i tried:
I tried to call the webservice without a future handler, but as i am calling in trigger it is giving me error.

Can someone please tell me any workaroud ?

thank you
Hi All,
         Can anyone help me to get the below output using VF and Apex classes.Out put format

Thank You.
I creating a page where i need to dispaly page number, as per the below screenshot.
Implementing through SLDS, please help me with the code or any idea would be appreciated.

User-added image
Hi,
I have one field on Account whoes data type is Number(18,0) . From my one of visualforce page I am creating account record,that time i have added value to field as 999999999999999999.That time I am getting below error,
"value outside of valid range on numeric field: 1000000000000000000".
I have debug the value some how "999999999999999999" value is showing as "1000000000000000000" in apex log. How it is getting converted ?? I am not performing any conversion on it !!
And If i added "999999999999999999" from standard page it is taking same value !!
Can any one help me to find out what will be the reason that is taking "999999999999999999" as "1000000000000000000" from VF ??

so I'm running into the issue below when I try to upload my changeset from my sandbox to production
 
Surgery__c-Pre-Assessment Page Layout 908 34 In field: customButtons - no WebLink named Surgery__c.Filter_Fields found

I've gone into the setup and looked in the page layouts as well as the "Buttons links and actions" section for both the production and sandbox and I can't seem to find a Filter_Fields section in either so I'm not really sure what to do.
Filter fields was a visualforce page I created a while back and subsequently deleted (after uploading it, unfortunately) but now I can't seem to find where it's being referenced on the surgery object
Hi All,

I created a new custom field, added it to 4 page layouts and its permission was read/editable by all. When i moved this field from DEV to UAT using change set, only the new field was copied, it was not added in the page layouts and its permissions were not there as well, it was hidden from all profiles. What did I miss here??
I tried below code but i'm not getting o/p
Apex trigger:

trigger Rollup_Acc on Opportunity (After insert,After update,After delete,after undelete) {
    if(trigger.isinsert && trigger.isupdate && trigger.isdelete && trigger.isundelete){
    List<Account> accs=new List<Account>();
    Set<Id> ids=new Set<Id>();
    for(opportunity o:trigger.new){
        ids.add(o.AccountId);
        
    }
    decimal sum;
    for(Account acc :[select id,name,Amount__c,(select id,name,amount from opportunities ) from Account where id =:ids]){
        sum=0;
        for(opportunity op:acc.opportunities){
            sum+=op.Amount;
        }
        acc.AnnualRevenue=sum;
        accs.add(acc);
        
        
    }
   
    update accs;
    }
   
    
}
Hi all,

I'm using VisualForce for an intake survey. The first part of it is relatively easy. This is the code for First Name.

<apex:inputfield value="{!Contact.FirstName}" />

However, I can't find any guidance on how to ask a yes or no question in the intake. I would want to limit it to yes or no. Not allow anything else like "working on it" or "almost."

Anyone know of a possible answer?
I am trying to change the text color on a visualforce page to one of four colors based on data contained in a field.  The code is below.  I have looked at similar posts but have not been successful. I would appreciate any help you could provide.

<apex:repeat value="{!wrappedSystems}" var="s">
                                <tr class="linkable">
                                    <input type="hidden" class="id" data-type="system" data-id="{!s.sys.Id}" />
                                    <td><c:RC_Donut theName="{!s.sys.Id}" percent="{!s.batRemaining}" /></td>
                                    <td>{!s.sys.System_Name__c}</td>
                                    <td><center><font color = "{if({!s.sys.Operational_Status_Color__c}='Red',#FF0000, if({!s.sys.Operational_Status_Color__c}='Yellow',#FFF000, if({!s.sys.Operational_Status_Color__c}='Green',#01DF01,#808080)))}">{!s.sys.Operational_Status__c}</font></center></td>
                                    <td>{!s.sys.Status__c}</td>
                                    <td>{!s.sys.System_City__c}, {!s.sys.System_State__c}</td>
                                </tr>
                            </apex:repeat>


  • December 27, 2017
  • Like
  • 1
Hi All,

Automatically created the 2 child records when parent(Account) record is created? Best approach (Process builder or Apex trigger)?


Thanks,
Malakondaiah
Hi Expert,

I have a account with oppertunities. now  i want to add GrossTotal custom field in Account and all opertunity Amount will be add in Gross total.

Please suggest.

Regards
Romesh
  


 
HI All,

1 ) I have 4 fields 1)Firstname 2)lastname 3) type is picklist(Value of picklist) 4 ) DATE on Opportunity object
2)  Firstname +lastname +type +DATE

My reuirement is i want track the information who ever changes those fields, How we can achive this?

Regards,
Chanti
Hi, 

  I need a suggestion how to put a logic inside lead loop to insert a campaign member Please suggest. 
for(Lead objLead: [select id,email from Lead where email IN :emailSet]){
                mapEmailToLeadId.put(objLead.Email, objLead.Id);
                objLead.Lead_Source_Temp__c = 'CTAP Assessement'; //Update Lead Source added by Sudhir
                ledlst.add(objLead);
                // how to add a logic to insert a campaign member here
            }

Thanks
Sudhir
Hi,

Is there any way to display the matrix report with the same data and all the groupings in apex VF Page?

Please let me know if anybody have a sample code..

Thanks,
Sarav
I want to write a method which return count of files present in a folder of a directory present externally or internally both

Hi everyone,

 

I would like some users of my company to be able to fill out forms which information goes directly to SFDC. I thought about something like Customer Portal but it's expensive for what they actually need.

 

Would it be possible to have a place (site,.URL,visualforce page,....web-to-form??) where users can enter some data in a particular form without buying a license for each of them? They access to Salesforce information should be restricted to strictly the form they want to fill out.

 

Thank you!!