0
votes
1answer
5 views

SOQl queried on custom object as gmod opportunity forecast

Can anyone help me on this. I have a Installed Package as "ForecastTrac " in my org Sandbox .It has a custom object as "gmod Opportunity Forecast" and Visual force pages created based on opportunity ...
1
vote
2answers
13 views

System.QueryException: List has more than 1 row for assignment to SObject

I am trying to write a VF page to list all the id and name columns from a custom object but found an error "List has more than 1 row" in the VF page. Can anyone tell me what have I done wrong? VF ...
0
votes
1answer
9 views

Translate spanish characters to english for field values

I have a requirement to translate few predetermined spanish characters to english in field values of different custom objects. I have tried to create a generic code. can someone please let me know ...
0
votes
0answers
9 views

Sorting pageBlockTable

I'm verry sorry, but got some really terrible spaghetti code here. Ids are passed to VF page with an extension which apparently has no function? Anyhow, I've implemented sort which does work if I ...
0
votes
1answer
10 views

Governor limits : Database.getQueryLocator

I was wondering..why the Salesforce Governor Limits cheatsheet shows Total number of records retrieved by Database.getQueryLocator ---> 10000 ? What does this mean? The limits are reset for every ...
0
votes
1answer
8 views

Login to Force website as User?

I would like to know how I can login to my force website as Users/Contacts? This can be done for Customer Portals and Communites but I cannot find anything to see how it can be done for Force.com ...
0
votes
1answer
12 views

Update fields based on another object fields

I am having 3 objects x,y and z. From 'x' object i am having a lookup relationship to y. In 'z' object i am having lookup to 'x'(will be seen in relatedlist of x object). x is similar to product ...
3
votes
1answer
10 views

How to get Custom Object's CreatedBy

I need to get list of custom objects in Salesforce org and find Created User of each of them (Created by of object, Not the records) . Is it feasible ? List<String> CustomObjectsList = new ...
0
votes
2answers
12 views

Inline VF Page is returning Attempt to De-Reference Null Object Error

I'm experimenting with the code below from another post on stackexchange: All I'm trying to do is display a VF box in Opportunities to instruct Users on what to do at each stage. It uses a custom ...
0
votes
0answers
4 views

Understand permissions on products, price books, and ideas

I'm totally new in Salesforce but I'm here to go. In this documentation page I read: You can grant “Read” and “Create” permissions on all standard objects except products, price books, and ...
0
votes
1answer
8 views

Can't create a Task for a Contact through Bulk API

I noticed that I can create a Task under a Contact manually, through Salesforce UI, but I can't create it through the Bulk API. Can anyone explain me why and if possible, how to overcome this? I ...
0
votes
1answer
8 views

Window.open in Salesforce1

I suppose that Salesforce1 is using InAppBrowser when performing window.open command. I am trying to trigger exit event, but with no success. var ref = window.open('http://google.com', '_blank', ...
0
votes
2answers
29 views

Null Pointer exception

I have below generic class, whose methods are called from an Account before insert , before update trigger. Below class is getting a Null Pointer exception for any Account at commented line. Can ...
0
votes
1answer
12 views

Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, PG_CountryId: execution of BeforeInsert

@isTest private class PG_teststaffscoursecontroller{ public static PG_SupportedCountry__c country = new PG_SupportedCountry__c(); public static PG_SubRole__c sub = new PG_SubRole__c(); ...
0
votes
0answers
10 views

Custom Fields & Relationships user profile

I want to add a custom fields (creator profile) to custom object and auto fill in the created by (user) profile to this fields, how can i get the creator profile information ?
0
votes
0answers
7 views

New Annual Contracts?

My company has about 15 Salesforce users, and we have just been contacted to sign an annual contract. Previously we had been paying by quarter, which was fine, but due to cash flow timing cannot pay ...
4
votes
0answers
9 views

Error: Request Entity Too Large: head - Any Suggestions?

I am creating my Data Model - Created one Custom Object with around 400 fields and 15-20 Validation Rules on it. Now, When I am trying to add more Validation Rules - It is giving me following error ...
0
votes
0answers
20 views

Self lookup on lead not allowing to add new lead record

I have added lookup field named- parent Lead on lead which is lookup to itself i.e lead object.When I am trying to add new record,it is not allowing me to add record and giving me the following ...
0
votes
0answers
3 views

Exacttarget retrieve subscriber with attribute value

I'm using the SOAP API of ExactTarget I'm able to retrieve subscribers with email, but I have custom attributes which would I like to get a subscriber with attribute value such as, age or gender. I ...
-1
votes
0answers
13 views

TEST CLASS ApexPages.Standard.SetController [HELP]

public ApexPages.StandardSetController soSetCon { get { if (this.soSetCon == null) { this.soSetCon = new ApexPages.StandardSetController(Database.getQueryLocator([SELECT Id ...
0
votes
1answer
12 views

Dialogue alerts within a pageReference

I am working on a Visualforce button that calls an action in the extension. <apex:commandButton id="submitButton" value="Submit" action="{!submit}" onclick="return confirm('Are you sure you want ...
1
vote
0answers
5 views

Dev on extension package against unmanaged version of base package

We are currently developing both an extension and base package. Currently, due to namespaces, we are forced to develop the extension package against a managed base package. When we have to change the ...
0
votes
1answer
5 views

Prevent Lead Owners to Transfer leads

How can i prevent the lead owners to change the ownership of the lead. Why they are able to transfer ownership in the same role and not anyone else like System Admin
0
votes
1answer
10 views

Recordtype Change Button - Unexpected Token ;

I must have some syntax error I am missing on this button. Am I missing something? Thanks {!REQUIRESCRIPT("/soap/ajax/13.0/connection.js")} var caseObj = new sforce.SObject("Case"); caseObj.Id = ...
1
vote
2answers
45 views

Iterate through Map with a List of sObjects

After resolving my issue posted here, I was finally able to get a Map<Id,List<Quote>> variable like I needed, but now I can't seem to iterate through the variable. I have tried things like ...
0
votes
0answers
13 views

Remove all subscribers at once

Is there a way to remove all subscribers in a list without making a seperate request to delete each subscriber?
1
vote
1answer
26 views

dataURL to blob

I'm passing the dataURL from JS in the vfp to the extensions class. I'm trying to store that image as an attachment to the custom object. The attachment is uploaded but when I try to open, a "file" ...
1
vote
1answer
19 views

Function to properly escape dynamic SOSL input

I have a page that allows users to specify a search term that then gets put into a SOSL Query. Obviously I'm escaping single quotes to prevent injection, but certain input still cause my code to ...
0
votes
1answer
21 views

Generate set of Ids from a map, am I doing it right?

I'm trying to generate a set of Opportunity Ids that have 'Legal' cases. But I'm getting the 'inner select field 'Opportunity__r.Id' cannot have more than one level of relationships. Is there a ...
1
vote
2answers
24 views

Summary Formula vs. Conditional Highlighting - Dev 401 question

Another Conflicting DEV 401 question... Hiring managers at Universal containers would like a visual mechanism for determining review score outliers. Review scores are captured as a custom field on a ...
0
votes
1answer
17 views

Test Method Failure: RecordTypeId doesn't appear to return properly

I've written a method to identify any lead inserted to 2 specific queues and set the record type accordingly - which is different than the expected API user's default. I've debugged line by line ...
0
votes
1answer
11 views

How do I remove trailing space from data being fed into my email with AmpScript?

IT is passing data a field through an API that has an extra space at the end. This space is causing our unsubscribe link not to work and so we have had to stop all of our emails.
0
votes
0answers
9 views

Bar Graphs - how can you change the width of the apex:barseries

Does anyone know how to change the width of bars? Do I have to do this via javascript? Thanks
0
votes
0answers
9 views

system.security.noaccessexception

I have visual force page that guest users have access to. I pass the contact information, the user completes the form and then the contact information should get updated. I had no problems in test. ...
0
votes
0answers
6 views

Manage Package duplicate field api name

I need to refer to field which is in org where I have installed my managed package but both have same api name and only difference is package namespace prefix. How can i refer to that field in my ...
1
vote
1answer
36 views

Map all data columns of a SOQL response

I want to know if it is possible through a map or some form of multidimentional List type to contain more than 2 parameters. For example I have a nice SOQL here that returns a column for Contact, ...
0
votes
1answer
13 views

Unexpected Behavior in Unit Test

I'm running into a somewhat bizarre situation when trying to run unit tests for my apex code. The functionality is that when a contact is created, a child record of a custom object is also created and ...
0
votes
2answers
12 views

Angular.js app as a staticresource in Salesforce.com

In Salesforce.com with angular.js app. How do I load a zipped file into staticresource without the .zip extension? I installed the angular mobile pack from ...
0
votes
0answers
12 views

Walking relationships in email templates in a workflow

I have a custom email address field on Account called Primary Email Address. We have also created a custom object off of account called Purchases. I want to be able to send an email to the Primary ...
0
votes
0answers
11 views

Extra Margin being added while printing

I have number of records that i want to be printed , i need 10 rows on page .I am using mod for that .First i set rowNum to 1 then increase by 1. I am wrapping content in a div <div style="!if( ...
1
vote
0answers
9 views

SOQL vs Sync Analytics API

I have some simple code in a managed package to populate a selectoption list e.g. List<SelectOption> camps = new List<SelectOption> (); for (Campaign c: [Select Id, Name FROM Campaign ...
0
votes
0answers
6 views

Question about InstallHandler & Sandbox

If an installed managed package is deployed from sandbox to production what happens to post install script? Is it count as upgrade (context.isUpgrade) or the script never runs on production (maybe ...
2
votes
0answers
17 views

How can a Contact enter an Interaction more than once?

This question is somewhat related to this question on multiple entries but it's actually quite different (and not a duplicate) which is why I've created a new question. I'm trying to figure out ...
0
votes
1answer
27 views

Inner joins on junction objects

I'd like to do an inner join on 2 junction objects, and I can't get the syntax right. I want an inner join on ContactRole (which is related to opportunities and contacts), and Opportunity__c that is ...
0
votes
1answer
14 views

Enable multi-currency feature

I've found around the network the quizlet website with some flashcard for salesforce: very promising for my 401 certification. You can find it here: http://quizlet.com/47646837/flashcards But I'm ...
1
vote
1answer
27 views

Test Not Covering All My Trigger Code

I have created a trigger that fires when a Task is Inserted, Updated, or Deleted. When it fires, it updates custom checkboxes on open Opportunities based upon the Subject of the Task and checks to ...
2
votes
1answer
16 views

Comparing a field value to a large list of potential values

I'm looking for a way to compare the value of a field to a list of potential values (static, not from another field) and then put the result (True if it's on the list, False if it is not). The actual ...
0
votes
1answer
13 views

Unwrap to sObject

I am using compareTo sort implementation. After sorting the wrapper I would like to get back a list of sObject. Is there a way to clone them off directly without hardcoding all field names? Code: ...
0
votes
2answers
13 views

Compile Error: Initial term of field expression must be a concrete SObject: List<User>

i am not sure why this error is shown,when i am mapping a new ID against and ID field. Here i am trying to achieve this requirement : Want to do this for existing user. So i have queried the set of ...
0
votes
0answers
4 views

Salesforce to Quick Book integration with using rest api [on hold]

How to establish connection between the salesforce to quickbooks, through apex rest api. and how to get customer data from quickbooks to salesforce.

15 30 50 per page