I have a Custom Button in Salesforce that uses a URL hack to pass a couple of parameters across. This button is launched from the Opportunity Page, and refers to a Custom Object called 'Cross Sell'. When this button is clicked, I need to go to the Record Type Selection Page (for Cross Sell) and then upon picking the desired Record Type, for a number of these parameters to pass across. Most of this is working fine, however I find when I pick a Record Type and select it, it reverts back to the Default Record Type for Cross Sell. Not sure why this is happening (I've checked my workflows and can't see a reason for this). The URL hack is below. Any help would be much appreciated:

  • 1
    So you get taken to the edit page appropriately? Is there any code that works on this object that could be setting the record type?
    – Eric
    Nov 24, 2014 at 4:17
  • Hi Eric, thats correct. I get to the edit page fine, and most of the parameters pass across correctly. This is a new Custom Object so there's no code yet that could be setting the Record type.
    – user8622
    Nov 24, 2014 at 6:01

1 Answer 1


I tried this hack for one of my implementation and it worked like a charm. I suspect one of 3 things :
1. A workflow rule
2. An Apex Trigger
3. Other record types not accessible on profile.

Profile View OR

Enhanced Profile View

  • Hi Amit, thanks for your answer. I've re-checked the user profiles and the workflow rules. All profiles have access to all Record Types and there are no Record Name field updates for this Object. I'm also not a coder, so there's no Apex Triggers for the Cross Sell Object. I've noticed this issue only occurs for some Users and not others (people on the same profiles)
    – user8622
    Nov 24, 2014 at 7:13
  • Could it be url encoding/browser based ? Feb 10, 2015 at 7:20

You must log in to answer this question.

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