When user clicks button in the esc portal it should navigate to mentioned record producer with value

Kishor O
Tera Sage

I have a custom create incident button in the esc portal under the knowledge article, on click of that button it should navigate to open an incident record producer along with that it should populate the short_description variable of the record producer to Knowledge article title or name then user will fill the required details and submits the form.

 

Please have a look on the image to understand the requirement in better way

KishorO_0-1698991721950.png

 

 

1 ACCEPTED SOLUTION

Hi Kishor,

Apologies for late response. Sure I'll help you out.

 

UtpalDutta_0-1699017709849.png

 

Put your URL in url variable but don't remove this line ('&short='+c.data.shortDesc;)

 

This will get the knowledge short description from the Server. 

 

Once the above URL is opened in new window you will notice that the short description of Knowledge Article is in the URL after short keyword.

 

Now you only need to run below Client script and you will get the short description.

 

var url = new GlideURL(top.window.location.href);
var test =  GlideURL.getParam('short');
g_form.setValue('your variable name', test);

 

Please mark my answer correct if it resolves your issue.

 

Thanks,

Utpal

View solution in original post

5 REPLIES 5

Please add c. before the function calling in ng-click. 

 

It should be like ng-click = "c.createIncident()"