Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 2538

Questions relating to Apex, the native programming language for the Force.com platform. Use it for general questions on syntax, errors, constructs, and rules of use. Most questions should include a code *excerpt* to help answerers understand specifically what has gone wrong or why you need help.

-4 votes
2 answers
3k views

Error: Compile Error: invalid ID field: Cus_obj_Record_ID at line 40 column 22

Hi Can anyone please tell me how to solve this error. Code: public class LeadConversion { public PageReference RedirecttoLead() { String currentLead = '/' + siteObj.Id; PageReference pa …
Lavanya Sanathkumar's user avatar
-3 votes
1 answer
497 views

Uploading from csv file to create Account and Contact

Hi when i am upload a csv to create Account and contact using Apex code. In the contact i need to give the acoount name which is a list. …
Lavanya Sanathkumar's user avatar
2 votes
1 answer
6k views

SObject row was retrieved via SOQL without querying the requested field: CustomLead__c.Compa...

I have created custom convert button on custom object which is to create account, contact & opportunity.Here i have attached the Apex code and visual force page code. … Your development organization has been notified.** Apex code: public class LeadConversion { public PageReference RedirecttoLead() { String currentLead = '/' + leadObj.Id; PageReference pageRef = new …
Lavanya Sanathkumar's user avatar
1 vote
2 answers
14k views

Error: Compile Error: Illegal assignment from String to SOBJECT:Account

I have created a custom field in custom object, in that i am getting the value and when clicked custom button "convert" which is create a new contact. But when converting i am getting this error. Err …
Lavanya Sanathkumar's user avatar
2 votes
1 answer
1k views

Uploading CSV file,Mapping custom fields to "Address fields" in Account

Apex code: public class FileUploaderAll { public FileUploaderAll(ApexPages.StandardController controller) { } public PageReference fileAccess() { return null; } public FileUploaderAll(){ } public string …
Lavanya Sanathkumar's user avatar
-5 votes
1 answer
5k views

Error: Compile Error: Non-void method might not return a value or might have statement after... [closed]

I am trying to upload a data file to salesforce on my custom object. This is similar to gmail upload. Here i have attached the code regarding this but i am getting error. I am getting this error. E …
Lavanya Sanathkumar's user avatar
1 vote
2 answers
810 views

Checking duplicate account name while uploading from csv file using Apex

while i am uploading from csv file i need to create account and contact i have achieved this using apex code. i need to check whether the account name already exist or not. … Whether i need to write apex trigger for this. kindly give me any idea to solve this. i am not using Dataloader i need to do this using programming. …
Lavanya Sanathkumar's user avatar
0 votes
1 answer
3k views

Attempt to de-reference a null object Error is in expression '{!ReadFile}' in component <ape...

But in this i am getting error,i tried a lot but i can't resolve this. my code apex class look like ths. …
Lavanya Sanathkumar's user avatar
1 vote

How to add break line in export text file

It working correctly, have changed the code for (Contact c : [Select Name,Phone,Email,Fax from Contact ]) { cs.add(c.Name.rightPad(40)+ c.Email.rightPad(30)+ c.Phone.rightPad(20)+c.Fax.rightPad(20) + …
Lavanya Sanathkumar's user avatar
2 votes
1 answer
6k views

Error:Dependent class is invalid and needs recompilation

Here i have attached the Apex code for calling the end point (Generated WSDL Apex code). I am getting error, i tried a lot but am not able to overcome this. Kindly any tell how to resolve this. …
Lavanya Sanathkumar's user avatar
1 vote
1 answer
6k views

How to convert the lower case to upper case while uploading from csv file using apex and VF ...

I have some apex code and a visualforce page for uploading a CSV file to create a new Account. In my file the account is given in lower case letter. I need to change it to uppercase. … APEX Code: for (Integer i=1;i<filelines.size();i++) { String[] inputvalues = new String[]{}; inputvalues = filelines[i].split(','); String SalesforceAccountNumber = inputvalues[2]; Acc_Bulider …
Lavanya Sanathkumar's user avatar
0 votes
1 answer
6k views

Test Code:Error: Compile Error: Invalid type: CustomLead_c at line 9 column 14

I am receiving "Error: Compile Error:Invalid typr; CustomLead_c at line 9 column 14". Can any pls tell me how to fix this error. *Code:* public class LeadConversion { public PageReference Redirectt …
Lavanya Sanathkumar's user avatar
1 vote
1 answer
5k views

How to add notes to opportunity using Vf page

Can any one tell how to do this using Vf and apex code. also tell me any links for this, waiting for your reply. Thanks in advance. Regards Lavanya. …
Lavanya Sanathkumar's user avatar
2 votes
1 answer
1k views

How to Swap a record from one section to another section in VF Page?

I have VF Page to display Today and NextDay records which is stored in another custom object.In that list my client wants the functionally to move the today's record to the NextDay table by clicking t …
Lavanya Sanathkumar's user avatar
0 votes
1 answer
512 views

Inserting Account and custom object record at the same time?

Hi i need to create a record in both Account and custom object"customlead" at the same. I tried this DataLoader but at a time we can select only one object. I need to select both how this could de res …
Lavanya Sanathkumar's user avatar

15 30 50 per page