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??

https://na4.salesforce.com/00U/e?evt6=SubjectGoesHere&what_id={!Account.Id}{!Account.Id}&ent=Event&RecordType=012D00000007NsD

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

Craig
Sforce.NinjaSforce.Ninja
Hi Craig,
The only thing I find wrong here is the {!Account.id} used twice

https://na4.salesforce.com/00U/e?evt6=SubjectGoesHere&what_id={!Account.Id}{!Account.Id}&ent=Event&RecordType=012D00000007NsD

instead it would be,
 
https://na4.salesforce.com/00U/e?evt6=SubjectGoesHere&what_id={!Account.Id}&ent=Event&RecordType=012D00000007NsD
I don't see anything else wrong here. Is this a on-click URL button?
 
Sforce.NinjaSforce.Ninja
the earlier line added a wrong <b> tag. Here is the correct line

https://na4.salesforce.com/00U/e?evt6=SubjectGoesHere&what_id={!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?
Sforce.NinjaSforce.Ninja
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!