function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
NAlmolaNAlmola 

Record Type on Custom button not working?

Have added the &RecordType text to the custom button URL to be placed within our Partner Community but it doesn't appear to be redirecting the Users to the correct Record type:

https://XXXXX.force.com/technicians/a0o/e?CF00Nw0000003MFwU={!Case.CaseNumber}&Name=QA{!Case.CaseNumber}&CF00Nw0000003MFwU_1kid={!Case.Id}&retURL={!Case.Id}&RecordType=012w0000003IUB

Have already checked the following
1) Record Type id is correct:
 id=012w00000003IUB&type=01Iw0000000UUiw&setupid=CustomObjects%3Fsetupid%3DCustomObjects

2) Profile has access to the specified Record Type:
User-added imagePlease see attached screenshot
Sagar PareekSagar Pareek
Hi Norah,
I think your button should use -
/a0o/e?CF00Nw0000003MFwU={!Case.CaseNumber}&Name=QA{!Case.CaseNumber}&CF00Nw0000003MFwU_1kid={!Case.Id}&retURL={!Case.Id}&RecordType=012w0000003IUB
and you should remove
https://XXXXX.force.com/technicians

this should be done on both apex and configuration based buttons. Salesforce will prefix the domain automatically.

Example for configuration based buttons ( non apex ) -
if('{!Properties__c.Type__c}'=='Negotiating'){
  window.top.location = '/a0B/e?CF00N29000000evMm={!Properties__c.Name}&CF00N29000000evMm_lkid={!Properties__c.Id}&retURL=%2F{!Properties__c.Id}&RecordType=012290000000D6V';
}
The above example is not having any type of prefix.

 
NAlmolaNAlmola
Hi Sagar,

Have removed the part of the URL as you suggested but the link doesn' go anywhere when the button is pressed.