0
votes
0answers
4 views

Display records in an excel sheet

I have two objects : 1. Assigned_Task__c object 2. Migration_Report__C object 1 is parent of 2 I have a custom button on Assigned Task object call Generate Migration List My requirement is when i ...
0
votes
0answers
5 views

Test class for http callouts

I need to cover my class code. I have http callouts in it. Any lead how to do that? I've searched in the internet and found that httpcalloutmock help to test the http's request. Any example please?! ...
0
votes
0answers
5 views

System.EmailException: INVALID_CROSS_REFERENCE_KEY, invalid cross reference id : using Event in WhatID of singlemailmessage method of salesforce

I am trying to send email to Contact through Apex class with SingleEmailMessage for Event assigned/updated for him, so used: SetWhatID = Event.id; It is failing to send email with below exception: ...
0
votes
0answers
6 views

Custom Button not working on Visualforce Page

I created a Visualforce page to override the standard case view page. I have a custom button "OnlineClosed" on case object that ask for a remark and update 2 field status and stage at case object. The ...
1
vote
0answers
3 views

Notification Mail based on Storage Usage in salesforce

Have one question that is it possible in production to send notification mail or generate task whenever usage storage is crossed the 80%. Can i need to write a class for that or any standard ...
0
votes
0answers
3 views

Using Git, Bitcucket with Egit plugin

We have started using Git and Bitbucket as our version controling system. Also we are using Egit plugin as the GUI for git. We created a team in bitbucket, added our developers in to it and start ...
0
votes
0answers
7 views

Using apex:Component within Angular Repeat

I have done a VF Page which pulls data through RemoteAction Methods and display it. On clicking the row ,jumptron should display its related information whose logic resides in a apex:component. All ...
0
votes
2answers
13 views

How to whether a user has been assigned a role or not?

I need to know the list of users who have not been assigned any role. Can any one please provide the query to know that ? Thanks in advance .. !!
0
votes
3answers
22 views

Finding Opportunities from a List of Accounts

I am given a list which has 1000 accounts. I am asked to find opportunities between stage0-5 that are present on these 1000 accounts. I should differentiate these 1000 accounts into 2 ways. ...
0
votes
1answer
11 views

Using Trigger, how to post in chatter and @mention only a selective contacts list

I need to post in chatter and @ mention to a selective contacts list based on specific criteria that is selected by the logged in user, when creating a specific record. (for example, corporate wants ...
0
votes
1answer
14 views

how to know whether a custom link is being used in a sandbox or not?

I need to delete a custom link which is a home custom link. But i am not sure that it is being used or not . Please provide me a solution.
1
vote
1answer
10 views

Finding the current RecordType name selected by user

Updated code to give you more context of what I'm doing. trigger vendorTrigger on vendor__c (after insert, after update) { vendorController vencont = new vendorController(); ...
1
vote
1answer
15 views

Add contact to existing User

We're building out some functionality revolving around portal/community users which will partially rely on them being associated with a contact (we have a custom object that looks up to contact). The ...
0
votes
0answers
4 views

Case Comment Automation, without Apex - FLow + Process Builder

I'm trying to create a case comment from Flow, but I'm having some issues. After many errors, I've broken it down to some simple input screens to debug. 1) Screen - Enter Case ID field, Test Case ...
2
votes
1answer
18 views

Is there a guaranteed execution order of rerender and oncomplete

I am trying with actionFunction's rerender and oncomplete. During my testing, it seems to me that rerender happens before the execution oncomplete method. But is that a guaranteed thing? I don't see ...
1
vote
1answer
15 views

URL Hack functionality within Salesforce1

I have a fun one. Salesforce1 users need an SF1 action button to: Create a new case with its standard and custom lookup fields auto-populated from lookup fields associated from the custom object. ...
5
votes
2answers
62 views

Salesforce API vs. APEX webservice performance

We currently have a .NET application that retrieves/updates data in Salesforce using the API. We are encountering long processing time where the session can time out as well as a bad user experience. ...
1
vote
0answers
6 views

Putting a form in a component, problems with submitting form

I have a component which I am trying to have a form submit. The form is handled by a managed controller in a managed package (which is a third party's). The component does not otherwise have code ...
0
votes
1answer
23 views

Better way to bulkify trigger

The trigger below works but I would like to know what I can do to avoid the query in the for loop. trigger eOneAutoCreateProductResponse on Product_Configuration__c (after insert) { ...
3
votes
3answers
37 views

Reset the current form without reloading page?

In our scenario, we have a form of several apex:inputfield elements and some other input fields. So they have a default value coming from database. We have implemented a cancel button which currently ...
0
votes
2answers
23 views

Populate Parent Data in Visualforce

I have overridden the New action for a custom object which will take me to a Visualforce. It works well until there. So now my custom object has a lookup relationship to Account. So when trying to ...
3
votes
3answers
39 views

Getting dynamic Record Type name/id

Is there a way I can find out what recordType the user have selected? I have put together the apex code : private String getRecordTypeSelectedId(String recordTypeName) { String rtId; ...
1
vote
1answer
20 views

Query for Closed Lost Oppurtunities

Is there any way I could get a query pulled of Closed-Lost opportunities, with reason lost being “competitive advantage”?
0
votes
1answer
9 views

Ctrl button on variable and function to go to their definition in Force IDE

Like in java , how we can locate the declaration of variable and definition of function by using CNTRL button. Is there any way to do this Force IDE. It will be very easier to identify the function ...
1
vote
2answers
18 views

'Use Case Feed' option on developer org

I setup a developer org to test Case Feeds. When I try and edit a profile, I cannot see the 'Use Case Feed' option under General Permissions. How can I get access to that permission?
0
votes
2answers
23 views

Copying Account Address to Contact Address

I am trying copy the address from account to contact after updating. But after update the address in contact is still the same. I could not figure out why. Any insights would be appreciated. trigger ...
-1
votes
0answers
14 views

How can I create a query to OrderItem based on Orders?

I have this query: SELECT Id, OrderId FROM OrderItem WHERE OrderId IN :idsOrder where idsOrder is a List<Id> of the Order type, but it doesn't return anything Does anyone know what might be ...
0
votes
2answers
15 views

Apex Trigger or Workflow Rules for Formula field that uses info from child object

I have ParentObject__c that has ChildObject__c, and there's a field Payment__c on ParentObject that gets updated in several different ways based on the values in both ParentPicklist__c on ParentObject ...
7
votes
0answers
36 views

Does the Summer ’15 release remove the ability to set test logging levels with the DebuggingHeader?

The Summer ’15 release notes have a section called Receive Debug Logs Predictably. It currently states that the order of precedence for debug logs will be: Trace flags set in the Developer ...
3
votes
1answer
20 views

How Checkmarx works

Can someone please advise how Checkmarx/ Force.com Security Source Scanner will be performing code review Is code review happening within Salesforce servers or code get ported to Checkmarx server ...
1
vote
1answer
30 views

Why I am Getting an error when i run this test class..?

Error Message System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, TargetX_Eventsb.preInsertOrgEvent: execution of BeforeInsert caused by: ...
5
votes
1answer
23 views

Account lookup on Opportunity not filtered correctly from Visualforce page

Visualforce Our organization uses a Visualforce page to override the New Opportunity action. Below is a functional sample of the Visualforce page that specifies the Account lookup field and ...
1
vote
1answer
29 views

How to catch custom exception in a test that causes a DML exception

I am writing a test for a 'before insert' trigger. In the trigger, an exception is thrown if there is a problem with the validation (by design). In production, the trigger catches the exception and ...
-1
votes
1answer
18 views

How can'I activate the code coverage? [on hold]

please how can'I activate the result of the code coverage in the console developer. thanks.
-1
votes
0answers
8 views

Soap Envelop for creating Picklist using METADATA API [on hold]

I am looking for SOAP ENVELOPE to create picklist on a custom object using a metadata api. Thanks
0
votes
2answers
26 views

How do I create a Dynamic SOSL Query

I need to allow a User to narrow their article search by ArticleType when desired My current Controller handles the search input just fine and can also accept a search via a URL parameter. Where I ...
1
vote
1answer
9 views

Is there a way i can link to standard merge leads screen by passing ids of leads to be merged

I have a list of leads which i am allowing the users to select and merge from a VF page. When we try to merge the leads from the find duplicates screen, the page is redirected to ...
-1
votes
2answers
29 views

Get inputText value of selected row using wrapper class

I need help getting the apex:InputText value of a selected row using wrapper class. I can get all the values but no the qty entered in this column. I tried to create a list<> that holds the values ...
2
votes
1answer
22 views

Displaying history values without custom coding

I have a requirement to show history value, Newvalue and Oldvalue in pagelayout for a custom object. SELECT Field,NewValue,OldValue FROM Requirements__History Is it possible to achieve this ...
0
votes
1answer
10 views

Filter Account Lookup by Record Type to match correlated Opportunity Record Type

Notice: The below question does not address the issue we were trying to solve. The real issue had to do with a Visualforce component (see the update). Jenny B's answer provides good information for ...
0
votes
0answers
7 views

Testing FeedItem with NetworkScope

I'm testing the insert of a FeedItem (with a ContentPost), however, I keep getting an exception: List<FeedItem> feedItems = new List<FeedItem>(); for (SObject so : ...
0
votes
1answer
14 views

Account change for Partner Records

I’ll need to have all SFDC Channel Partner Account Records and corresponding Channel Contacts assigned to Matthew McLarty. My question is how can I identify the channel partner accounts from the ...
0
votes
1answer
20 views

Scoring Formula using multiple record types

I have a field that is common to several different record types, but the way it is scored is different for each. I am looking for assistance on how to write a formula that populates the same field ...
1
vote
1answer
13 views

Email-to-Case: where can I find the ThreadID?

Suppose that I have received a Case from a mail sent from example@example.com. Suppose that I have enabled the ThreadID on Setup--> Customize--> Case--> Email-to-Case. Then, when I am on the Case ...
1
vote
0answers
10 views

Login as another user in salesforce via API

I know there is new feature introduced in summer 15 release that Admin user can log in as another user in SF, However I want to achieve this via Partner API. Is this possible?
1
vote
1answer
16 views

Is there a way to capture what RecordType user has picked using apex code

I have few different record-types in my object and I like to know either by Id/Name what record-type the user have selected and based on that record type selection I have to perform some logic behind ...
2
votes
1answer
17 views

Using existing Setup Objects in Test Class - Mixed DML Operation error

I'm writing a Test Class in order to test some code which automatically completes CaseMilestones when certain changes are made to a Case. My code checks that the Case which has been changed has a ...
1
vote
0answers
18 views

Saving search engine parameters: design consideration

I have a custom search engine for my limited users. These users have a custom front end and we cannot have them seeing the objects through the standard UI. One of the new requirements that I have is ...
1
vote
2answers
16 views

Trigger before update and delete QuoteLineItem, access to Status field on parent Quote object

I've made a research, try a few things...but I don't really see a good example where to understand how to do this. In a "before insert" and "before delete" trigger for the QuoteLineItem object I ...
0
votes
2answers
29 views

EXCEPTION: System.SObjectException: Field is not writeable: FeedItem.Visibility

I´m trying to update the visibility for feed items: for (FeedItem FI: [SELECT id FROM FeedItem where Type = 'LinkPost' order by createddate desc]){ FI.visibility='InternalUsers'; } I get ...

15 30 50 per page