- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Just following up to see whether my suggested solution worked for you.
If you're still facing any issues, I'd be happy to help further.
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
@Ankur Bawiskar
Thank you for your reply, it is helpful!
One more thing I would like to ask is I have a script include [sys_script_include] where the logic is already set up and wanted to reuse that here to set up the visibility condition. Can I use that script include directly ? If yes then how? or what is the alternate way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Glad to know that my comment helped you.
Yes you can call that script include function from the scripted property field but remember you will have to ensure you pass correct parameters to that method
Example: if your function requires sysId or number you need to grab accordingly and send
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader