• Krishna Sambaraju
  • SMARTIE
  • 1652 Points
  • Member since 2014

  • Chatter
    Feed
  • 48
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 345
    Replies
Hi i need to show in opportunity fiekd that will contain what are the changes done in task ,event,log call those data updated  in opportunity field text area.
I have an Approval_Status__c field on the Opportunity. When a related OpportunityLineItem.UnitPrice is below the List Price I need this to update to 'Needs Approval'. If the Unit Price is above the List Price then the Approval_Status__c field should be null. 
Can anyone give me some help with wrighting a trigger for this?
I am trying to complete the Apex Specialist super badge and getting the following error. Challenge is not yet complete...here is what's wrong. The Case object has not been renamed to 'Maintenance Request', although I have renamed the Case tab to Maintenance Request. Here are the screenshots of the error and the Rename Tabs and labels screen.
Super Badge - Challenge Not Complete Error

Rename Tabs and Labels - Screen

Can any one tell me why I am getting the above error?

Regards,
Krishna.
hello guys,
i am trying to add multiple row in multiple product they are show releted product row but i m select single product so they are showing multiple row solve it ...
Hi

I have list  of emails and related checkboxes in vf page my question is i want to send emails based on what i checked in check box after that i click on vf page button it will be send emails.but I am facing some problems how to call apex method from java script or any suggestions fro this  ?
Hi all,

I have a command button on a Visualforce page and upon click the URL should open in an iFrame i.e. a web page inside an iFrame 

Idea is to display 'Button' on VF page and below that iFrame (both in VF page) and upon clicking the button it opens the URL/web page in an iFrame..

My development expertise are very limited and I've been researching and learning how to do things, but here is my code I am working.. please can you help me resolve the issue or with the correct code..?

<apex:page sidebar="False">

<apex:form >
  <apex:commandButton onclick="toGoogle();" value="Google"/>
 </apex:form>
 
  <script>
   function toGoogle() {

        redirectTo('http://www.google.com');
    }

   
    function redirectTo(target) {

        if (inIframe()) {
           // step out of an iframe (if opened via iframe)
            window.top.location.href = target;
            return false;
        } else {
          window.location.href = target;
        }
    }

    function inIframe() {
        try {
            return window.self !== window.top;
        } catch (e) {
            return true;
        }
    }
  </script> -->

</apex:page>

Thanks in advance.

Swapnil 
HI,

I want to copy one custom fields value to another custom fileds with a suffix value.For example
Code = 65892001
I want to put one A before this number and save it to another filed.(Like New code = A65892001).Is it possible??
Hi All,

I am facing diificulty to pass selected checkboxes values from groupWrapper which contains 3 lists as below. I am displaying details on VF page such as product rows for each ShipTo are grouped, then tax records are grouped for each product row detail. Basically 1 ShipTo has Mutliple Product rows and each product may have more than one Tax row details. Since these are nested under multiple tables, I have created 3 individual checkboxes but unable to capture these selected rows into controller. Please help me with suggestions

/* wrapper class to hold ShipTo, Related Products and Taxes details */
    @TestVisible public class InvoiceWrapper
    {
        public Invoice__c shipToLst {get; set;}
        public List<Invoice__c> productLst {get; set;}  
        public List<Tax__c> taxLst {get; set;}
        public Boolean shipToSelected {get; set;}
        public Boolean prodSelected {get; set;}
        public Boolean taxSelected {get; set;}
        
        public InvoiceWrapper()
        {
            shipToSelected = false;
            prodSelected = false;
            taxSelected = false;
        }
    }

/* Invoked when selected row is invoked , here only shipToSelected under wrapper list is captured. Other 2 boolean variables are recorded as False even though they are checked */
public PageReference getSelected(){
    
        for(InvoiceWrapper invwrapper : invoiceWrapperLst){
        
            system.debug('***:'+invwrapper.shipToSelected);
            system.debug('***:'+invwrapper.prodSelected);
            system.debug('***:'+invwrapper.taxSelected);
            
            selectedRows.clear();
            if(invwrapper.shipToSelected == true)   
                selectedRows.add(invwrapper.shipToLst);
        }
        system.debug('***:'+selectedRows);
        return null;
    }
<apex:page controller="theController" action="{!autoRun}">
<apex:form >
<apex:tabPanel id="tabPanel" selectedTab="{!selectedTab}">
  <apex:tab title="Education Details" label="Education Details" id="tab1" disabled="{!istab1disabled}">
  
  <apex:pageBlock title="" mode="edit">
 <apex:pageBlockSection title="Education Details">
 <apex:inputField value="{!employee.Employee_name__c}"></apex:inputField>  
 <apex:outputLabel value="Collegename:">
    

      <apex:selectList size="1" >

            <apex:selectOptions value="{!statusOptions}"/>
        </apex:selectList>
        </apex:outputLabel>
        
        
        
         <apex:outputLabel value="Education_details:">
    

      <apex:selectList size="1" value="{!SelectValue}">

            <apex:selectOptions value="{!statusOptions2}"/>
        </apex:selectList>
        </apex:outputLabel>
        
       
        
        
     </apex:pageBlockSection> 
  
  
  <apex:pageBlockButtons id="contentLoading">
    <apex:commandButton value="Next" action="{!enabletab2}" rerender="tabPanel"/>
    </apex:pageBlockButtons>
     </apex:pageBlock>
  </apex:tab>
  <apex:tab title="Employeement Details" label="Employee Details" id="tab2" disabled="{!istab2disabled}">
      
      <apex:pageBlock >
      <apex:pageBlockSection title="Employee Details">
      <apex:inputField value="{!employee.Department_name__c}"></apex:inputField> 
        
         <apex:outputLabel value="Position:">
    

      <apex:selectList size="1" value="{!SelectValue}">

            <apex:selectOptions value="{!statusOptions3}"/>
        </apex:selectList>
        </apex:outputLabel>
        </apex:pageBlockSection>
   <apex:pageBlockButtons id="contentLoading">

    <apex:commandButton value="Previous" action="{!enabletab1}" rerender="tabPanel" />
     <apex:commandButton value="Save" action="{!addemployeedetails}" />
     </apex:pageBlockButtons>
     
      </apex:pageBlock>
  </apex:tab>
</apex:tabPanel>
</apex:form>
</apex:page>



I am new to salesforce here is my apex code how to create an controller and insert this values
Hi,  
This is the request part of Webservice Api.
curl -v -u user@yourcompany.com:test -F "attachments[]=@/path/to/attachment1.ext" -F "attachments[]=@/path/to/attachment2.ext" -F "email=example@example.com" -F "subject=Title" -F "description=this is a sample" -X POST 'https://domain.test.com/api'
 I want to use this request in Apex class. How can i use it? Please suggest.  
Thanks,
Geeta Garg
I am running below SOQL in Developer Console and its working fine -
SELECT MSRE_Contact__r.name, MSRE_Contact__r.MSRE_Company__c, MSRE_Contact__r.MSRE_Contact_Title__c, MSRE_Investor__r.name, MSRE_Investor__r.Parent.Name, MSRE_Investment__c, MSRE_Investment__r.Product2.name, MSRE_Contact_Relationship__c, MSRE_Distribution__c, MSRE_Quarterly__c, MSRE_Legal__c, MSRE_Tax__c, Webcast__c, MSRE_Annual_Meeting__c, MSRE_Adv_Committee__c, CreatedDate, LastModifiedDate, lastModifiedBy.Name, IsDeleted FROM MSRE_Correspondence__c

Now same query if I am using in Apex calss below error coming -
System.SObjectException: SObject row was retrieved via SOQL without querying the requested field. Asset.Name

Here Product2 is lookup in Investment(Asset). Why its working in Developer Console and not in Apex? Any help would be appreciated.
Hi

We are new to the salesforce and we are implementing to integrate our app data to salesforce.And we are in confuse to work with SOAP API or REST API which is better because when we try to work with Rest API we are succesed in creating an Account, Lead but when we try to convert a lead to account but we failed.And also we read few post reagarding Rest Api saying that Rest Api doesnot support lead conversion is it right?
If it support lead conversion would you please let us know how to work on it using httpwebrequest.

And also let us know which Api is the best one to work with salesforce to integrate to our App.

Regards
Vinod