Skip to main content
All CollectionsAttachments.expertFAQ's
How to create a visualforce page for Attachments.expert?
How to create a visualforce page for Attachments.expert?
Updated over 3 months ago

VisualForce Page for a Standard Object:

  • The below example shows Visualforce page for Review Object.

  • To create a Visualforce page called Review_Attachments Goto :

  • Setup►Develop►Pages►New

  • Enter the name for the page as Review_Attachments and enter the following code in the page.

In the above example parameters are described as follows-

  1. RecordId : RecordId parameter passes parent record id to the Attachments, under which attachments will be created. e.g. Review Id in this case

  2. FolderPath : Folderpath will specify in which folder on storage server the file should be saved. This is configurable and you can also use any formula field to specify path of your choice based on the record

  3. LookupFieldName : LookupFieldName should be the API name of the lookup field on Attachment using which Attachment is related to the parent record, for which the Record Id is provided above

Did this answer your question?