How can I capture the standard object case 15 digit ID, and my situation is I want to create a custom button url which is having EDIT standard button features. In my case object, when I click on edit button the status field should change to 'New', but it not happening with standard edit button where I need to change manually from status A to status 'New'. So I thought I can create a custom button and when I click on it, it auto-populate the status field value to'New'. So for these reason I want to use custom button. !!!!Any Suggestions is really Appreciate.

  • Can you be more specific about functions you want? Because if you want only change in status than you need trigger not button. – Artur Kępczyński Feb 5 '14 at 14:56

You can create a custom button and add some custom parameters to the edit url. The url would look something like this: https://cs11.salesforce.com/{!Case.Id}/e?retURL=%2F{!Case.Id}&nameofyourstatusfield=New

To find out the name of your status field, view source on the edit page and look for the name attribute. It should look something like this: <select id="cas7" name="cas7" tabindex="2"></select>

So if the name of your status field is "cas7", the url would look like: https://cs11.salesforce.com/{!Case.Id}/e?retURL=%2F{!Case.Id}&cas7=New

|improve this answer|||||

If you want just change status please create before update trigger.

|improve this answer|||||
  • How about workflows? – Samuel De Rycke Feb 5 '14 at 17:09
  • workflow = additional update :) – Artur Kępczyński Feb 5 '14 at 18:00
  • not really different than a trigger .. both happen after the record is submitted from the page. – Samuel De Rycke Feb 5 '14 at 23:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.