Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Not able to add 'Agent Assist' on SCTASK record Contextual Side Bar on SOW view

KinshukBansal
Kilo Explorer

I want to add 'Agent Assist' on SCTASK record Contextual Side Bar on SOW view (similar to Incident where attachment, templates are available).

 

I've followed the below steps but still I'm not able to add 'Agent Assist' on SCTASK record Contextual Side Bar on SOW view:

1] Opened 'Record(Record SNC)' component record & Clicked on 'Contextual Sidebar' component & Opened 'Agent assist SNC' Viewport under Configure tab under UI Builder Service Operations Workspace Experience.
2] Opened 'Agent Assist SNC' Record in Editor.
3] Clicked on Settings on Header & Add Condition [Table is sc_task] & Clicked on Save.
4] Created new Table Configurations record in Contextual Search > Table Configuration module ('cxs_table_config' table).
5] Created new Action Assignment record in Workspace Experience > Actions & Components > Contextual Side Panel module ('sys_declarative_action_assignment' table).
6] Copied the Sys_id of record created in Step-4 & paste it in Component Attributes field under Component Attributes Section.
7] Opened 'Agent assist SNC' Record in 'sys_ux_screen' table & written this code 

on Line No. 17 under 'macrocomponent configuration' field.

"sc_task": "sys_id of record which in step 4" .
8] Opened Record in 'sys_ux_screen_condition' table whose "Screen=Agent assist SNC" & written this code on Line No. 22 to 24 under 'script' field

else if(params.tables=='sc_task'){
return (recGr.active || isNewRecord) && (gs.hasRole('itil'));
}

1 REPLY 1

PoonkodiS
Tera Expert

Hi @KinshukBansal ,

Might be this article helps you to solve your issue.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1383165

 

Thanks,

Poonkodi