apex-code Questions

1

Since the Salesforce.com Apex language is "Java-like", I'd like to use javadoc or Doxygen to generate API documentation for the package we plan to release on App Exchange. I found an ApexDoc proje...
Rayerayfield asked 6/8, 2012 at 21:25

2

Solved

I was recently looking at wrapper classes and googled the following page...http://wiki.developerforce.com/page/Wrapper_Class While I understood wrapper classes, I was baffled by the following... ...
Democritus asked 22/8, 2013 at 7:20

1

Solved

I'm getting this error from the line of code below: Error: AddIMRConroller Compile Error: Initial term of field expression must be a concrete SObject: LIST at line 21 column 23 string[] str1 = im...
Gastritis asked 4/8, 2013 at 12:52

1

I have create a RESTful service on Force.com using Apex below is my code. @RestResource(urlMapping='/helloWorld/*') global with sharing class RestWebservice { @HttpGet global static String hell...
Shabbygenteel asked 18/7, 2013 at 7:47

1

Solved

I have the following Trigger: trigger send_notification on Inquery__c (after update) { Inquery__c inquery = trigger.new[0]; String[] toAddresses = new String[] {inquery.email__c}; Messaging....
Skilken asked 11/6, 2013 at 15:18

1

Solved

Friends, I have a contact us/Inquiry form in my website. I want to generate a lead in Sales force CRM on submission of this form. What I have tried ? I have checked in salesforce doc and Google...
Airway asked 30/5, 2013 at 5:58

3

Solved

I want time delay before function call in apex code. I already created one delay method but it is not working as per expectation. So, is there any way to get this working. Thanks in advance.
Wale asked 28/5, 2013 at 12:20

1

Solved

How do I parse a jsonObject which is in a given format in Apex? I need List<String> from the items array which contains the id attribute. What is some appropriate method? For parsing it, I try...
Celerity asked 16/2, 2013 at 16:43

2

Solved

I have an apex function which has a void return type. I want to exit the function at a specific position. Is this possible in apex without changing return type pagereference?
Recusancy asked 13/2, 2013 at 6:11

1

Solved

I am trying to get all picklist values from a field in salesforce using REST API. Is it possible to do that? If it is then how it can be done? Thanks, Raj.
Lordship asked 9/1, 2013 at 9:22

2

Solved

I'm struggling with this situation.. I have a Standard Object in SFDC (Opportunity) that has a custom look up field pointing to the User object what I'm trying to do is populate this field with the...
Maddox asked 29/8, 2012 at 17:41

2

Solved

I have not been able to get any reliable information about this issue online. But I think it must be an issue which must be affecting a lot of people. Basically I wrote a simple trigger and test c...
Sandstone asked 17/8, 2012 at 16:34

4

Solved

I cannot find where in the salesforce.com UI I can add a trigger on a file attachment. I can find triggers on almost everything else, but attachment seems to be missing from the list (even when I v...
Sebastian asked 22/3, 2011 at 17:53

1

Solved

Hi i am trying to create an apex rest service but getting error Invalid type for Http* method: system.RestRequest here is the function where i am getting this error . @RestResource(urlMapping='/...
Mecke asked 24/7, 2012 at 2:46

2

Solved

I am trying to develop a visualforce custom component which takes an attribute from a visual force page. I need to access that attribute in controller's Constructor so that i can brings some record...
Cohune asked 19/7, 2012 at 11:12

2

Solved

When there are adjacent separators in the split expression I expect null or an empty string--not have it eliminated. The Java code is below: public class splitter { public static void main(Strin...
Boxwood asked 17/7, 2012 at 1:11

3

Solved

I wrote a simple program and want to see the output when I run the code. When I run it in the force.com IDE using the 'Annoymously execute apex code'command I get a lot of unwanted results, when I ...
Atalie asked 24/4, 2012 at 17:50

2

Solved

I am just getting started with doing moderate web development work in Salesforce for my company, and I'm looking for some feedback/insight into the deployment process. Right now it's looking like w...
Phenomenal asked 22/6, 2012 at 13:8

2

Solved

I'm looking for a technique to execute Apex code from a custom button added to the Opportunity object in a way that protects the user against CSRF. The current approach being used comes from the q...
Hesperidin asked 30/5, 2012 at 3:9

3

Solved

We are considering moving a planning and budgeting app to the Salesforce platform. The existing app is built on a dimensional data model, and has extensive ad-hoc query capability implemented throu...
Utu asked 5/11, 2011 at 16:8

1

Solved

Is there any way to check if a list contains a certain element? I looked at the List functions and did not see any contain() function like Java or C# , so I was wondering how other people are handl...
Tracy asked 16/5, 2012 at 21:2

1

Solved

I am using the LMA (License Management Application) and want to know if it is possible to programmaticaly tell if a user has been licensed for my package. Imagine if I wanted users of the applica...
Overstay asked 4/4, 2012 at 18:41

2

Solved

I have created a task in my org with subject "Email Task" i have written apex code as public class TaskInfoDAOClass { public static List<Task> queryTaskInfo () { integer count = [SELECT ...
Foremost asked 21/3, 2012 at 7:1

3

Solved

i want to call a apex method from a custom Button I realise we can achieve this 2 ways Calling a VF page which in turn calls the method on the page attribute <apex:page standardController="Op...
Perk asked 15/3, 2012 at 5:53

2

Solved

We have a scheduled job that runs on the 1st of each month with a Preferred Start Time of 1am. The job was scheduled using the Salesforce interface (Develop | Apex Classes | Schedule Apex). When it...
Cryohydrate asked 14/3, 2012 at 18:46

© 2022 - 2024 — McMap. All rights reserved.