0
votes
0answers
3 views

Access public static member from visualforce

I have an Apex class as follows: public class Util { private static ID mAccountId; public static ID AccountId { get { return mAccountId; } } } I am trying to ...
0
votes
0answers
5 views

Get ActivityId From SingleEmailMessage

When sending a SingleEmailMessage from apex to a Contact, activities are automatically created for that Contact. I also want to log an activity on records that are related to this email. I can't use a ...
0
votes
2answers
16 views

Catch state of custom check box field in Apex

I have a custom object MyObject__c I've added a custom field which is of type check box. one__c If a system admin ticks this checkbox on the object in the Salesforce UI, I want an apex element ...
1
vote
1answer
10 views

How do I find the profileID when creating new users with the SalesForce data loader

I have a CSV created that has all of the required column headers included. My import is failing of course because profileID is required and I do not have this. How can I get the profileID of a user, ...
1
vote
1answer
10 views

Force.com IDE eclipse missing Apex Test Runner pane and Execute Anonymous pane

While using Force.com IDE, I closed the "Apex Test Runner" and "Execute Anonymous" pane by mistake. They are usually right next to the Problems pane (see attached image). Does anyone know how to get ...
0
votes
1answer
14 views

Call variable from extension with JavaScript

This is my controller: public with sharing class MyController { public myObject__c myObj {get; set;} public String myObjectId; public Boolean one; public Boolean two; public ...
0
votes
0answers
8 views

visualforce page which is called by button “link opportunity” on contract and show all opportunities for account of Contract

opportunity and contract is master Details Relationship with custom object "opporcont" (junction object). There is field account Name on Contract and also a field account name on opportunity object. ...
1
vote
1answer
16 views

Opportunity Validation exclude validation for certain Profile IDs

I'm trying to validate certain Opportunity records but exclude that validation on certain profiles. The following is the code I currently have but it's not taking the profile.id in to consideration: ...
0
votes
0answers
3 views

ExactTarget/FuelSDK-CSharp implementing objects not included in the SDK

There are examples for using objects that are included in the SDK (eg. ET_List). How would I go about using an object that is not implemented, like AccountUser?
1
vote
1answer
10 views

Dynamic Visualforce Components - Access Pass-Through Attributes

Is it possible to use html-pass-throug attributes at Dynamic Visualforce Components? Component.Apex.InputField result = new Component.Apex.InputField(); result.style = 'font-size: 9px'; result.title ...
0
votes
2answers
12 views

How can I query Orders to get OrderItems associated with that order

I see that there is a related list on Orders showing the OrderItems but there is not field on orders that I can SOQL query in Apex.
0
votes
0answers
12 views

Partner users API access

I am developing a Phonegap app for Partner users. It needs to be on javascript so I tried ForceTK with no luck. Is this possible?
2
votes
1answer
18 views

Can destructiveChanges.xml be invoked directly from the Force.com IDE without Ant?

In a couple of old projects we have an Ant target setup to run a deploy with a destructiveChanges.xml file specified. AFAIK the Force.com IDE "Deploy to Server..." takes no notice of this - Ant has ...
-3
votes
0answers
16 views

Test code Failure

Can anyone tell me what is the problem in my test class?? Apex Trigger: trigger Test_Share on Test__c (after insert) { Id UserId=UserInfo.getUserId(); Boolean bln=false; ...
0
votes
0answers
12 views

Why am I getting a Cacheable HTTPS response?

Not sure if this is a Salesforce question, please let me know if it's not. I have a VF Page where I'm uploading a file to AWS (Amazon Web Services) S3. The form is getting submit via ajax like: ...
0
votes
1answer
34 views

Too many DML rows: 10001(bulk update)

when I try to run the code below I am getting this error: 'Too many DML rows: 10001'. The object that I am trying to update is one of the main object in the org. so it has multiples triggers, ...
0
votes
0answers
16 views

Assigning Task to Opportunity Teams

I have a requirement to create a task for the Opportunity Team. I created a task and assigned it to Opportunity Teams :Team Role. But the task is not showing up in the user log in. What am I missing. ...
1
vote
1answer
31 views

How to pass String parameter to Javascript confirm() function

How could I pass to confirm() function the value of a String contained in the Controller of this VF page? <apex:page controller="TestJS" > <script language="javascript"> function ...
0
votes
0answers
8 views

Salesforce 3rd party Rest service connectivity using SAML assertion

We have a salesforce org connected to SAML SSO and this is working fine. we have an SAP system, which provides a REST service which is also connected to the same SAML Provider, when we try to use the ...
0
votes
1answer
13 views

Adding a new field to OpportunityLineItemSchedule

We have a requirement to add some extra functionality around schedules. Is there a way to extend this object with a custom field? I can't find it in the Salesforce setup.
3
votes
2answers
39 views

Pass data from VisualForce page to Apex Class

I have a VisualForce page which displays some data from a standard controller, I would like to know how I can add a button which activates an apex class? I want to also pass data thats visible in the ...
0
votes
0answers
10 views

Quotes getting changed when we migrated the visualforce page from one env to onther env [on hold]

I have The above quotes before Help (") are changed when page migrated into another env. Please suggest me any ascii characters can be use here to fix.
1
vote
3answers
110 views

How do I assign the returned query values to each Boolean?

If I have the following variables and query, how can assign the values of each field to their corresponding boolean? The fields are Checkboxes on the 'myObj' object. public with sharing class MyClass ...
0
votes
1answer
10 views

Automation of DocuSign process on Opportunity

I have installed DocuSign app from appExchange in Salesforce. Which I am using on Opportunity object. Currently, I go to the Opportunity record and then initiate Docusign process, wherein I select a a ...
-4
votes
0answers
23 views

Trigger error: SObject row was retrieved via SOQL without querying the requested field [duplicate]

I have a trigger that populates child object's field value when update or insert on Master. Please find my trigger here. Trigger: trigger HCPREFERENCE1 on Depth_Tracker_OAPI__c (after insert,after ...
0
votes
1answer
18 views

Inserting Test.loadData in into Salesforce DB for tests

I am able to load the static resource but I am unable to insert the loaded accounts into salesforce. I want to do this to be able to test various methods that depend on first selecting a particular ...
2
votes
1answer
22 views

JS/jQuery for Date manipulation on VF page

Have a very simple VF page that allows the end user to either set an expiration date, or choose the number of days until the expiration. What I wanted to do was update the other field when one was ...
0
votes
1answer
10 views

Why do I get Error: Exceeded maximum number of tasks allowed per rule (10) when deploying a workflow via ANT?

I have a workflow rule that are failing to be deployed to a sandbox from a sandbox via ANT. The workflow rule has seven field update tasks associated to it. When I deploy I get this error message. ...
0
votes
0answers
11 views

Programmatically determine relationship between two sObjects and generate result

I have an application which allows the user to specify a geography object and field. For example User's country field Account's State Field Now for Leads the system needs to dynamically determine ...
0
votes
3answers
28 views

Getting All Manager Id

Can anyone tell me how to get the Id of all managers based on the user Id? user-->manager1-->manager2-->manager3--->manager4 I wanna get all manager id My code is: public static List<Id> ...
0
votes
0answers
12 views

How can I implement search on basis of suburb and post code and automated display of suburb, state, postcode on custom objects in salesforce

I need help in understanding how can i implement an automated search and updation of data on custom object page layout in Salesforce. The case is I have a Client Page (Custom Object), where I capture ...
0
votes
1answer
16 views

Is Product object available in all Salesforce Editions?

I have created an app having access to some object like Account, Opportunity .... and Product. Now, While creating a Package Product is shown as Package Requirement. So, I am just bother that if any ...
0
votes
1answer
24 views

Apex error: Initial term of field expression must be a concrete SObject

I have to update bulk records by apex class which is called from an apex trigger. Please find my class and trigger below. Batch class: global class UpdateAccountArea implements ...
0
votes
0answers
6 views

Single sign on in Professional edition

Scenario 1: We have salesforce prof edition with api access and we also have a asp.net application. We are looking at a way to allow our users in salesforce to access the dot net app without having ...
1
vote
1answer
19 views

Writing JSON using JSONGenerator with writeStringField()

I'm wondering why I can't use the method writeStringField() on the class variables below. I'm using the JSONGenerator class methods instead of hand-constructing the string. global class ...
1
vote
0answers
17 views

Categories field on Custom Labels

Is the Categories field on Custom Labels merely for use in List View filters? Can I not download a file of Custom Labels and their translations, filtering on Categories? Even the Translation Workbench ...
0
votes
0answers
7 views

Salesforce Identity Connect and AD user management

If a user is deleted from Active Directory, is the corresponding user record deleted or simply deactivated from Salesforce data store?
0
votes
1answer
19 views

How to create a YTD comparison of This and Last year sales?

I need to compare YTD sales of this and last year sales. How can I achieve that with a simple formula field on the opportunity object? YTD = Year - To - Date - e.g.: all sales until this date. (and ...
1
vote
1answer
32 views

Trigger populating parent object values in child

I have below trigger to populate master record's value in the child based on any update on Master. This code is getting error out for bulk loads. Can someone please suggest a best practice to overcome ...
1
vote
1answer
39 views

How to remove visualforce page default tooltip

In my visual force page where ever I place the cursor it is showing the page name as the tooltip(title).Its really annoying. How to remove it...??? My Vf page name is Support First,in that page am ...
0
votes
1answer
21 views

commandLink and commandButton with image not passing parameters

I'm trying to pass a parameter to a method in a visualforce page when the users clicks on a detail icon (a static resource image). I'm trying with a commandButton since I need the button to be an ...
0
votes
1answer
19 views

Assign rendered value using javascript [on hold]

i have created tabs using html tags and displaying relevant pages for each tab(Added pages using pageInclude tag). Now based on click of tab i want to display related page. Here i don't have any ...
0
votes
0answers
9 views

To change the Case tab title to case field name in service cloud

Hi I want to change the CASE tab Title to Case Subject. Subject is a standard case field. The screenshot is given below. Any pointers on this would be really great. Thanks Currently, the case title ...
1
vote
0answers
27 views

Issue with updating project in Force.com IDE

In Eclipse Luna, I am facing an issue with Force.com IDE. It is working fine while creating Force.com projects. But after creating projects when I try to refresh it from server or add components to ...
0
votes
1answer
23 views

Invalid Cross Reference Key : Record Type ID value isn't valid for User: 012v00000008f4nuBB

I am having some issues. The below is a code snipet of my test class. The class complies and produces 96% of coverage with no errors. When deploying in production it throws the above error. ...
0
votes
1answer
28 views

Related list availablity

I have custom object X which is look up with Account and custom object Y which is detail of X(master). Now I have to make Y appear in related list section of only those Accounts, whose reference ...
3
votes
1answer
137 views

How to remove ( from the string

I have a string value where I am getting the a integer with ')' I want to remove the ')' have the value separated from all the unwanted special characters. Do any one here have any idea how can I ...
0
votes
1answer
10 views

List has more than 1 row for assignment to SObject on action button in a page from managed package

Installed a managed package, which contain simply 2 pages, controllers, styles, scripts etc. Then created a site using the a page within the package. When i clicked an action button, Received the ...
1
vote
1answer
33 views

Developing a Swift Salesforce1 app

I'm planning to develop a native iOS app using Swift on Salesforce1. Any sample code/ guidance which shows how to fire the Salesforce REST API and render the response on UI will be helpful.
0
votes
1answer
22 views

How to Use an XML Static Resource to Program Unit Tests?

I've created a static resource XML file and uploaded it to my test org. My code coverage is around 41% and needs improvement due to there being numerous nodes in the XML file that need to be loaded ...

15 30 50 per page