• Gauravendra
  • NEWBIE
  • 315 Points
  • Member since 2018
  • Salesforce Developer


  • Chatter
    Feed
  • 10
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 47
    Replies
Hi Guys - I have written a controller which is being used in an vf component. My issue is I need to display adresses comma seperated.
pls suggest 

controller
------------
public with sharing class DisplayList{ 
    public List<Address__c> Records {get; set;} 
    
    public DisplayList(){ 
    Records = [SELECT Name 
               FROM Address__c
               WHERE Billing_Account__c = :ApexPages.currentPage().getParameters().get('Id')];
    system.debug('record-->'+Records); 
    } 
 }
vf component snippet
=----------------------------
 </apex:repeat>
        <apex:repeat value="{!Records}" var="Record">
         <div><span>Service Addresses:</span><span><apex:outputText value="{!Record.Name}" escape="false"/></span></div>
    </apex:repeat>
 
Hi,
I am trying to display the opportunitycontactroles list on an object (Deal_Desk_Request__c) related to the opportunity.  I am not getting errors when saving the code, but nothing is appearing in the visualforce page other than the headers.  I am new to apex/visualforce development and not sure what I am doing wrong.  Can someone please help?

Here is the visualforce page:
<apex:page standardcontroller="deal_desk_request__c" extensions="dealdeskcontactrole" >
  <apex:pageblock >
      <apex:pageblocktable value="{!roles}" var="role">
          <apex:column headervalue="Contact" >
                      <apex:outputfield value="{!role.contactid}"/>
                      </apex:column>     
          <apex:column headervalue="Role" >
                      <apex:outputfield value="{!role.role}"/>
                      </apex:column>           
          <apex:column headervalue="Primary" >
                      <apex:outputfield value="{!role.isprimary}"/>
                      </apex:column>           


      </apex:pageblocktable>
  </apex:pageblock>
</apex:page>

Here is the extension class:
public with sharing class dealdeskcontactrole {
list<opportunitycontactrole> roles;
 public final Deal_Desk_Request__c DDR;
    public dealdeskcontactrole(ApexPages.StandardController controller) {
   
        this.DDR = (Deal_Desk_Request__c)controller.getRecord();
    }

    public list<opportunitycontactrole> getroles() {
        try{
        list<opportunitycontactrole> roles = [select id, contactID, Role, Isprimary from opportunitycontactrole where Opportunityid =: DDR.Opportunity__r.id];
         return roles;
        }
        catch(system.exception e){
        return null;
        }     
    }
   }

 
Hi Team,

I have amount__c in both contact and account . if account has many contacts  and i need to update highest amount of contacts and update that into account amount field ?

Ex : ABC account   Amount__c  =

       Contact1 :  T -- Amount__c = 500$
       Contact2 :  A -- Amount__c = 700$
       Contact3 :  B -- Amount__c =300$

now account amount__c need to update with 700$ . how can i acheive it using trigger
I have a requirement for PAN Number field should include 5 text, 4 Number and 1 Text characters should include for that i wrote validation rule.
Rule passed succesfully, but record is not saving in any formates. Can you please let me know the my mistake.

NOT(AND( 
(REGEX( PAN_Number__c , "[A-Z][a-z]{5}[0-9]{4}[A-Z][a-z]{1}") ), 
LEN( PAN_Number__c) <> 10))

User-added image
Thanks in Advance!
SyamReddy.
Hi Guys,

I have a requirement ..i  need to create a visualforce page which will display all account names in custom picklist.
Please help me on this.

Thanks in Advance.
Smitha
Hi, 
I want to develop a page which has two radio button as options : radio1  and radio2 . on click of radio1 a form of account should be avaialble and on click of radio2 a form of contact should be available. 

I have my code but on click of both radio button it is redirecting to contact page only. can u help me to solve my issue

<apex:page controller="AccController">
 <apex:form >
 <apex:pageBlock id="pgblk"> 
 <apex:selectRadio id="radioid" layout="pageDirection">
 <apex:selectOption  itemLabel="radio1" itemValue="1"></apex:selectOption>
 <apex:actionSupport event="onclick" action="{!AccForm}">
 </apex:actionSupport>
 
 <apex:selectOption itemLabel="radio2" itemValue="2"></apex:selectOption>
 <apex:actionSupport event="onclick" action="{!ContForm}">
 </apex:actionSupport>
 </apex:selectRadio>
 
 </apex:pageBlock>
 </apex:form>
</apex:page>

Here is my controller
public class AccController 
{
 public PageReference AccForm()
 {
 PageReference Page = new PageReference('/apex/CreateAcc');
 Page.setRedirect(true);
 return Page;
 }
 
 public PageReference ContForm()
 {
 PageReference Page = new PageReference('/apex/CreateContact');
 Page.setRedirect(true);
 return Page;
 }
}
while saving 11th  record it should show an error while saving that limit had exceeded

I am trying to display a selectList in a visualforce page using a custom controller i built.

I get an "List has no rows for assignment to SObject" error when trying to preview the page, but running the query in the developer console, returns the rows.

here is my page:
 

<apex:page Controller="BpmIcountPayment">
    <apex:param name="first_name" value="Account.FirstName"/>
    <apex:param name="last_name" value="Account.LastName"/>
    <apex:param name="id" value="Account.idnumber__c"/>
    <apex:param name="address" value="Account.Address"/>
    <apex:form >
        <apex:selectList value="{!productsTitle}" multiselect="false">
            <apex:selectOptions value="{!ProductsLov}"></apex:selectOptions>
        </apex:selectList>
        </apex:form>
</apex:page>

and my controller:

public class BpmIcountPayment{

    private final Account account;

    public String productsTitle {
      get { return 'products for sale'; }
      set;
    }
 
    public BpmIcountPayment() {
        account = [SELECT Id, Name, Site FROM Account
                   WHERE Id = :ApexPages.currentPage().getParameters().get('id')];
    }

    public Account getAccount() {
        return account;
    }

    public List<SelectOption> getProductsLov() {
        List<SelectOption> products = new List<SelectOption>();
        List<Product2> productsList = [SELECT Id, Name, Family 
                                      FROM Product2 
                                      WHERE (Family = 'ShopProduct') 
                                      OR (Family = 'CourseParent') 
                                      OR (Family = 'SFCourseProgram')];

        system.debug(productsList);
        for (Product2 currProduct : productsList) {
            products.add(new SelectOption(currProduct.Id, currProduct.Name));
        }

        return products;
    }
}
Am, using the concept of Wrapper class. I want to delete recently created contact record from pageBlockTable.
I am facing Unknown property 'SingleRecordDelete.ContactWrp.id' Error
Here is What I did--

VF page

<apex:page controller="SingleRecordDelete">
  <apex:form >
     <apex:pageBlock title="Contacts">
          <apex:pageBlockSection title="New Contact" columns="2" id="fresh">
              <apex:inputText label="FirstName" value="{!fname}" />
              <apex:inputText label="LastName" value="{!lname}"/>
              <apex:commandButton action="{!save}" value="Save" reRender="lab,fresh"/>
          </apex:pageBlockSection> 
         
          <apex:pageBlockSection title="ContactList" id="lab">
              <apex:pageBlockTable value="{!crp}" var="cy" id="update">
                  <apex:column headerValue="FirstName">
                      <apex:outputLabel value="{!cy.cn.firstname}"/>
                  </apex:column>
                  <apex:column headerValue="LastName">
                      <apex:outputLabel value="{!cy.cn.lastname}"/>
                  </apex:column>
                  <apex:column >
                         <apex:commandLink value="Delete" action="{!doDelete}" style="color:Red" reRender="lab">
                             <apex:param name="did" value="{!cy.id}" assignTo="{!did}"/>
                         </apex:commandLink>
                  </apex:column>
                  
              </apex:pageBlockTable>
                  
          </apex:pageBlockSection> 
               
     </apex:pageBlock>
  </apex:form>
</apex:page>

ApexClass
public with sharing class SingleRecordDelete {

    public String fname {get;set;}
    public String lname {get;set;}
    public String did {get;set;}
    
    public List<ContactWrp> crp {get;set;}
    
    public SingleRecordDelete(){
        crp = new List<ContactWrp>();
        
    }
    
    public void save(){
      Contact c = new Contact();
      c.firstname = fname;
      c.lastname = lname;
      insert c;
      crp.add(new ContactWrp(c));
      fname='';
      lname='';
    }
    
    public void doDelete()
    {
        List<Contact> contactToBeDelete = new List<Contact>();
        Contact cod = [select id from Contact where id =: did];
        contactToBeDelete.add(cod);
        delete contactToBeDelete;
    }
    
     public class ContactWrp{
    
      public Contact cn {get;set;}
      
        public ContactWrp(Contact cs){
            this.cn = cs;                   
        }
    }
}
Hello,

I am trying to schedule a class to run at a specific time everyday. I get the error
'Method does not exist or incorrect signature: void schedule(String, String, WarehouseCalloutService) from the type System'
when I save the following in dev console: 

global class WarehouseSyncSchedule implements Schedulable{
  // implement scheduled code here
    global void execute(SchedulableContext ctx) {
        WarehouseCalloutService w = new WarehouseCalloutService();
        String sch = '0 0 1 * * ?';
        String SyncWithWarehouse = System.schedule('Warehouse Callout Service', sch, w);
    }
}

Looking for help with this error.
Hi All, 

I have two contacts: Contact A and Contact B which are duplicates. Contact B has Custom Related Object (CRO) C. When Contact B is merged with Contact A, CRO C is moved to Contact A. Contact B is deleted. Instead of immediately deleting Contact B, I want to merge the two records, (moving CRO C to Contact A) and update values of Contact A. However, I want Contact B to remain. 

I want to write an apex trigger that can bring this deleted contact back or triggers any event that doesn't delete the Contact B. Or is there any other solution for this? 
Hi Guys - I have written a controller which is being used in an vf component. My issue is I need to display adresses comma seperated.
pls suggest 

controller
------------
public with sharing class DisplayList{ 
    public List<Address__c> Records {get; set;} 
    
    public DisplayList(){ 
    Records = [SELECT Name 
               FROM Address__c
               WHERE Billing_Account__c = :ApexPages.currentPage().getParameters().get('Id')];
    system.debug('record-->'+Records); 
    } 
 }
vf component snippet
=----------------------------
 </apex:repeat>
        <apex:repeat value="{!Records}" var="Record">
         <div><span>Service Addresses:</span><span><apex:outputText value="{!Record.Name}" escape="false"/></span></div>
    </apex:repeat>
 
Hi All,
           How can I find all the user's who are assigned with a particular permission set ?

User-added image
when i click on customer name that time i want to open that corresponding record detail in that particular object 
Hi everyone,
I created one custom filed accountcount and when ever new account created, count is reflected in that filed.
now requirement is like " need to display the message when the record is created and need to display the message like this the 48th record".
below is the code for account count, and i want to display the message.could anyone please sugggest me how to achieve this?

public class CountAccount {
    public static void accountscount(List<Account> accs)
    {
     Decimal CountOfAccount=[Select COUNT() From     Account];
    for(Account a:accs)
    {
       a.AccountCount__c=CountOfAccount+1;
       CountOfAccount=a.AccountCount__c;
    }
       
    }

}
 
Hello Experts,

In Contact Object, there is no field name Owner then how it is able to access "Contact.Owner.email" ??
Please explain its internal working.
Thanks.
Hi All,

I have created a visualforce page using <apex:enhancedList type="Activity" height="1000"/> tag and embeded this page in lightning component. Now I have added this component to home page layout, it is working fine but it is showing headers two time.I only want to show global header. Could you please help me with this.

User-added image

Thanks,
Parteek
Hello All,

I have just tried my first lightning page, the page contains two text fields and one button. Once click on button account record should be create. After click on preview i can able to see the form but when i entered the data in the text box i am getting below error. Could you please help me on this.

User-added image

Please find the lightning code below:
 
<aura:component >
    <aura:attribute name="NewAccount" type="Account"/>
	<lightning:input label="AccountName" name="myname" required="true" value="{!v.NewAccount.Name}" />
    <lightning:input label="Fax" name="fax" required="true" value="{!v.NewAccount.fax}"/>
    <lightning:button variant="brand" label="Submit" onclick="{!c.createAccount}"/> 
</aura:component>


({
	myAction : function(component, event) {
	var newAcc = component.get("v.NewAccount");
    var action = component.get("c.createAccount");
    action.setParams({ 
        "acc": newAcc
    });	
      action.setCallback(this, function(a) {
           var state = a.getState();
            if (state === "SUCCESS") {
                var name = a.getReturnValue();
               alert("hello from here"+name);
            }
        });
    $A.enqueueAction(action)   
        
	}
})

Advance thanks,
VSK98​
  • February 27, 2018
  • Like
  • 0
Hello,

Can no figure out why I keep receiving the error message "Challenge Not yet complete... here's what's wrong: 
Could not find a default value of 'Qualification' for the 'Stage' field."  
As you can see from the settings image below I have Qualification as the default value. I can not figure out what I am doing wrong.
User-added image

User-added image

I would appreciate any help, please. Thanks for your assistance.
Is there any way to detect which object got changed? For example, if I added a new record in Customer, a trigger should fire and return me the newly added field values. It should return to an APEX class?

The problem with trigger is that it is limited to one object. I want to create a global trigger type of something. It should fire anytime a new insert finishes on any object.
  • February 27, 2018
  • Like
  • 0
Hi Experts, 

Actually i want popupp messge alert when" a Case is opened for more than 48 hours for the Product Set Archer" now it is working. but what happen here while creating a new case at that time also i am getting popup message alert. please let me know how to avoid in visualforce page.


please see the my code
 
function displayAACNotification() 
        {   //alert('test'); 
            //alert('AAC function'+ {!Case.Number_of_hours_back_case_created__c}); 
            var caseHours = '{!Case.Number_of_hours_back_case_created__c}'; 
            var AAC = '{!Case.PL_Affected_Area_Category__c}'; 
            var AASC1 = '{!Case.PL_Affected_Area_Subcategory__c}'; 
            var AASC2 = '{!Case.PL_Affected_Area_Subcategory2__c}'; 
            Var AASD='{!Case.Affecte_Date__c}'; 
            var Type="{!Case.Type__c}"; 
            var cowner = '{!Case.OwnerId}'; 
            var recordtypeName='{!objRecordType.Name}'; 
            var PRODSET = '{!Case.PL_RSA_Product_Set__c}'; 
            var CDate = '{!Case.CreatedDate}'; 
            
            sforce.connection.sessionId = "{!$Api.Session_ID}";         
            console.log(sforce.connection.getUserInfo().userId); 
           var usrid = sforce.connection.getUserInfo().userId; 
              //alert(sforce.connection.getUserInfo().userId); 
             
             
                   
              if((recordtypeName=="Customer Support"  && usrid == cowner) && ((AAC == null || AAC =='') || (AASC1 == null || AASC1 == '')) && (Type == 'Technical Support' && PRODSET == 'Archer' && (AASD-CreatedDate)>2)))

            { 
                
                alert('Affected Area Category and Subcategory1 are required by the Case Owner when a Case is opened for more than 48 hours for the Product Set Archer. Please update the values before proceeding.');

            } 
        }



Thanks,
Chinnodu
Hi,
I am trying to display the opportunitycontactroles list on an object (Deal_Desk_Request__c) related to the opportunity.  I am not getting errors when saving the code, but nothing is appearing in the visualforce page other than the headers.  I am new to apex/visualforce development and not sure what I am doing wrong.  Can someone please help?

Here is the visualforce page:
<apex:page standardcontroller="deal_desk_request__c" extensions="dealdeskcontactrole" >
  <apex:pageblock >
      <apex:pageblocktable value="{!roles}" var="role">
          <apex:column headervalue="Contact" >
                      <apex:outputfield value="{!role.contactid}"/>
                      </apex:column>     
          <apex:column headervalue="Role" >
                      <apex:outputfield value="{!role.role}"/>
                      </apex:column>           
          <apex:column headervalue="Primary" >
                      <apex:outputfield value="{!role.isprimary}"/>
                      </apex:column>           


      </apex:pageblocktable>
  </apex:pageblock>
</apex:page>

Here is the extension class:
public with sharing class dealdeskcontactrole {
list<opportunitycontactrole> roles;
 public final Deal_Desk_Request__c DDR;
    public dealdeskcontactrole(ApexPages.StandardController controller) {
   
        this.DDR = (Deal_Desk_Request__c)controller.getRecord();
    }

    public list<opportunitycontactrole> getroles() {
        try{
        list<opportunitycontactrole> roles = [select id, contactID, Role, Isprimary from opportunitycontactrole where Opportunityid =: DDR.Opportunity__r.id];
         return roles;
        }
        catch(system.exception e){
        return null;
        }     
    }
   }

 
Hi team,

I have tried to design vf page to fetch list of accounts with pagination. Unable to pull account information .
vf page
<apex:page standardController="Account" recordSetVar="Accounts" extensions="PaginationAcc" lightningStylesheets="true" showHeader="false" sidebar="false" tabStyle="Account">
  <apex:form >
      <apex:pageBlock title="Accounts">
          <apex:pageBlockTable value="{!acList}" var="ac"  id="pgTaAcc">
              <apex:column width="10px">
                    <input type="radio" name="group1" />
                    <apex:actionSupport event="onclick" action="{!showContact}" ReRender="lab" >
                        <apex:param assignTo="{!accId}" name="accname" value="{!ac.id}"/>
                    </apex:actionSupport>
                </apex:column>
              <apex:column >
                 <apex:facet name="header">AccountName</apex:facet><apex:outputField value="{!ac.name}" />
              </apex:column>
              <apex:column >
                  <apex:facet name="header">Type</apex:facet><apex:outputField value="{!ac.Type}"/>
              </apex:column>
              <apex:column >
                  <apex:facet name="header">BillingCity</apex:facet><apex:outputField value="{!ac.BillingCity}"/>
              </apex:column>
              <apex:column >
                  <apex:facet name="header">BillingState</apex:facet><apex:outputField value="{!ac.BillingState}"/>
              </apex:column>
              <apex:column >
                  <apex:facet name="header">BillingCountry</apex:facet><apex:outputField value="{!ac.BillingCountry}"/>
              </apex:column>
          </apex:pageBlockTable>
          
          <apex:pageBlock id="lab">
              <apex:outputPanel rendered="{!conList.size == 0}">
                  <b>No records for this account</b>
              </apex:outputPanel>
              
              <apex:outputPanel rendered="{!conList.size != 0}">  
                  <apex:pageBlock title="Contacts">
                      <apex:pageBlockTable value="{!conList}" var="cn">
                          <apex:column >
                              <apex:facet name="header">First Name</apex:facet><apex:outputField value="{!cn.firstname}" />
                          </apex:column>
                          <apex:column >
                              <apex:facet name="header">Last Name</apex:facet><apex:outputField value="{!cn.lastname}" />
                          </apex:column>                      
                      <apex:column ><apex:facet name="header">Title</apex:facet><apex:inputField value="{!cn.Title}" /></apex:column>                                                                                           
                      <apex:column ><apex:facet name="header">Leadsource</apex:facet><apex:inputField value="{!cn.leadsource}"/></apex:column>                      
                      <b><apex:param name="em" value="{!eml}" assignTo="{!em}"/></b>
                  </apex:pageBlockTable>
                  </apex:pageBlock>
          </apex:outputPanel>          
          <apex:commandButton value="Save" action="{!save}" reRender="lan"/>          
          </apex:pageBlock>
          <apex:pageBlockButtons >
              <apex:commandButton value="First" action="{!first}"/> 
              <apex:commandButton value="Previous" action="{!previous}"/>
              <apex:commandButton value="Next" action="{!next}" reRender="pgTaAcc,lab" />
              <apex:commandButton value="Last" action="{!last}" reRender="pgTaAcc,lab"/> 
           <!-- <apex:outputText >{!(setcon.pageNumber * size)+1-size}   -    {!IF((setcon.pageNumber * size)>noOfRecords, noOfRecords,(setcon.pageNumber * size))} of {!noOfRecords}</apex:outputText> -->
          </apex:pageBlockButtons> 
      </apex:pageBlock>
  </apex:form>
</apex:page>

class
 
global class PaginationAcc {
    public PaginationAcc(ApexPages.StandardSetController setcon) { }    
    public List<Account> acList {get;set;}
    public List<Contact> conList {get;set;}   
    public string accId {get;set;}
    public string eml {get;set;}
    Public Integer noofRecords {get; set;}
    public integer size {get; set;}
    
    public Apexpages.standardsetController setcon{
        get{
            if(setCon == null){
                size = 10;
                String queryString = 'Select Name, Type, BillingCity, BillingState, BillingCountry from Account order by Name';
                setcon = new apexpages.standardsetController(Database.getquerylocator(queryString));
                setcon.setpagesize(size);
                noofRecords = setcon.getResultsize();
            }
            return setcon;
        }
         set;
    }
    Public list<Account> getAccounts(){
        list<Account> acclist = new list<Account>();
         for(Account ac : (list<Account>)setcon.getrecords()){
             acclist.add(ac);
         }
        return accList;
       
      
    }
   
    Public PageReference Refresh(){
       
        setcon=null;
        getAccounts();
        setcon.setpageNumber(1);
       
        return null;
    }
    
    public void showContact()
    {
        conList = new List<Contact>();
        for(contact c : [select id,firstname,lastname,Title,leadsource from contact where accountid =: accId])
        {
            conList.add(c);
        }      
    }
    
    public void save()
    {
        update conList;
    }
}
Thanks for advance
Hi,

I have one object (business__c), it has two fields(session__c and timing__c) and both the fields are dependent field.
The timing__c field depends on the session__c field.
So i have created a visulforce page to achieve some functionality but onchnge field on actionsupport is not working properly means when user is selecting "Second Slot" from session__c field and timing__c field automatically populated as"3hrs" but it is not displaying any record in table(pageblocktable).

Controller Class:
public with sharing class Business_class{
           
           public List<business__c> businessDetailslist{get;set;}
           public business__c businessDetails {get;set;}
           public string timingsession{get;set;}
           
      public Business_class(ApexPages.StandardController controller){
              
            businessDetails = new business__c();
            
     }

    public void searchBusinessDeatils(){     
            
            businessDetailslist = [Select session__c,timing__c,description__c from business__c where timing__c =:timingsession limit 1];
       }
            
      
     public List<SelectOption> getItems() {
       
        List<SelectOption> options = new List<SelectOption>();    
               if(businessDetails.session__c=='First Slot'){
                    options.add(new SelectOption('5hrs','5hrs'));
                    options.add(new SelectOption('7hrs','7hrs'));
                 }
              else if(businessDetails.session__c=='Second Slot'){
                    options.add(new SelectOption('3hrs','3hrs'));
                  }

         return options;
    }
  
    
   }
  

Visualforce Page:

<apex:page standardController="contact" extensions="Business_class" sidebar="false">
<apex:form id="frm1">
      <apex:actionFunction name="srchfun" reRender="section_1"/>
      
           <apex:pageBlock title="{!$Label.details}" id="pbid" rendered="{!ShowBlock==true}">\
               <apex:pagemessages id="msg"/>
               <apex:pageBlockSection columns="2" id="cmid">
                
                      <apex:pageBlockSectionItem id="sctnid1">
                           <apex:outputLabel value="{!$Label.Session_name}"></apex:outputLabel>
                           <apex:inputField value="{!businessdetails.session__c}">
                           <apex:actionSupport event="onchange"  rerender="serchdetails,timingdat" status="counterStatus"/>
                           </apex:inputField>
                       
                     </apex:pageBlockSectionItem>
                    
                     <apex:pageBlockSectionItem id="sctnid2">
                        <apex:outputlabel value="{!$Label.Timing_slot}" />
                        <apex:outputPanel id="timingdat">
                             <apex:actionRegion >
                                <apex:selectList value="{!timingsession}" size="1" >
                                  <apex:selectOptions value="{!Items}"/>
                                  <apex:actionSupport event="onchange" rerender="serchdetails" status="counterStatus"  action="{!searchBusinessDeatils}"/>                                 
                               </apex:selectList>
                             </apex:actionRegion>
                       </apex:outputPanel>
                     </apex:pageBlockSectionItem>   
               </apex:pageBlockSection>
      
            <br/>
        <apex:outputPanel id="serchdetails">
          <apex:pageBlockTable value="{!businessDetailslist}" var="bdrt" id="istable" columns="3" >
                <apex:column headerValue="{!$Label.Session_name}">
                    <apex:outputField value="{!bdrt.session__c }"/>
                </apex:column>
                <apex:column headerValue="{!$Label.Timing_slot}">
                    <apex:outputField value="{!bdrt.timing__c}"/>
                </apex:column>
                <apex:column headerValue="{!$Label.Description}">
                    <apex:outputField value="{!bdrt.description__c}"/>
                </apex:column>
            </apex:pageBlockTable>
        </apex:outputPanel>
        </apex:pageBlock>
        
</apex:form>
</apex:page>
              


Can any help me on this.

Thanks in adv.

hello hai

which creating a lead if there is already a contact which the same email id then the information should be captured on the contact fields and record should not exist.

sole this forved
Hello Guys,

When i change opportunity status to “closed one” for selected opportunities, On click of save it will update opportunity status as well as Account status as well.
Please tell me how to achieve this.

Thanks in Advance,
Deepu
 
I am stuck on a challenge about creating an account with a related contact. Do I have to make the contact for another account first and then relate it to a different account? I am lost
I have faced the below errors:

[{"message":"Cannot deserialize instance of date from VALUE_STRING value Sun Dec 30 00:00:00 IST 2012 or request may be missing a required field at [line:4, column:33]","errorCode":"JSON_PARSER_ERROR"}]

[{"message":"Cannot deserialize instance of date from VALUE_STRING value 01/02/1993 or request may be missing a required field at [line:3, column:23]","errorCode":"JSON_PARSER_ERROR"}]
Hi Team,

I have amount__c in both contact and account . if account has many contacts  and i need to update highest amount of contacts and update that into account amount field ?

Ex : ABC account   Amount__c  =

       Contact1 :  T -- Amount__c = 500$
       Contact2 :  A -- Amount__c = 700$
       Contact3 :  B -- Amount__c =300$

now account amount__c need to update with 700$ . how can i acheive it using trigger