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 

Define Record Type on Custom Community button?

We currently have two profiles on our Partner Community whom each have a record type on a Custom Object. 

At the moment, we have a custom button on a case page layout which points to the first record type:

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

The second profile only has access to the second record record type yet can bring up the first by selecting the above button.

First question is how do we modify this button to provide dynamic selection of the correct record type according to profile? 

Second question, I've created another custom button to the second record type but it still redirects the User to the first record type, what's wrong with this picture? See below:

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