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
Craig ChurcherCraig Churcher 

Record Type Code

Hi Everyone,

I'm an Admin that hasn't really used code before in Salesforce. I've created a custom button to create a new event record and the code I'm using below (which I obtained elsewhere) isn't working. The record type ID is correct, but I don't know if the code for the button is configured properly. The security permissions for all the users of the record type I beleive are correct. can anybody help??{!Account.Id}{!Account.Id}&ent=Event&RecordType=012D00000007NsD

Thanks everyone. You're help would be really appreciated!

Hi Craig,
The only thing I find wrong here is the {!} used twice{!Account.Id}{!Account.Id}&ent=Event&RecordType=012D00000007NsD

instead it would be,{!Account.Id}&ent=Event&RecordType=012D00000007NsD
I don't see anything else wrong here. Is this a on-click URL button?
the earlier line added a wrong <b> tag. Here is the correct line{!Account.Id}&ent=Event&RecordType=012D00000007NsD

Craig ChurcherCraig Churcher
Tnaks for this. It still tells me that the Record Type is Unavailable. Maybe there's something wrong with the way I've configured the rercord type permissions?
Try creating a normal record with the same recordtype. Can you create? 
Craig ChurcherCraig Churcher
Hi. For some reason I still cannot create. Can you help? Sorry for my late response!