• Tom Randall
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Heya, 

I am trying to create a Custom Button on the incident object that creates a Task and links it to the incident object record it came from. This was fine, see below:

{!REQUIRESCRIPT("/soap/ajax/22.0/connection.js")} 
var newtask= new sforce.SObject("BMCServiceDesk__Task__c"); 
newtask.BMCServiceDesk__taskDescription__c = "my new task"; 
newtask.BMCServiceDesk__FKIncident__c = "{!BMCServiceDesk__Incident__c.Id}"; 
var result = sforce.connection.create([newtask]); 
window.location.reload();

The issue i have is that it uses the default task record type, I would like it to bring up the select record type page. Is this possible?