Skip to main content
Added in closing quote. Modified question to specify Attachment Delete
Source Link
Peter Knolle
  • 29.2k
  • 12
  • 104
  • 164

Why isn't Attachment Delete action recognized when using it with URLFOR

I am trying to use the following on a VF page, but I am getting an error:
Error: Field $Action.Attachment.Delete does not exist. Check spelling
when I try to save the VF page.

<apex:outputLink value="{!URLFOR($Action.Attachment.Delete, attachment.Id)}"/>

Error: Field $Action.Attachment.Delete does not exist. Check spelling

The following works in the same page:

<apex:outputLink value="{!URLFOR($Action.Attachment.Download, attachment.Id)}" target="_blank">

Thanks!

Delete using URLFOR

I am trying to use the following on a VF page, but I am getting an error:
Error: Field $Action.Attachment.Delete does not exist. Check spelling
.

<apex:outputLink value="{!URLFOR($Action.Attachment.Delete, attachment.Id)}

The following works in the same page:

<apex:outputLink value="{!URLFOR($Action.Attachment.Download, attachment.Id)}" target="_blank">

Thanks!

Why isn't Attachment Delete action recognized when using it with URLFOR

I am trying to use the following on a VF page, but I am getting an error when I try to save the VF page.

<apex:outputLink value="{!URLFOR($Action.Attachment.Delete, attachment.Id)}"/>

Error: Field $Action.Attachment.Delete does not exist. Check spelling

The following works in the same page:

<apex:outputLink value="{!URLFOR($Action.Attachment.Download, attachment.Id)}" target="_blank">

Thanks!

Tweeted twitter.com/#!/StackSalesforce/status/245900389562580992
added 2 characters in body
Source Link
PepeFloyd
  • 8k
  • 2
  • 34
  • 57

I am trying to use the following on a VF page, but I am getting an error:
Error: Field $Action.Attachment.Delete does not exist. Check spelling
.

<apex:outputLink value="{!URLFOR($Action.Attachment.Delete, attachment.Id)}

The following works in the same page:

<apex:outputLink value="{!URLFOR($Action.Attachment.Download, attachment.Id)}" target="_blank">

Thanks!

I am trying to use the following on a VF page, but I am getting an error:
Error: Field $Action.Attachment.Delete does not exist. Check spelling
.

<apex:outputLink value="{!URLFOR($Action.Attachment.Delete, attachment.Id)}

The following works in the same page:

<apex:outputLink value="{!URLFOR($Action.Attachment.Download, attachment.Id)}" target="_blank">

Thanks!

I am trying to use the following on a VF page, but I am getting an error:
Error: Field $Action.Attachment.Delete does not exist. Check spelling
.

<apex:outputLink value="{!URLFOR($Action.Attachment.Delete, attachment.Id)}

The following works in the same page:

<apex:outputLink value="{!URLFOR($Action.Attachment.Download, attachment.Id)}" target="_blank">

Thanks!

Source Link
PepeFloyd
  • 8k
  • 2
  • 34
  • 57

Delete using URLFOR

I am trying to use the following on a VF page, but I am getting an error:
Error: Field $Action.Attachment.Delete does not exist. Check spelling
.

<apex:outputLink value="{!URLFOR($Action.Attachment.Delete, attachment.Id)}

The following works in the same page:

<apex:outputLink value="{!URLFOR($Action.Attachment.Download, attachment.Id)}" target="_blank">

Thanks!