Extract Variable from Record producer to Interaction

Spade
Tera Contributor

Hi team

 

We have an often used record producer at the front and centre of our Customer portal which becomes an interaction for triaging into either an incident or a request. I would like to extract some or all of the detail from the variable and place in the short description of the Interaction. I've tried a few scripts with zero luck, any suggestions?

 

thanks

adie

5 REPLIES 5

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hi @Spade 

Any entry in record producer will be stored in question_answer table. glide record on question_answer table would work.

Can you please provide the script you have used so that we can help further.

 

 

Please mark this answer as helpful and correct if helped.

Kind Regards,

Ravi Chandra

Hi Ravi, thanks so much for the quick reply and apologies for my delayed response. Scripting is def not my strong suit but versions of this has worked for email notifications but can't seem to get the variable detail into the work notes of the interaction. Can pick up the variable detail, not sure how to tell it to plonk it into the

interaction work notes and the record producer is in the interactions table

Spade
Tera Contributor
current.short_description = 'User reporting an issue or request via the portal ' + producer.asset_id;
current.type = 'portal';

current.opened_for = gs.getUserID();

    // Get Variables
    var issue = current.variables.what_do_you_need_help_with.getDisplayValue();

   
    template.print(what_do_you_need_help_with + "\n");

losl the script would help
 
var assign = new GlideRecord('sys_user_group');
assign.addQuery('name', 'Service Desk (NRI)');
assign.query();
if (assign.next()){
    current.assignment_group = assign.sys_id;

Harish KM
Kilo Patron
Kilo Patron

HI @Spade is your record producer runs on Interaction table?

Regards
Harish