Email section visibility in activity stream compose in UI builder

khareakshay
Tera Expert

I have a custom condition configured for the visibility of email section in activity stream compose in CSM workspace which hide or unhide the email section based on certain conditions. I want to check these condition but unable to find where this is configured. Please refer the attached image and guide where I can find the custom condition

khareakshay_1-1784874424005.png

 



 

 

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron

@khareakshay 

this link has solution

Service Operations Workspace – How to display the “Email” section in Compose pane for some states? 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

Hi @khareakshay ,
If you want to pass the value present in the form, pass the sys_id from the UI Builder Page and here in the data broker GlideRecord to that table and get the value of u_lcc_account value.
Copy paste the following in the properties field of the Data broker,

[
 {
        "name": "sysId",
        "label": "Record SysID",
        "description": "Sysid of the current record",
        "fieldType": "string",
        "mandatory": false
    }
}

Change your data broker script to like below;

function transform(input){
var sysId=input.sysId;
var tableGr=new GlideRecord('your_table_name');
tableGr.get(sysId);
var gr= new GEMEditableVisibilityv2();
return gr.isIDNManagementPersona(tableGr.u_lcc_account);
}

If you add this data broker in the UI Builder page, it will ask you to provide sysId there map dynamically from the api.context.props.sysId
If my response helped, mark it as helpful and accept the solution.
Thanks,
Dinesh

View solution in original post

10 REPLIES 10

Tanushree Maiti
Tera Patron

Hi @khareakshay 

 

refer:

 

KB2746296 How to enable Mini Email Composer in Compose (Activity Stream) section of a workspace 

 

https://www.servicenow.com/community/developer-forum/ui-builder-hiding-related-tabs-and-compose-emai...

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti