• Vinod Choudhary
  • 365 Points
  • Member since 2016

  • Chatter
  • 10
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
  • 148

I have activity hisory as related list for a Account page layout.

On the activity history, i have checked the check box, Send an email.

But when i see the page, this button is missing.

for info, my org has enhanced email option as checked
Thank you for advising the possible reasons.

When i clone an opportunity,
I am not able to do so if i mention a price which is inferior thatn price catalogue.

Thank you for advise

Hello Guys,

I have one VF page and 2 input text boses..when we enter a value in 1 text box..same value should populate in 2 box .
Can you tell me how we achieve this and  i ll be thankful if you give the code..

How to pass parameters from one vf page to another vf page without using Apex.
Interviewer asked me how to achive this.......
Thanks in Advance
Because in my current company they told me that they would be hiring for Developers now m doing kind of consultant jobs, everytime calling with clients. So please let me know from where i should prepare and crack the interview which would happen on Thursday.
Thanks a lot in advance.

Maybe this is an already question, but I did not find the right one:
how can I know the user limits I can create in SFDC for a Salesforce edition license (Enterprise, Professional, etc)?

Thanks a lot,
<apex:page controller="EnrollmentFormClass" showHeader="false" sidebar="false">
    <apex:form >
    <apex:pageBlock title="Opportunitiy Zone Enrollment Form" id="pb1">
            <apex:pageBlockSection columns="3">
                <apex:inputField value="{!primarycontact.Student_Name__c}"/>
                <apex:inputField value="{!primarycontact.School__c}"/> 
                <apex:inputField value="{!primarycontact.Date__c}"/>     
                    SPARC programs are funded by United Way of Greater Atlanta. As such, we are required to report demographic, income, educational and health access information on every individual/family we serve. With the United Way belief that serving one family member serves them all, we collect general information on each member of your household. We appreciate your willingness to complete this form in its entirety so that we can continue providing free programs to the community. Thank you!
            <apex:pageBlockSection title="Head of Household Information:">
                <apex:inputField value="{!primarycontact.FirstName}"/>
                <apex:inputField value="{!primarycontact.LastName}"/>
                <apex:inputField value="{!primarycontact.Date_of_Birth__c}"/>
                <apex:inputField value="{!primarycontact.Gender__c}"/> 
                <apex:inputField value="{!primarycontact.Do_you_have_a_primary_medical_provider__c}"/>
                <apex:inputField value="{!primarycontact.Do_you_have_a_primary_medical_provider__c}"/>
                <apex:inputField value="{!primarycontact.Address__c}"/>
                <apex:inputField value="{!primarycontact.City__c}"/>
                <apex:inputField value="{!primarycontact.State__c}"/>
                <apex:inputField value="{!primarycontact.County__c}"/>
                <apex:inputField value="{!primarycontact.Phone__c}"/>
                <apex:inputField value="{!primarycontact.Email_Address__c}"/>
                <apex:inputField value="{!primarycontact.Preferred_Method_of_Contact_Circle_One__c}"/>
            <apex:pageBlocksection title="Demographic Data: (All information is confidential and is used in applying for grants to fund this program.)" columns="3">
                <apex:inputField value="{!primarycontact.Spanish_translation_Services_Needed__c}"/>
                <apex:inputField value="{!primarycontact.Race_Check_One__c}"/>
                <apex:inputField value="{!primarycontact.Marital_Status_check_one__c}"/>
                <apex:inputField value="{!primarycontact.HIGHEST_LEVEL_OF_EDUCATION_Check_one__c}"/>
                <apex:inputField value="{!primarycontact.Employment_check_one__c}"/>
            <apex:pageBlocksection title="Income:" columns="3">
                <apex:inputField value="{!primarycontact.Annual_Income__c}"/> 
                <apex:inputField value="{!primarycontact.Source_of_Income__c}"/> 
                <apex:inputField value="{!primarycontact.Primary_Method_of_Transportation__c}"/>
            <apex:pageBlocksection title="HOUSEHOLD Information:" columns="3">
                <apex:inputField value="{!othercontact.Other_Adult_First_Name__c}"/>
                <apex:inputField value="{!othercontact.LastName}"/>
                <apex:inputField value="{!othercontact.Date_of_Birth__c}"/>
                <apex:inputField value="{!othercontact.Gender__c}"/> 
                <apex:inputField value="{!othercontact.Relationship_Primary_Care_Provider__c}"/>
                <apex:inputField value="{!othercontact.Medical_Insurance__c    }"/>   
            <apex:pageBlocksection title="Children (all children currently in your household, INCLUDING those participating in this program):" columns="1" />
                <apex:variable var="rowNum" value="{!0}"/>
                <!--<apex:pageBlock id="membAdd"/> -->  
                <apex:variable var="rowNum" value="{!0}"/> 
            <apex:pageblockSection id="pbs1">
                <apex:pageBlockTable value="{!ContactList}" var="c">
                <apex:column headerValue="Number" style="width:20px; text-align:center;" headerClass="centertext">
                <apex:outputText value="{0,number, ###}" style="text-align:center;">   
                <apex:param value="{!rowNum+1}"/>   
                <apex:column headerValue="Name"> 
                <apex:inputfield value="{!c.lastName}"/>    
                <apex:column headerValue="Delete">
                <apex:commandLink style="font-size:15px; font-weight:bold; text-align:center;color:red;" value="X" action="{!delRow}" reRender="pbs1" rendered="{!rowNum>0}">
                <apex:param value="{!rowNum}" name="index"/>
                <apex:variable var="rowNum" value="{!rowNum+1}"/> 
                <apex:column headerValue="AddRow">
                <apex:commandButton value="Add Row" action="{!addRow}"/>  
            <apex:commandButton value="Save" action="{!save}"/> 

public class EnrollmentFormClass {
public Contact primarycontact{get;set;}
public Contact othercontact{get;set;}
public Contact childcontact{get;set;}
public List<Contact> ContactList{get;set;} 
public Account acc{get;set;}
public Household__c hoh{get;set;}    
public String ContactName {get;set;}
public Integer rowNum{get;set;}
public EnrollmentFormClass() {
       primarycontact  = new Contact();
       othercontact    = new Contact();
       childcontact    = new Contact(); 
       acc             = new Account();
       hoh             = new Household__c();
       String sql      = 'SELECT Name FROM Contact';
       ContactList     = Database.Query(sql); 
       ContactList     = new List<Contact>();   
       ContactList.Add(new Contact());
public void AddRow(){
       childcontact = new Contact();
public void delRow() {
       rowNum = Integer.valueOf(apexpages.currentpage().getparameters().get('index'));
public void save(){
       insert  primarycontact;  
       acc.name = primarycontact.lastName;
       acc.name = Household__c.Name;
       insert acc;     
       primarycontact.accountId = acc.id;
       upsert primarycontact;
       othercontact.accountId = acc.id;
       othercontact.Contact1__c = primarycontact.Id; 
       insert othercontact;    
       for(contact cc : ContactList){
       cc.accountId = acc.id;
       cc.Contact1__c = primarycontact.Id;
       upsert  ContactList;
  • February 20, 2018
  • Like
  • 0
Hi am trying to display account and contact object as radio buttons 
when i click on account its record should display and
when i click on contact its record should display 
but am not getting the required output 
Below is my code 
where it is only displaying contact details 
please tell me where am going wrong
<apex:page controller="radio16">
    <apex:form >
        <apex:pageblock >
            <apex:selectRadio value="{!selectedRadio}">
                <apex:selectOption itemLabel="Account" itemValue="Accounts"/>
                <apex:selectOption itemLabel="Contact" itemValue="Contacts"/>
                <apex:actionSupport event="onclick" action="{!getDetails}" reRender="records"/>
            <apex:outputPanel id="records">
                <apex:pageblockSection Title="Records">
                    <apex:PageBlockTable value="{!acc}" var="a">
                        <apex:Column value="{!a.Name}"/>
                     <apex:PageBlockTable value="{!con}" var="c">
                        <apex:Column value="{!c.lastname}"/>
public class radio16 {

    public String selectedRadio { get; set; }

    public List<Account> acc{get;set;}
    public List<Contact> con{get;set;}

    public PageReference getDetails(){
        acc = new  List<Account>();
        if(selectedRadio== 'Account'){
            acc = [SELECT name FROM Account limit 5];
        con =new List<Contact>();
            con = [SELECT lastname FROM Contact limit 5];
        return null;   


I am Facing a big issue in our Salesforce instance. we deleted the products (product2) and these products are disappeared from classic view but these still show in lightning view. now we try to delete or deactivate or edit the products in lighting and it shows the error message "Entity deleted". this error stops our daily working and affects our business totally we can not do anything now in salesforce because of this error.

Can anybody help on same?

Hello Experts,

Does anyone know how to Implement Algolia Search (https://www.algolia.com/)

Anyone? Any Idea ?

I want to show chatter feeds on VF page, all the activities from users that I follow, how can I get all feeds from these users on my page.

Many Thanks,
How we can show an input field half read-only and in another half field user can put value.
Like ...  <[some static value] [Here user can put value]>


I am using Web to case HTML on my VF page. 
When a logged-in user submits that form a case is initiated automatically.

But the fields on Case "Account Name" and "Contact Name" is not populating.

I want to populate "Contact Name" field with the logged-in user who submits the case from VF page.

i have populated the "Web Email" field already.
On my web registred users have community user profile.

when community user login from there account the web to lead form fileds are not shows on form.

whiout logged in normal users can see the fileds.. but if user logged in.. fileds got disappers from from.

I have alredy give the object and filed level security permissions as weel domain level also.

please help !
On the Opportunity object, prevent non-admin users from modify the Opportunity Name once Probability is greater than 50% and prevent Opportunity from being deleted if Probability greater than or equal to 75% (Please show code as necessary)
Hello Friends,
I need to display records on pageblock table based on below conditions on show button:
1. select object from Picklist like Account or Lead
2. Todate (calendar Control)
3. Fromdate (Calendar Control)
When I select account frompicklist and select date range between todate and fromdate and click on show button then all the account records created between selected date should be displayed in pageblock table.
Can anyone help me accomplishing this task?

Wrapper class:
public class facebookwrapper {
public string name {set;get;}
public string firstname {set;get;}
public string lastname {set;get;}
Apex class:
public class FbClass { public string appid {set;get;} public string appsecret {set;get;} public string redirecturl {set;get;} public string code {set;get;} public string jsonString {set;get;} public string accessToken {set;get;} PUBLIC STRING history {set;get;} public string selfdetails {set;get;} public list<facebookwrapper> fbwrap {set;get;} public FbClass(){ appid = '922161527964144'; appsecret = '<it"s a secret to everyone>'; redirecturl = 'https://c.ap5.visual.force.com/apex/FbClass'; fbwrap=new list<facebookwrapper> (); } public PageReference fbaction(){ HttpRequest req=new HttpRequest(); string endpoint='https://www.facebook.com/dialog/oauth?'; endpoint = endpoint+'client_id='+appid; endpoint = endpoint+'&redirect_uri='+redirecturl; endpoint = endpoint+'&scope=user_friends,ads_read,pages_manage_cta,user_videos'; endpoint = endpoint+'&response_type=code'; endpoint = endpoint+'&state=Venkat'; req.setEndpoint(endpoint); req.setMethod('GET'); HttpResponse res = new HttpResponse(); http h = new Http(); res = h.send(req); // readCode(); PageReference p=new PageReference(endpoint); return p; } public void code1(){ code = apexpages.currentpage().getparameters().get('code'); } public void requestToken(){ String url ='https://graph.facebook.com/oauth/access_token?'; url = url+'client_id='+appid; url = url+'&redirect_uri='+redirecturl; url = url+'&client_secret='+appsecret; url = url+'&code='+code; Http p = new Http(); HttpRequest request=new HttpRequest(); request.setMethod('GET'); request.setEndPoint(url); HttpResponse response = p.send(request); // once your getting the response for yor request jsonString = response.getBody(); System.JSONParser js = JSON.createParser(jsonString); system.debug('In Access Token method'+jsonString); while(js.nextToken() != null){ if(js.getText() == 'access_token'){ js.nextToken(); accessToken = js.getText(); } } } public void gethistory(){ HttpRequest req=new HttpRequest(); req.setMethod('GET'); //string idd = 'AaJ31OBeGO-0suOHezvMaf_p_RdgIN4lIg4x3es3DSXplEIisSaEXzpGZnpuuy-GtqSfCN6fnjmXx1iPVs5bIaBE-qvYZNCxghWaJdYvSOovrQ'; // req.setEndpoint('https://graph.facebook.com/v2.11/work-experience-idd HTTP/1.1'); // req.setEndpoint('https://graph.facebook.com/2034133706611611/statuses'); //req.setEndpoint('https://graph.facebook.com/v2.11/friend-list-id'); req.setEndpoint('https://graph.facebook.com/me?fields=work,education'); req.setHeader('Authorization','Bearer '+accessToken); HttpResponse res = null; http h = new Http(); res = h.send(req); history=res.getbody(); system.debug( 'hiiiiiiiiiiiiiiiii'+res.getbody()); // System.JSONParser jp=JSON.createParser(history); } public void datagetting(){ HttpRequest req =new HttpRequest(); req.setMethod('GET'); string url = 'https://graph.facebook.com/me?fields=taggable_friends{name,first_name,last_name}'; req.setEndpoint(url); req.setHeader('Authorization','Bearer '+accessToken); HttpResponse res = new HttpResponse(); Http h = new Http(); res = h.send(req); system.debug( 'hiiiiiiiiiiiiiiiii'+res.getbody()); selfdetails = res.getbody(); System.JSONParser js = JSON.createParser(selfdetails); while(js.nextToken() != null){ string name1; string firstname; string lastname; if(js.getText() == 'name'){ facebookwrapper fb=new facebookwrapper(); js.nextToken(); name1 = js.getText(); system.debug('Namessss'+name1); fb.name = name1;
system.debug('Nameeee:'+fb); js.nextToken();
if(js.getText() == 'first_name'){ js.nextToken();
firstname = js.getText();
fb.firstname = firstname; system.debug('Firstnames11111111111111111111:'+fb);
VF Page: 
<apex:page controller="FbClass"> <apex:form > <apex:pageblock > <apex:commandButton action="{!fbaction}" value="click" /> <apex:commandButton action="{!code1}" value="code" /> {!code} <apex:commandButton action="{!requestToken}" value="Token" /> {!accessToken} <apex:commandButton action="{!gethistory}" value="history" /> {!history} <apex:commandButton action="{!datagetting}" value="Data" /> {!selfdetails} </apex:pageblock> <apex:pageblock > <apex:pageblocktable value="{!fbwrap}" var="x"> <apex:column value="{!x.name}" headerValue="Names" /> <apex:column headerValue="FirstName" value="{!x.firstname}"/> <apex:column headerValue="Lastnames" value="{!x.lastname}" /> </apex:pageblocktable> </apex:pageblock> </apex:form> </apex:page>
system.debug('FaceBookWrapper:'+fbwrap); js.nextToken();
if(js.getText() == 'last_name'){ js.nextToken(); lastname = js.getText(); fb.lastname = lastname; fbwrap.add(fb);
I am new to Salesforce, do we haveinbuilt ETLtool(any) in salesforce.
public class apex4 {

    public PageReference Save() {
        return null;

contact con=new contact();

    public contact newcon{get;set;}
    public apex4(){
    newcon=new contact();
   public pagereference save(){
   contact coninsert=new contact();
    insert coninsert;
    pagereference pageref = new pagereference('/'+con.id);
    return pageref;
public without Sharing class SendToContractorController {
    Public Account newAccount {get; set;}
    Public String AccountId ; 
    Public String  eventType ;
    Public ApexPages.StandardController controller {get; set;}
    public SendToContractorController() { 
        AccountId = ApexPages.currentPage().getParameters().get('Id');
        eventType = ApexPages.currentPage().getParameters().get('type');
    public PageReference init() {
                if(eventType == 'SentToCustomer') {
                    newAccount.Sent_to_Customer__c = true;
                  //  newAccount.Subcontractor_Email__c = newAccount.Subcontractor_Search__r.Applicant2_Email__c ;
                   update newAccount;
                   // SendToContractorController.processEvent(new set<Id>{newAccount.id});
                    PageReference eventPage = new ApexPages.StandardController(newAccount).view();
                    return eventPage;
                } else if(eventType == 'SyncDataFromCustomer') {
                    List<Contractor_Job__c> contractorJobList = [SELECT Id, Event_Id__c, Start_Date_Time__c,End_Date_Time__c,Description__c, Status__c, Recharge_Notes__c, Special_Instructions__c 
                                                                 FROM Contractor_Job__c
                    PageReference eventPage = new ApexPages.StandardController(newAccount).view();
                    return eventPage;
        } catch(Exception e){
        return null; 
Hello, I am looking to setup a connector to connect to my trailhead salesforce instanse.  Where can I find that URL to put in my connector properties and then I can add my user name/passworkd to log into it
  • April 04, 2018
  • Like
  • 0
Failing at Create Report and Dashboard check
Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: BYJJPONT
Hi All
We have to implement new project in Office.
I need price details on salesforce organization(All editions) for all paid versions(Not for singe user cost).
Any one let me know the total price on SFDC org.
Any help will be appreciated.

Tirumala K
The chatter feed is for internal user only. Therefore, I am not allowed to select “All with access” in the chatter feed. An error message will be display if I select “All with access”
Hi,  I am trying to create a custom button on cases to click if they want to accept the case.  Which would change status of the case from new to open.This button already exists in classic in java script. Now need to create in Lightning. Please do help me.
  • March 30, 2018
  • Like
  • 0
Hi Everyone,

I am new In sales force development .now I am creating  project .but i have to know which archtechre will be best and how industry implemet code ,what pattern they use.Please suggest me and if there is any sample project please tell me.  
Due to some data issue i am not able to complete my last step for 'Advanced Apex Specialist' superbadge, how can i start the same super badge from the beginning the Trailhead playground? Or please suggest some alternate solutions
We are looking for help to migrate to Salesforce with 10 Users.
We still have our data in our current crm vtiger
We need also three custom modules 
We need also a connection to Wordpress
More information upon request 
Hello guys!!
I have just started salesforce development.It would be great if you guys can guide me how i can excel in triggers or can you guys provide me some sample programs of triggers

Can we develop an interface/UI  for a website or App Which provides Log In using Salesforce credentials ?
For many sites we uses social sign in i.e. Login with google or Login with Facebook. 
We want to develop "login with Salesforce" and read basic information. Is it possible ?

I have read Enable Salesforce as an Identity Provider. But we are not using Salesforce for our web application.


I have activity hisory as related list for a Account page layout.

On the activity history, i have checked the check box, Send an email.

But when i see the page, this button is missing.

for info, my org has enhanced email option as checked
Thank you for advising the possible reasons.
Hi all, I have a requirement custom lead conversion process here my lead and Opportunity is custom object please help me out in this particular area