• Rakesh Kumar 335
  • NEWBIE
  • 40 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 18
    Replies
Is there an easy way to find out how many records in a custom object have Notes and attachments in them?
I schedule a data export report, but that did not work. I'm working with Salesforce support.
Meanwhile, want to find out if there is a way to find out how many records have attachments.
 
This record does not meet the entry criteria or initial submitters of any active approval processes. Please contact your administrator for assistance. 
I don't see any approval processes.
Not sure if i'm checking at the right place.
I guess it's standard button
I get the following error when downloading salesforce project to eclipse
"Could not find https://developer.salesforce.com/media/force-ide/eclipse45"
"Unable to connect to repository https://developer.salesforce.com/media/force-ide/eclipse45/compositeContent.xml
Unable to connect to repository https://developer.salesforce.com/media/force-ide/eclipse45/compositeContent.xml
Connection timed out: connect"

My salesforce credentials are 100% correct.
Eclipse Version: Oxygen Release (4.7.0)
Build id: 20170620-1800
Any help? Could you please provide step by step instructions please..
Thanks
IDE Eclipse
"Time zone zip code" & "Property state"  are two fields on Lead object.
I need a workflow to populate "Time zone zip code" field with a value(defined by business) based on the "Property state" picklist value(Screenshot attached)
Example: If "Property state" has a picklist value = CA, then "Time zone zip code" filed should be equal to "94544"
NOTE THAT "Time zone zip code" CANNOT BE A FORMULA DUE TO SOME REASONS.
Business has defined 51 default values for 51 states, example: For NC, the valule should 28211. For TX, the value should be "73301"
How do i achieve this without using a formula field? can some one help please? i'm a beginner
workflow needed
"Customer State" is a field on lead object. The picklist values are CA, NJ,DC, AZ,IL, etc
The requirement is, if CA is selected, 'zipcode' field on lead should have a value '94544'. Similarly if 'NJ' is selected 07102 an so on.
How do i do this? workflow or formula or any easier way?
There are two buttons on lead. 1.Convert, 2. Do not send
Clicking on convert opens a visual force page, while do not send is a java script button.
The requirement is, when either of these buttons are pressed a validation need to fire if the picklist value is selected as "unknown" for the field "cx interested?" on lead.  This field has 3 picklist values: Yes/No/unknown. The validation should fire only when the value is selected as "Unknow"
Now pls tell me what changes i need to make in visual force page and java script button.
Thanks
After convert button is pressed on lead, a visual force page fires.
I want a validation on this conversion vf  page & it should only fire when the value is 'unknown' on the below field.
Field: "Cx interested?" - values 'yes' or 'no' or 'unknown' on lead
Pls help
 
Error:-
|System.QueryException: unexpected token: 'null'


i am getting this error in myclass when i not selected any field
i need to this is dynamically hoe can i do that 

my query like:-

select ID,P_Edition__c,p_Opprotuny_name__c,P_Opportunity_ID__c,P_Stage__c,P_Banner__c,null from opportunitylineitem where P_Edition__c = 'Adipec 2018'

how can avoid that if any time i skeep that field and run the class did not get this error please help me
This record does not meet the entry criteria or initial submitters of any active approval processes. Please contact your administrator for assistance. 
I don't see any approval processes.
Not sure if i'm checking at the right place.
I guess it's standard button
I get the following error when downloading salesforce project to eclipse
"Could not find https://developer.salesforce.com/media/force-ide/eclipse45"
"Unable to connect to repository https://developer.salesforce.com/media/force-ide/eclipse45/compositeContent.xml
Unable to connect to repository https://developer.salesforce.com/media/force-ide/eclipse45/compositeContent.xml
Connection timed out: connect"

My salesforce credentials are 100% correct.
Eclipse Version: Oxygen Release (4.7.0)
Build id: 20170620-1800
Any help? Could you please provide step by step instructions please..
Thanks
IDE Eclipse
"Time zone zip code" & "Property state"  are two fields on Lead object.
I need a workflow to populate "Time zone zip code" field with a value(defined by business) based on the "Property state" picklist value(Screenshot attached)
Example: If "Property state" has a picklist value = CA, then "Time zone zip code" filed should be equal to "94544"
NOTE THAT "Time zone zip code" CANNOT BE A FORMULA DUE TO SOME REASONS.
Business has defined 51 default values for 51 states, example: For NC, the valule should 28211. For TX, the value should be "73301"
How do i achieve this without using a formula field? can some one help please? i'm a beginner
workflow needed
"Customer State" is a field on lead object. The picklist values are CA, NJ,DC, AZ,IL, etc
The requirement is, if CA is selected, 'zipcode' field on lead should have a value '94544'. Similarly if 'NJ' is selected 07102 an so on.
How do i do this? workflow or formula or any easier way?
After convert button is pressed on lead, a visual force page fires.
I want a validation on this conversion vf  page & it should only fire when the value is 'unknown' on the below field.
Field: "Cx interested?" - values 'yes' or 'no' or 'unknown' on lead
Pls help
 
I am trying to build a simple page to display the Opportunity and associated Line Items. I am getting this error which doesn't make sense because I am including OpportunityId in the OLI query. 

My extension:
public class PrintContract {
    
    private final Opportunity opp;

    public PrintContract(ApexPages.StandardController stdController) {
            stdController.addFields(new String[]{
            'Id',
            'LinkContacttoOpportunity__c',
            'Name',
            'CloseDate',
            'Contract__c',
            'Type',
            'Age__c',
            'Amount',
            'EXW_Expiration_Date__c',
            'EXW_Effective_Date__c'
        });    
        
        //    get current opportunity record
        this.opp = (Opportunity)stdController.getRecord();
    }
        public List<OpportunityLineItem> oli {get;set;}

        public void olis(){
        oli = new List<OpportunityLineItem>([SELECT Id, TotalPrice, Class__c, ServiceDate, OpportunityId, Quantity, Contract__c, Is_Accessory__c, Serial_Number__c
                    FROM OpportunityLineItem 
                       WHERE OpportunityId = :opp.ID]);
           }
}

My Page:
<apex:page standardController="Opportunity" extensions="PrintContract" action="{!olis}">
    <apex:pageBlock rendered="{!Opportunity.HasOpportunityLineItem = TRUE}">
        <apex:pageBlockTable value="{!oli}" var="ol">
            <apex:column headerValue="Plan Number" value="{!ol.Contract__c}" />
            <apex:column headerValue="Serial Number" value="{!ol.Serial_Number__c}" />
            <apex:column headerValue="Purchase Date" value="{!ol.ServiceDate}" />
            <apex:column headerValue="Plan Type" value="{!ol.Opportunity.Type}" />
            <apex:column headerValue="Plan Effective Date" value="{!ol.Opportunity.EXW_Effective_Date__c}" />
            <apex:column headerValue="Plan Expiration Date" value="{!ol.Opportunity.EXW_Expiration_Date__c}" />
            <apex:column headerValue="Plan Cost" value="{!ol.TotalPrice}" />

        </apex:pageBlockTable>
    
    </apex:pageBlock>
</apex:page>
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.
Hello,

I am following a simple sample from https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_extension.htm

My code looks like this:
public with sharing class LeadController
{
	private final Lead ldObj;
	//public Lead ldObj{get;set;}
	
	public LeadController(ApexPages.StandardController controller)
	{
		//Fetching the Current Lead Record
		this.ldObj = (Lead)controller.getRecord();
	}
	
	public Component.Apex.SectionHeader getoutPanel() 
	{
		date dueDate = date.newInstance(2011, 7, 4);
		
		boolean overdue = date.today().daysBetween(dueDate) < 0;
		
		Component.Apex.SectionHeader sectionHeader = new Component.Apex.SectionHeader();
		
		if (overdue) 
		{
			sectionHeader.title = 'This Form Was Due On ' + dueDate.format() + '!' + ldObj.FirstName;
			return sectionHeader;
		}
		else
		{
			sectionHeader.title = 'Form Submission';
			return sectionHeader;
		}
	}
}

When I run this, I get the following error:

Content cannot be displayed: SObject row was retrieved via SOQL without querying the requested field: Lead.FirstName

Can anyone please assist me with this?

Thank you in advance.....