1
vote
0answers
3 views

Scheduled reports and saving as salesforce documents

I have followed the discussion "Scheduled reports as attachment". The solution given by eyescream looked good but I have a slightly different requirement. I need to run the scheduled report using apex ...
4
votes
0answers
29 views

Unable to deploy httpCalloutMock based code to production due to NPE that does *NOT* occur in sandbox

Good morning. I've been beating my head against this for the past 24 hours. The following three links are: RestClient class - https://gist.github.com/2a2dd1e1b227dac24e80 RestClient Testclass - ...
0
votes
1answer
15 views

Custom Setting List in a Special Settings Tab

I would like to create a special "Settings" Tab in which users can customize their email templates and other information. I would like to use Custom Setting List, and create a special "Setting" page ...
1
vote
1answer
22 views

How can I have a dynamic picklist that gets updated when the new value is absent?

I need to create a picklist field, that will have an option to add values that are NOT in the original list. The values are coming from a SF form. If you add the new data today, it is inserted, and ...
1
vote
0answers
19 views

Test class showing error : Converted Account empty for a Converted Lead.: [ConvertedAccountId]

I need to write as test class to cover public without sharing class CMassConvert { public boolean hasErrors; public String errorMsg {get; set;} //constructora public CMassConvert() { } public ...
2
votes
1answer
45 views

Can a textbox be enabled after a certain value from a picklist is selected

I am having a picklist field which has 3 values 1.Web, 2.Mail, 3.Other.If i select other then the text must be editiable. If i select web or mail then the textbox must in uneditiable mode. Kindly tell ...
1
vote
1answer
24 views

how to prevent the system generated “Customer Portal: Customer Portal Reset Password (SAMPLE)” Email Template

i implemented the logic for generating Reset Password Custom Email Template for custom portal user in Apex. once the user reset the password from FrontEnd(PHP Form) using UserName now our code ...
2
votes
1answer
40 views

Trigger Test Class update error

I'm having some difficulties with a test class I'm writing for an Apex Trigger. When I test the trigger manually, I have no problems. Everything works perfectly! However, in my test class, I'm having ...
2
votes
2answers
32 views

Visualforce Error Handling Test Exception

I am looking at testing the following exception message. public static void addError(String msg){ ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR, msg)); } public ...
1
vote
1answer
28 views

Update date field with null value using JS remoting?

While using JS remoting (Rest Toolkit) to update an object record, I'm getting this error when I try to update a date field with an empty string: Visualforce Remoting Exception: line 66, column 1: ...
1
vote
0answers
16 views

How do I find a Scheduled Job if I know its Job Name? [duplicate]

There is a scheduled job by the name of Dispatch Jobs. Via Apex I want to check if that job is present. What would the syntax to do so?
0
votes
1answer
31 views

Trigger Testing Question

I've written a simple trigger that updates a field on child Contact records when a specific field in the parent Account record is modified. When I test it manually, it works beautifully! However, I'm ...
2
votes
0answers
16 views

Site.com data repeater error

Is there a way to troubleshoot Site.com data repeater errors? Do these errors appear in the debug log within Salesforce? We don't really know why we're intermittently seeing the standard "Error: ...
1
vote
0answers
13 views

Recipient User Language email alert in workflow

How to get the recipient's language in a visualforce email? I'm trying to use this property: language="{!recipient.LanguageLocaleKey}" But when the email is sent, the recipient object is the ...
1
vote
1answer
17 views

Trapping “Maximum size of callout request or response” exception

Salesforce limits: "Maximum size of callout request or response: 3MB", is there a way to "trap this exception", to gracefully handle responses that end up being over 3mb? I'm hitting these limits and ...
1
vote
3answers
32 views

Query records with their parent record name and their related records

I'm trying to query records with their parent record name and their related records. This is my query: SELECT Id, Name, Record_Type_Name__c, Engagement_Model__r.Name, (SELECT ...
3
votes
0answers
38 views

Returning an Auto-Increment value

I'm just curious, is there a method to access an auto-increment number in a newly inserted record without making another SOQL call? Something similar to how MySQL can call up the last insert ID after ...
2
votes
1answer
32 views

SOQL Order By Variable Binding

Do you know if Force.com supports variable binding in SOQL "Order By" clause? I tried to do the following binding with no success: applicantQuizzes = [Select SOME_FIELDS From Quiz__c s ...
2
votes
3answers
56 views

Choosing Appcelerator for Force.com App

I am planning to develop a mobile app using Appcelerator and force.com platform. I am new to Appcelerator platform and my top fear is stablity of Appcelerator connector, because of following reasons ...
0
votes
1answer
18 views

Isafter insert code get ecucute on after insert and after update

i have wrote a trigger i need to do insert after insert only so i defined as isAfter i am doing differ function in after update and after insert by as i have defied my code in isAfter so the code get ...
0
votes
1answer
22 views

Trigger opportunity Product Lost

I have a custom checkbox Lost__c on opportunity product so when you edit the product added on the opportunity, you can set that the product isn’t sold. I want that if the checkbox is true: Copy ...
1
vote
1answer
20 views

Data import from csv using Visualforce page - Things to consider

I am trying to build a data import using a csv and importing into accounts and contacts using a VF page. I know we have the wizard and data loaders to specifically do this job. But the requirement is ...
0
votes
1answer
13 views

Overage Authenticated Website User Profile has no custom object permission section

I was going through the Overage Authenticated Website User Profile and found that it doesnt have any section for Custom Object Permission. So tried to clone the same but still I cant see the section ...
1
vote
1answer
29 views

Validation error message shows for all Inputfield in pageblocktable

I have a custom page with standard controller and extension. I have a page block table with inputField to display the account lookup. When the page is submitted with the wrong Account value in account ...
1
vote
2answers
29 views

General question about triggers and formulas

I have a very general question about the data flow when dealing with formula fields and triggers - I'm writing a trigger that will update a text field on Contact objects whenever the parent Account is ...
1
vote
2answers
40 views

how to add more than 1 invitee(whoid) to an event using code…?

i want to insert an event record...but like i have more than 1 lead..i want to insert more than 1 leads as an invitee... Like using whoid we can insert 1 record ... Using the standard interface we ...
1
vote
2answers
41 views

implications of being a record owner?

what kind of logic does record ownership drive? here's what i can think of: owner of the master is the owner of the detail. ownership (or lack of) drives queues ownership can drive logic (workflow, ...
0
votes
1answer
17 views

privliages that the View Setup and Configuration allow?

I'm looking into the user privilage: View Setup and Configuration. It allows a user to View the App Setup and Administrative Settings pages. I don't know which pages SF is referring to, or how to ...
2
votes
2answers
24 views

what's a good use case for the custom object administration privilege?

This is a privilege for delegated users, which lets them add/update/delete fields, page layouts, etc at the object level. But it also gives them the ability to delete an object. how do you leverage ...
2
votes
3answers
55 views

Map of API name and value pair..?

I want to create a map of apiname and value pair..please help... i want record value...like if apiname of opportunity field is name..then i want record value..ie opportunity name... for eg ...
3
votes
1answer
32 views

Unable to access nested files in static resource

I have a zip file containing images as a static resource. After repackaging the zip and uploading a new copy I'm no longer able to access the contents from VisualForce pages. I access the image like ...
3
votes
2answers
51 views

Build Custom Batch Queue to centrally manage Batches & circumvent the Max. 5 Batches in parallel

Just assume you had an app that would have to process huge amounts of records in an org in multiple ways each day. For each "way" you have a separate Batchable class and those are triggered ...
0
votes
1answer
24 views

Redirect Customer Portal Login Page to VF Page

Trying to figure out a way to redirect the https://naX.salesforce.com/secur/login_portal.jsp page to a Custom VF login page. Here is my use case: My org is creating a new Customer Portal with ...
2
votes
1answer
19 views

Case Field: what hour was a case opened - Time zone & daylight savings time sensitive

So using this formula I can get the Hour in GMT that the case was opened VALUE(MID (TEXT ( CreatedDate), 12, 2)) However, we have users who are across the country. When a user views the report they ...
1
vote
0answers
34 views

Ongoing case milestone not behaving as expected

I'll start off by saying that Entitlement Processes are not my strong suite, so I'm sure I'm just doing something dumb or wrong, but I can't figure it out, and neither can some of the other people ...
1
vote
1answer
19 views

unable to query Case object

when trying to query case object with below SOQL, giving me an error that no such field exist. where as i can able to see field in the customization. ? is this permission issue ? select id,status ...
0
votes
1answer
18 views

“Send Notification Email” option behavious depending upon change in Case ownership (for a particular record type only)

For a particular Case Record Type, I would like to "Send Notification Email" option should automatically get checked when the ownership is being changed to USER "Send Notification Email" option ...
0
votes
1answer
20 views

Datetime - problem with hour formatting

Datetime t = Datetime.now(); System.debug(t); System.debug(t.format('HH hh kk KK')); Result: 13:37:57:233 USER_DEBUG [16]|DEBUG|2013-05-17 11:37:58 13:37:57:234 USER_DEBUG ...
0
votes
1answer
20 views

Error: Unknown function wrapperList.size. Check spelling

I have a list of a wrapper class which i am using to display values in a pageblockTable. I want to render this pageblock only when there are records. I tried using the rendered tag on the pageblock ...
7
votes
1answer
62 views

Is there a superclass for Document and Attachment?

Document and Attachment share a lot of fields, so that they might be just views to the same "table". I'd like to use just those fields that both object types share in Apex code. Is there a superclass ...
2
votes
1answer
32 views

Can't call a component inside a page

I would like to create a VF page and call a custom component inside it. <apex:page controller="MyController"> <apex:form> <c:mycomponent id="myId" attributeName="{attributevalue}"/> ...
0
votes
1answer
38 views

How to create an app/package whose sole functionality is to redirect? [duplicate]

I want to create an app/package to be published on the appexchange. The only functionality of that app/package will be to redirect the user to a configured URL in the app. This will happen once ...
1
vote
1answer
29 views

Can I pass a generic object to an apex method?

I would create a generic method which can take in input a generic object (not only an SObject)... For example would create a method like: public static output MyMethod(Object inputmessage, String ...
3
votes
1answer
23 views

Publish App On AppExchange

I want to publish my app as free app on Salesforce AppExchange. I have already joined ISV partner portal through http://www.salesforce.com/partners/join/ and selected "AppExchange Partner Program". ...
2
votes
2answers
38 views

Opportunity Product Button

Do you know if i can add a custom button on product section on opportunity?That is near the buttons ADD PRODUCT_CHOOSE PROCE BOOK_SORT To solve this I have created a List custom button ...
-2
votes
0answers
31 views

Payment Gateway Implementation [closed]

Am developing small application with online payment using credit cards. will be thankful if anyone help me to implement payment gateway.
1
vote
1answer
22 views

Test method to support getContent call

I have created getContent() method to send a pdf page in email using Visualforce page. But while running test method on the controller, I am getting following error message - "Methods defined as ...
1
vote
1answer
48 views

Display javascript result in a pageblocktable

I am making a Ajax call to a REST API and parsing the response and maintaining the parsed values in a delimited string. I want to display the same string in the pageblocktable without taking the ...
0
votes
2answers
42 views

Custom CSV file uploading using apex getting this "Error List index out of bounds: 5

I am uploading a csv using apex programming to upload data to my custom object. I am getting this error while uploading csv file. Some the same is uploading correctly. Can one tell how to resolve ...
2
votes
1answer
24 views

Checking to see if a user has a licence for a managed package

So I'm aware that there is a method on UserInfo called isCurrentUserLicensed which lets you check if the user running the code has a licence for a namespace that you specify, i.e. for a particular ...

15 30 50 per page
1 2 3 4 5 70