How to Launch Change Request or Problem/Release/ from Task form in RF Console

1.Login to Remedyforce as Admin

2. Go to Rf Administration > Manage Objects > Tasks

3. Add new field of type “Formula” and return type text called as Launch CR

Put below formula

Link to Change

HYPERLINK(“javascript:if(window.parent.isServiceCloudConsole){window.parent.addSConsoleTab(‘/apex/BMCServiceDesk__ChangeConsole?record_id=” & BMCServiceDesk__FKChange__c & “&record_name=”& BMCServiceDesk__FKChange__r.Name &”&isServiceCloudConsole=true’,'”& Name &”‘ );}else{var loc = window.parent.location.href; if(loc.indexOf(‘isRFConsoleDetailForm=true’)!= -1){window.parent.parent.addTab( ‘” & BMCServiceDesk__FKChange__c & “‘, ‘” & BMCServiceDesk__FKChange__r.Name & ” ‘,’Change_Request__c’);}else{ var win =window.open(‘/apex/BMCServiceDesk__RemedyforceConsole?record_id=” & BMCServiceDesk__FKChange__c & “&objectName=Change_Request__c’);}}”, BMCServiceDesk__FKChange__r.Name,”_self”)

 

4.Save

5. Add this filed to the Task form by going to appropriate Field Sets  on Task object

6. Save.

7. Verify you can launch related CR from task

 

Link to problem

 

HYPERLINK(“javascript:if(window.parent.isServiceCloudConsole){window.parent.addSConsoleTab(‘/apex/BMCServiceDesk__ProblemConsole?record_id=” & BMCServiceDesk__FKProblem__c & “&record_name=”& BMCServiceDesk__FKProblem__r.Name &”&isServiceCloudConsole=true’,'”& Name &”‘ );}else{var loc = window.parent.location.href; if(loc.indexOf(‘isRFConsoleDetailForm=true’)!= -1){window.parent.parent.addTab( ‘” & BMCServiceDesk__FKChange__c & “‘, ‘” & BMCServiceDesk__FKChange__r.Name & ” ‘,’Problem__c’);}else{ var win =window.open(‘/apex/BMCServiceDesk__RemedyforceConsole?record_id=” & BMCServiceDesk__FKProblem__c & “&objectName=Problem__c’);}}”, BMCServiceDesk__FKProblem__r.Name,”_self”)

Link to Release

HYPERLINK(“javascript:if(window.parent.isServiceCloudConsole){window.parent.addSConsoleTab(‘/apex/BMCServiceDesk__ReleaseConsole?record_id=” & BMCServiceDesk__FKRelease__c & “&record_name=”& BMCServiceDesk__FKRelease__r.Name &”&isServiceCloudConsole=true’,'”& Name &”‘ );}else{var loc = window.parent.location.href; if(loc.indexOf(‘isRFConsoleDetailForm=true’)!= -1){window.parent.parent.addTab( ‘” & BMCServiceDesk__FKRelease__c & “‘, ‘” & BMCServiceDesk__FKRelease__r.Name & ” ‘,’Release__c’);}else{ var win =window.open(‘/apex/BMCServiceDesk__RemedyforceConsole?record_id=” & BMCServiceDesk__FKRelease__c & “&objectName=Release__c’);}}”, BMCServiceDesk__FKRelease__r.Name,”_self”)

 

 

Advertisements

6 thoughts on “How to Launch Change Request or Problem/Release/ from Task form in RF Console

  1. Hi, getting a syntax error on this bit when I try to save.

    “javascript:if(window.parent.isServiceCloudConsole){window.parent.addSConsoleTab(‘/apex/BMCServiceDesk__ChangeConsole?record_id=”

    Like

    • Please try this – I will put a text attachment as the HTML code is adding some more characters on this webpage

      HYPERLINK(“javascript:if(window.parent.isServiceCloudConsole){window.parent.addSConsoleTab(‘/apex/BMCServiceDesk__ChangeConsole?record_id=” & BMCServiceDesk__FKChange__c & “&record_name=”& BMCServiceDesk__FKChange__r.Name &”&isServiceCloudConsole=true’,'”& Name &”‘ );}else{var loc = window.parent.location.href; if(loc.indexOf(‘isRFConsoleDetailForm=true’)!= -1){window.parent.parent.addTab( ‘” & BMCServiceDesk__FKChange__c & “‘, ‘” & BMCServiceDesk__FKChange__r.Name & ” ‘,’Change_Request__c’);}else{ var win =window.open(‘/apex/BMCServiceDesk__RemedyforceConsole?record_id=” & BMCServiceDesk__FKChange__c & “&objectName=Change_Request__c’);}}”, BMCServiceDesk__FKChange__r.Name,”_self”)

      Like

  2. Could you please provide a link to Service Request. Following link opens a Service Request as an Incident-

    HYPERLINK(“javascript:if(window.parent.isServiceCloudConsole){window.parent.addSConsoleTab(‘/apex/BMCServiceDesk__IncidentConsole?record_id=” & BMCServiceDesk__FKIncident__c & “&record_name=”& BMCServiceDesk__FKIncident__r.Name &”&isServiceCloudConsole=true’,'”& BMCServiceDesk__FKIncident__r.Name &”‘ );}else{ var loc = window.parent.location.href; if(loc.indexOf(‘isRFConsoleDetailForm=true’)!= -1){window.parent.parent.addTab( ‘” & BMCServiceDesk__FKIncident__c & “‘, ‘” & BMCServiceDesk__FKIncident__r.Name & ” ‘,’Incident__c’);}else{ var win =window.open(‘/apex/BMCServiceDesk__RemedyforceConsole?record_id=” & BMCServiceDesk__FKIncident__c & “&objectName=Incident__c’);}}”, BMCServiceDesk__FKIncident__r.Name,”_self”)

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s