All Questions

Filter by
Sorted by
Tagged with
8
votes
3answers
12k views

Full List of All Accessible Types Through Metadata Api

I am looking for some official Salesforce documentation on a list of all available types in the metadata API. If I am using a package.xml file that looks like: <?xml version="1.0" encoding="UTF-8"?...
1
vote
1answer
21 views

Is there a way to allow standard users to change assignedto in a task

How can i set to allow standard users to change the assigned to field in a task. As an administrator i can change the owner, is there a way to allow standard users to do the same? Or its restricted ...
1
vote
3answers
815 views

System Null Pointer Exception: debug help

So I have the following controller: List<User> users {get; set;} public reshapeUserDivisions() { users = new List<User>(); users = [SELECT Id, Division, FROM User WHERE ...
4
votes
3answers
8k views

Is it possible to convert an SObject to a Map?

Is it possible to convert an SOBject to a Map in a very few short lines of codes?
6
votes
2answers
967 views

Testing code that depends on an SObject

I have a page which displays an entity that belongs to another package. In order not have a hard dependency to this package, I build a wrapper object and make this wrapper object accessible to the ...
2
votes
0answers
1k views

Navigate to Standard Layout or VF page dependent on recordtype

Im using a 'dispatcher' page to direct my users to either a Standard Page or VF page, depending on the recordType. This works fine in terms of sending the user to the correct page, however, if i add a ...
5
votes
2answers
8k views

Setting default field values in apex for new objects

We need to set some default values in apex on a custom object before it is created. The user should ideally work with the standard object page - we don't want to re-create the whole page in ...
16
votes
1answer
18k views

How can I return JSON object from REST service?

I used JSONGenerator to generate a customized JSON String. I know I can return sObject or String using Salesforce REST. But now I am sure I do not want to return sObject because I want the customized ...
5
votes
3answers
5k views

Two Way Authentication and SSL Certitificates

I'm building an integration to a third party webservice, and wanted to implement Two Way SSL Certificates based on this article We started out using Digicert certificates, but after many hours of ...
12
votes
8answers
5k views

Does Schema.GetGlobalDescribe() Account for Prefixes?

It seems to me that in my dev org at least, the keys for the map returned by Schema.GetGlobalDescribe() do not use namespace prefixes... so does anybody know what happens when there are two objects ...
1
vote
1answer
893 views

Getting revised map <id, string> data back into original list under same id

I seem to be having difficulty getting data from a map back into a list so that it corresponds to the correct Id and field it was originally associated with after it's been modified in a trigger. For ...
4
votes
2answers
499 views

<inputfile> doesn't accept .pdf files - authorization required error

Our organization has a Visualforce page, exposed through sites, that allows users to upload a file. When uploading .pdf files, users receive the generic authorization required error. They can, however,...
2
votes
3answers
2k views

Ramifications of replacing Contracts with a custom object

My question is related to one of my earlier questions. Exposing the contract object in the customer portal Basically, we need to expose the Contract object in our customer portal. But SF currently ...
1
vote
1answer
2k views

Using ForceIDE, how can I view the system.debug called from a class or trigger? ( I can see the ones from my test Class)

I am using the Eclipse Force.com IDE and have created a test class as well as a trigger. I put a system.debug in both but the Apex Test runner only displays the debug of the test class and not the one ...
5
votes
4answers
7k views

Scraping text from email and storing in a field

I know that there is a web to lead form I can create to do something similar, but is there an easy way to get the inbound email address which can be monitored and the data from the email can be ...
1
vote
1answer
3k views

Accessing custom settings in Email templates

Is it possibble to access the custom settings in Email Templates directly? (I know I can refer the custom settings in formula, and then refer this formula field in the email template) I am facing an ...
1
vote
1answer
63 views

Reference from page to SObject which is another package

I have a reference in VF page to a SOBject from another package like this... <apex:pageBlockTable value="{!UsageStats}" var="usageStatRecord"> <apex:column headerValue="AM_Details__c"...
0
votes
1answer
143 views

Running ApexClasses in PE with Security Review and Certification

I've a managed package which I would like to be installed in a Professional Edition. When I try to install the package in the PE, I get following error, of course my package has few ApexClasses/Pages/...
13
votes
1answer
3k views

Passing variables to Joined Reports

Is it possible to pass variables to Joined Reports (as in pv0=) and/or is it possible to set the Time Frame selector for each report in a Joined Report? The problem I am trying to solve is having one ...
3
votes
1answer
183 views

How to add ContentVersion data to an outbound email from a Trigger

So I have the following class: public static void sendmail(String documenttitle) { List<Id> contactids = new List<Id>(); List<user> con = new List<User>(); con = [...
2
votes
1answer
219 views

Not grasping the error checking when dealing with a trigger

Hello and thank you for your time. I have created a trigger on an opportunity that 'should' only run my methods if the stageName = 'PO IN(100%) and a contract is not already created.. as well if ...
9
votes
1answer
7k views

How to handle NULL values when inserting with the Dataloader(.io)

I'm uploading records with the amazing dataloader.io and have a hard time to upload some records with NO value for optional fields. What do I have to put in those fields? #N/A 'null' NULL '' "" 0 Is ...
3
votes
1answer
1k views

how to make a list persist in a controller on page redirect

I have the following search function: public List<User> SearchResults {get; set;} public ContactSearchController() { if(SearchResults == null) { ...
2
votes
2answers
709 views

TestClass code Coverage

public string main(string url) { Http h= new Http(); HttpRequest req= new HttpRequest(); req.setEndpoint(url); req.setMethod('GET'); ...
3
votes
2answers
3k views

BR() tag in default value formula of a text area (long) field not working

I have a text area (long) field. It contains the default value "Text1" & BR() & "Text2". It never renders the br() tag correctly, the final result is always 'text1 BR() text2'. Field type ...
1
vote
1answer
497 views

Cannot use StandardSetController with ContentVersion?

I am trying to display a list of documents stored in Salesforce CRM Content on a VF page using JQGrid. I used OFFSET for paging. Since the number of records is more than 2000, I wanted to use ...
1
vote
3answers
2k views

how to remove span from pageBlockSection

i have one pageblocksection. i want to remove Required information displaying on right hand side. Thanks. <apex:pageBlockSection columns="2" title="Personal Data"> <apex:pageBlockSection ...
3
votes
2answers
2k views

Multiple toAddresses in sendEmail

Trying to use sendEmail() SOAP functionality (generating XML as in this example). According to the sendEmail() documentation you can use a list of emails in the toAddresses field. How are these ...
3
votes
3answers
5k views

Getting selected picklist values and moving them between two lists

I have 2 multi selectlists and 2 buttons in visualforce page and the buttons are Add and Remove. The first picklist has some fields, and when I select some fields and click on Add button than these ...
2
votes
1answer
325 views

unit testing custom email validations

I have a catch-22 issue that I have been unable to test fully. I am using a W2L form to input lead information remotely and its well documented that using an email field can cause the record to fail ...
3
votes
1answer
4k views

Test class is not visible. Can I not call a test class from a separate test class?

Hello and thank you for taking the time to read my question. I am getting near the end of finally testing my new trigger, and started to clean up my code. I decided(as recommended by others in this ...
4
votes
1answer
265 views

What is the Deployment Testing Scope

I have a question related to Salesforce.com Deployment. When we try to Validate/Deploy a new Change Set, am I right when I say that it will execute every single test affected by the Apex class / ...
12
votes
5answers
6k views

Organization Administration Locked…?

After having my Developer Console not be able to save a class that I edited, I faced this error message when trying to edit/save the class directly in the browser: Organization Administration Locked ...
3
votes
1answer
406 views

Visualforce w/ Custom Controller Not Behaving as Expected

I am trying to create a VisualForce page, with a custom controller, that displays the feed items from the chatter feed of the record provided by the user. The goal is to have the page start with ...
1
vote
1answer
708 views

dashboard to display 2 text values

Is there a way to create a dashboard that has the format : Region Status (Rich text) North America pending Japan o Yet to be approved o Waiting for ...
4
votes
6answers
18k views

displaying a Map<String, Map<String, Object>> in visualforce page

so, say I have the following map: public Map<String1, Map<String2, Object>> objectMap {get; set;} public List<String> ListofString1Entries {get; set;} public List<String> ...
4
votes
2answers
1k views

Limit size of email address?

I create an email address as per spec. I get a huge email address emailreceiverservice@4-1hfmpkbetc58ltv1h1zyf4hqmnc0c6ucc653lk76ptyb4d10vl.i-hqfceak.il.apex.salesforce.com Is there any way to get a ...
1
vote
1answer
3k views

Using a VF inputfield as a variable in a custom controller

I am in the process of learning APEX/VisualForce, and I'm working on a VF page that lists out all of the chatter posts from a specific record. Right now, the record that it displays the feed for is ...
6
votes
2answers
4k views

How to get the IsSyncing to TRUE on a QUOTE in test class?

Hello and thank you for taking the time to read my question, this may be a really stupid question but I have been banging my head all morning into finding the answer. I looked at the Quote Schema as ...
15
votes
3answers
9k views

Visualforce and Apex Theme for Notepad++

Are there complete themes for Visualforce and/or Apex for Notepad++? Ideally with autocomplete for all parameters and methods and code highlighter? I made custom a theme for Visualforce only but ...
3
votes
3answers
5k views

How to get force.com site URL? [duplicate]

I have created one site page. I send a link to this page to some users in an email. Currently, the site page is in a sandbox and I have hard coded this link in email. This means when I move this to ...
0
votes
2answers
151 views

Problem in Radio button in IE7?

When I use apex:selectRadio on VF page it works fine in chrome but when I use IE7 there is space gets increased between button and option name. Any one suggest Reason ?
4
votes
3answers
2k views

Maintenance Exam for Advanced Developer and Consultant

To keep the Salesforce certification, we should take maintenance exam for 3 release per year. Since the prerequisites for Advanced Developer is completion of DEV401 and ADM201 for Sales Cloud/Service ...
8
votes
4answers
585 views

Mismatch in Links recieved through email alerts and User getting redirected to home page

We have a case where our users create tasks. When they create tasks, they also check the "Send Email Notification" checkbox present on the task. As a result the owner of the task, receives an email ...
1
vote
1answer
96 views

Generating leads from website/blog

I need to connect my website/blog with Salesforce. The intention is to get leads when a user comes and registers via a registration form. Can anybody guide me on how to get it working?
6
votes
2answers
5k views

Redirecting to a page?

I know lot of folks would you say this topic was covered previously. Please do check out the question once, if its updated please provide me the link. Scenario : I want to take an wizard flow. Two ...
18
votes
2answers
8k views

What is the best way to display date values formatted with users locale with JavaScript Remoting?

If you query a Date or a DateTime field with JavaScript Remoting the value returned will be the number of milliseconds since 1970 such as, 1359147598000. Good for data consistency...bad for user ...
8
votes
1answer
2k views

“Maximum stack depth reached: 3” when doing String.replaceAll()

I am getting a strange "Maximum stack depth reached: 3" when doing a String.replaceAll() with bigger Regex on a quite big string (40 lines of text). I am trying to remove any comments and literal ...
1
vote
2answers
122 views

Getting correct data from a list would a for loop be best practice?

Hello and thank you for taking the time to read my question. I have a simple call to the recordType object that will have to results. The reason I have two results is because I need to verify of the ...
21
votes
1answer
4k views

SOQL query to load Task returns nothing, but I see task in UI

I am trying to load all tasks of a contact via SOQL query: SELECT Id, Subject FROM Task WHERE WhoId = 'contactId' This query returns only partial list of Tasks. I.e. in UI I see tasks directly ...

15 30 50 per page