Skip to main content
4 votes
Accepted

Body of Email using Visual force Email templare is missing in email

As you are using Email template so you need to remove this line mail.setSubject('Test email'); It will override your template. So remove this line and you will get email body.
Tushar Sharma's user avatar
4 votes
Accepted

Pass value from the visualforce page to a global variable of a class

A good solution to this is to use a proxy object in the controller to capture the dateTime value public Event evt { // proxy object, fld StartDateTime is creatable get { if (this.evt == null) ...
cropredy's user avatar
  • 72.1k
3 votes

How to add a decision element for a file upload in a FLOW to check whether the file was uploaded successfully

When I did this about 6 months ago, I manually mapped the contentDocumentIds to a collection variable. It ought to work without that, but I went the manual route, and I would like to believe that was ...
gorav's user avatar
  • 4,537
3 votes
Accepted

Maximum Attachment size

No. Because of the Heap Size limit, you will be limited to 6MB of data, 4.5MB if you have to base-64 encode the data. If you need larger file sizes, call the Chatter API directly by way of JavaScript.
sfdcfox's user avatar
  • 497k
3 votes

how to get picklist values from stage

To retrieve the values of picklist you need to use Schema.DescribeFieldResult. here is sample code to retrieve values of StageName picklist of Opportunity object. Schema.DescribeFieldResult ...
Mr.Frodo's user avatar
  • 5,812
2 votes

How to Auto Pause/Save Flow Interview when browser window is closed accidentally

You could write the data to a custom object in between each screen. To restart, you could direct them to a page to review their incomplete flows (or even use a flow screen w a dynamic choice to show ...
gorav's user avatar
  • 4,537
2 votes
Accepted

custom object multiple creation

control = new AKTARUS__c(); - control is being initialised only in constructor. When you are running the logic to insert (i assume its different in method as its not clear from question), it gets ...
salesforce-sas's user avatar
2 votes

Null check for Date field on VF Page

You can easily do this. Just use the render condition and display two OutputText. Based on the date field it will display output. <apex:outputText label="Date:" value="{0, date, MM/ dd/ yyyy}" ...
Tushar Sharma's user avatar
1 vote

Where to find navigation bar metadata in experienceBundle

As mentioned in this previous Q&A, navigation menus are a separate metadata type that end up in the navigationMenus folder in an sfdx project structure, as a peer of the experiences folder.
Phil W's user avatar
  • 37k
1 vote

How to add a decision element for a file upload in a FLOW to check whether the file was uploaded successfully

I did something similar to @gorav and found a way to do it a bit simpler. Don't need to manually assign variables on the upload component. Do still use the collection variable to store the Content ...
nfoley's user avatar
  • 145
1 vote

Sort a list in Visual Force Page

You can easily sort lists in apex using list.sort(): The List.sort method sorts SelectOption elements in ascending order using the value and label fields, and is based on this comparison sequence. ...
Abhijith E's user avatar
1 vote
Accepted

Required field missing account current object

Consider, if applicable, using a Quick Action, optionally with Predefined Field Values (although they aren't required simply to populate the master-detail field) to create this child record. Using a ...
David Reed's user avatar
  • 93.2k
1 vote

Apex Language Server Extension not getting activated in Visual studio code - ForceCode: Force Menu

ForceCode is a now-unmaintained project that is entirely distinct from Salesforce DX. The Apex Language Server is a third semi-independent piece of functionality, which is used by Salesforce DX to ...
David Reed's user avatar
  • 93.2k
1 vote
Accepted

Currency Type is not showing up on my Visual Force Page

In order to show the currency I believe you have to use and output field <apex:outPutField value="{!Purchase_Order__c.Total__c}"/>
Eric's user avatar
  • 54.2k
1 vote

Display an alert on the visualforce page from controller

You can accomplish it in below way: Declare a variable say errorMessage in controller as: public String errorMessage {get;set;} You have to set this variable in apex controller function whenever ...
Mukesh Verma's user avatar
  • 1,916
1 vote

Display an alert on the visualforce page from controller

There's a lot of ways you can do what you want, probably seeing your code most easy of them is not to use a pagereference method, because this will send you to another url You could try to declare a ...
Agusnovak's user avatar
  • 189

Only top scored, non community-wiki answers of a minimum length are eligible