All Questions

Filter by
Sorted by
Tagged with
-1
votes
2answers
625 views

Is it possible to use map value in soql condition? [closed]

I need to perform soql query on the basis of value present in map.Can i do it?? If yes, please tell me how ?
-1
votes
1answer
160 views

System.NullPointerException: Attempt to de-reference a null object

List<AggregateResult> List1 = [select SUM(DScore__c), SUM(PScore__c), SUM(NScore__c) from Employee__c where Account =: currentRecordId]; if(List1.size() > 0) { double D = Double....
-1
votes
1answer
51 views

How to access reports from another [closed]

unaccept Salesforce provides a rich collection of standard report types that you can tailor to your unique requirements. Account and Contact Reports Use account and contact reports to learn about ...
-1
votes
2answers
46 views

Error on : Initial term of field expression must be a concrete SObject: List

While using Map ,I have declared Like this; Map<String, List<order>> offerRuleMap = new Map<String, List<order>>(); list<Order> orders = [SELECT Id, Status, ...
-1
votes
1answer
247 views

How to increase code coverage in test class for apex page message

How do I increase code coverage on the ApexPages (noted after the catch exception)? public pagereference savesamp() { try{ upsert samObj; }Catch(Exception ex) { ApexPages.Message ...
-1
votes
1answer
166 views

Redirect back to original visualforce page

I have created a custom page for an object client. The client object is having relationship with contact object. For this a custom lookup window has been designed with a new button for creating new ...
-1
votes
1answer
1k views

What is the Process Builder equivalent of: “Evaluate the rule when a record is created, and any time it's edited to subsequently meet criteria”

I am have a workflow rule which updates the field on quote and creates task 3 Days Before Quote Expiration Date.I have to move this rule to Process Builder and I can only see two evaluation criteria ...
-1
votes
1answer
48 views

I want to see dialogue box in the salesforce

<apex:page standardStylesheets="false" sidebar="false" showheader="false"> <apex:stylesheet value="{!$Resource.script1}"/> <apex:stylesheet value="{!$Resource.script2}"/> ...
-1
votes
1answer
288 views

Visual flow Lookup from contact page

I am new to Visual workflow i create a javascript button in contact page which on click redirects to a flow which should dynamically pull that contact information from contact page and display in the ...
-1
votes
1answer
145 views

Lightning components not loading in a new org

I recently migrated my lightning components to a newly created org. But the lightning components are not loaded in the newly created org. Has anyone experienced similar issue?
-1
votes
2answers
3k views

how to insert parent/child records simultaneously [duplicate]

I have a trigger that I want to insert parent (invoice) and child records (invoice lines) when an order reaches a status of complete. I have the bulk of the code written, but how can I grab the ...
-1
votes
1answer
1k views

web to case not working

I am trying to implement the web to lead functionality. But for whatever reasons, the leads are not getting inserted into salesforce. Any thoughts?? Thanks in advance,
-1
votes
1answer
696 views

Put a counter in batch apex class

I have a batch class in which i need to put a counter to count all the records that are processed successfully. My code is as follows: global class BatchUpdate implements Database.Batchable<...
-1
votes
1answer
66 views

how to update field the following trigger and what is the meaning of that error [closed]

trigger CTC_Update on Appraisal__c (before insert) { List<appointment__c> AppList = New List<appointment__c>(); Set<Id> AppointIds = New Set<Id>(); For(...
-1
votes
1answer
290 views

AMPScript in Subject Line Comes Up Empty

I have an email with some AMPScript in to to populate a section with the contents of a RSS feed. I wanted the subject line to automatically list the top article in the RSS feed. I added the ...
-1
votes
1answer
109 views

User specific Validation rule [duplicate]

I am attempting to create following rule: if Utiltiy (look up field) = abc then ONLY allow certain users to edit these date fields date field1 and date field2. Following rule doesnt work..... *...
-1
votes
1answer
272 views

How to Insert data in to Junction Object?

I have Below VF page with multiple lookup Fields and i want to Insert data from VF page to a Junction Object. when i am trying to save data it is showing me error.kindly correct me where i am doing ...
-1
votes
2answers
64 views

Trigger is not working properly

i have created the below trigger which will help in updating the opportunity amount if there is any change in the amount of the child record platform__c but i want to put the sum of closed won ...
-1
votes
1answer
55 views

Override field data type

Hi I want change standard field. For example in opportunity - Probability field data type is percentage but I want change the data type to pick list so I can add some pick list values in probability ...
-1
votes
1answer
1k views

call HTTpRequest in test class

public with sharing class uu{ static c constant =c.getInstance('chjstant'); public static HTTpRequest genequest( String EndPointUrl,String Method,Map<String,String>headerMap,String body ){ ...
-1
votes
2answers
953 views

how to call a VF page from another VF page using button?

This is VF page: Here I need to save 1 account record as well call another VF page <apex:page standardController="Account" extensions="displayRecordsInSF1Extension1" showHeader="false"> <...
-1
votes
1answer
49 views

Batch apex email query

Leads that are older than 1 month with Approval Status ‘Rejected’ should be emailed in the form of an ‘excel file’ to the System Administrator predefined in custom setting and should then be deleted ...
-1
votes
1answer
167 views

I am getting an error, how to resolve it?

I am getting an error on my signup page: The Data Extension name for a LookupRows function call is invalid. A Data Extension of this name does not exist. Data Extension Name: LinksByBrand Function ...
-1
votes
1answer
495 views

Apex:pageMessages Only Displaying First Error on Visualforce Page

I have a visualforce page in which I have set many inputFields as required. When I click save and if no values have been entered for the required fields i do receive an error message Error: You ...
-1
votes
2answers
67 views

Generic send reports through API?

I do not see an endpoint to retrieve the generic send reports through the API. I just want a quick way to get generic send summaries by account? For example either just a total send and delivered ...
-1
votes
1answer
100 views

System.NullPointerException: Attempt to de-reference a null object in a class

Can any one help me out with this error System.NullPointerException: Attempt to de-reference a null object Class.CampaignMemberFunctions.UpdateNewToEnterpriseDB: line 12, column 1 Class....
-1
votes
2answers
33 views

Some of the campaigns of account not showing to the user

I am facing an issue that, some of the campaigns in an account is not visible to the user. User is able to see few campaigns of the same account. Not sure how to proceed in this issue. Help needed.
-1
votes
1answer
28 views

how can I save a record by inserting values from a new window?

This is my visual force page: <apex:page Controller="saveRecordFromWindow" id="page"> <script> function openWindow() { var myWindow = window.open( "myWindow", "width=...
-1
votes
1answer
62 views

Task api open activity change status

hi I am beginer with Sales Force . Please dont judge me strictly . I am trying to create trigger for customer object . Initial data: custom object with field: status type pickup list "maintanace ...
-1
votes
2answers
463 views

Issue with Merge fields when I send email through trigger

Hi Can you please debug and fix this trigger. When I send a mail through trigger merge fields are not picking automatically. Its showing empty. trigger SendEmailNotificationtoCandidate on ...
-1
votes
1answer
35 views

Validation Rules when Clicking in a New Object

I would like to create a validation rule that does not allow me to create a new object inside of a lead unless I have certain fields fulfilled. Could you please help me with code? Thanks
-1
votes
1answer
365 views

How to Remove default rich-tabhdr-side-border in tab panel in visualforce page

I'm using Tab panel in my page and using two tabs. All functions are working properly, lightly design issue came in the apex:tabpanel. <apex:page standardController="Account" showHeader="false">...
-1
votes
1answer
339 views

Salesforce Trigger to Count the Contact Roles on an Opportunity

I am checking this link and trying to use the below snippet: /****************************************************************** *Count Contact_Role_Count Field through map size *****...
-1
votes
2answers
805 views

Passing null value when pass parameter using action function..Please help

<apex:actionFunction name="hitMe" action="{!iWantMyJSValues}"> <apex:param name="one" value="" assignTo="{!valueOne}" /> //passsing null value here </apex:actionFunction> $(...
-1
votes
1answer
158 views

Issue in upserting child object with master external id [duplicate]

I have one custom object named Class__c, which has one master relationship with another custom object named Plan__c. I have Class.csv files which contains classes objects. This csv file also has ...
-1
votes
2answers
52 views

I am getting this error on obj.contentdocumentid ='Value'. Please help [closed]

System.DmlException: Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: []
-1
votes
1answer
150 views

Is it mandatory a test class for a trigger when we deploy things into production..?

I am trying to upload my application package for another org. That application has some triggers and it showing an error while uploading. can anyone help me out in this problem
-1
votes
1answer
156 views

Enterprise Edition Force.com Site: How to use custom objects and logic to authenticate Guest Site Users without paying license costs for them?

Someone with Enterprise Edition and a public-facing Force.com Site recently asked How would a developer use custom objects and logic to authenticate Guest Site Users without paying license costs for ...
-1
votes
1answer
63 views

Custom button cloning issue

I have logic on my controller that it should clone few fields only. I want to clone only those fields that are not in cloneaccount custom settings. below controller clones everything. Also, we have ...
-1
votes
3answers
39 views

Doubt on Lookup relationship

I have lookup relationship between Account and COntact. In contact trigger I am querying Account field named as Region and storing it in MAP. In contact trigger I have added condition, based on ...
-1
votes
1answer
158 views

Using startsWith Method

I have a method has list of string which is called getMapField: public static Map<String,String> getMapField(){ Map<String,String> tmp = new Map<String,String>(); //From ...
-1
votes
2answers
776 views

How to clone a record in standard Opportunity object with its related list

I have created a apex class to clone a record with its related list. The record is cloned with related list but I am facing some issue. Those are: 1)after the click of clone button the record is ...
-1
votes
1answer
4k views

Unable to cover Test class on Approval process. 69% covered only

public with sharing class T_ApprovalUnderConditionClass { public string comments{get;set;} public Opportunity oppty {get;set;} private string id; private List<Id> prosInsIds = new List<Id>(...
-1
votes
1answer
281 views

90-Day Non Engaged Query

I am trying to create a query based on people who have not opened an email in the past 90 days. The Error Being Received: A problem occurred creating your query definition. Please contact ...
-1
votes
1answer
160 views

How to mass update sales price for specific opportunities?

Trying to mass update sales price for a bunch of our opportunities. Any guidance on how best to get this done? Thx
-1
votes
1answer
440 views

Query: Building a Group based on Date Email Added/Created

I'm looking to build a list segment based on people who joined my list in the past 30 days. However, when I try to check the syntax on the query below, ExactTarget gives me the following error message:...
-1
votes
1answer
407 views

How to prevent postback in VF page?

On click of a button, I want to prevent postback so that the page does not refresh. I tried with below but doesn't prevent from postback. Any help? <div> <button type="button" onclick="...
-1
votes
1answer
536 views

TestClass code coverage of search and edit method

I am writing a test class for my controller but don't know how to write a test method for search,edit and cancel methods. If any one can help me i wil appreciate that Apex Controller public with ...
-1
votes
1answer
67 views

Need to capture the return value of global class using tooling api

I am calling global function defined in my salesforce org using the tooling api /services/data/v35.0/tooling/executeAnonymous/?anonymousBody= in python and that global class is actually returning a ...
-1
votes
1answer
581 views

upload the document to notes and attachments using php toolkit salesforce

I am trying to do the integration using PHP Toolkit and creating a record in salesforce (Custom Object).I am having an issue Example :Let's say i have a candidate applying for the job .The Applicant ...

15 30 50 per page