You need to sign in to do that
Don't have an account?
kevin.chiles
URl In custom button is not redirecting to record but homepage
Hello,
I am using a custom button on my custom object to return to the record for that object I just created. However, this failing and sending me to the home page upon save. Can anyone let me know what I am doing wrong? Here is the button url
/a19/e?CF00NP0000000YeGC_lkid={!SPA__c.Id}&CF00NP0000000YeGC={!SPA__c.Name}&RecordType=012P00000004XK9&retURL=%2F{!SPA_Discount__c.Id}&saveURL=%2F{!SPA_Discount__c.Id}
My object is the SPA_Discount__c object.
Sooooooooo....clearly, I am a genius. It was my save URL, not needed unless I am re-directing to another record, which, I was not. Here is the completed url to direct me to the record I just created
/a19/e?CF00NP0000000YeGC_lkid={!SPA__c.Id}&CF00NP0000000YeGC={!SPA__c.Name}&RecordType=012P00000004XK9&retURL=%2F{!SPA__c.Id}
And that folks, is how you realize that maybe you should drink a bit of coffee or tea before you go off writing custom buttons.