8

The following snippet works well on a sandbox that's still on Spring 16 Lightning Experience but gives the same code gives an error on a sandbox running the Summer 16 release from a visualforce page : <a href="{!URLFOR($Action.Candidate__c.New, null,null)}" class="slds-button slds-button--neutral" >New</a> . The following error comes up on the sandbox running the Summer 16 update :

Looks like there's a problem. We couldn't find the record you're trying to access. It may have been deleted by another user, or there may have been a system error. Ask your administrator for help. Does anyone know what could be the cause of this or if there is workaround ?

3
  • 2
    It seems like Salesforce is trying to take you to the detail page of a record, rather than the new/edit page. If you changed your code to <a href="{!URLFOR($Action.Candidate__c.New, null)}" class="slds-button slds-button--neutral" >New</a> does it work?
    – dBeltowski
    Commented May 18, 2016 at 20:47
  • @DougB changing the code to that still does not work Commented May 18, 2016 at 21:06
  • Well the only thing I can suggest is you open a case with Salesforce.
    – dBeltowski
    Commented May 19, 2016 at 14:42

1 Answer 1

0

I've just tested this on our Summer '16 sandbox, and it seems to work fine.

<a href="{!URLFOR($Action.Custom_Object__c.New)}">Test</a>

The nulls can safely be left out on a link like this; give it a try if you haven't already. Hopefully it was just a bug that has been patched since.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .