- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi Community ,
I am trying to bring email mini compose into RITM view in service operations workspace according to some states and specific catalogue items .
For that I added the email attribute to sc_req_item Table and now for every RITM in workspace , I can see the mini email compose .
Now i need to restrict it so that only if the RITM is of Item => CAT_ITEM1 and State 15 (custom state) , The email compose should show on workspace .
In my understanding It should be done by duplicating the default record variant page of RITM with less order than original and go to show mini compose and add condition to that .
But how do i add this specific conditions to the mini email compose .
That's where I am having confusion.
Is there any better ways to achieve this functionality ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours 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 hours ago
Hi @irfan_fedserv
You can avoid duplicating the variant page here. That property is bindable, so the condition can sit right on it.
In UI Builder, open your RITM record page and select the Email Mini Compose component in the Component tree. In the Configure panel on the right, you can click the visibility icon, then the script icon, and drop this in:
function evaluateProperty({api, helpers}) {
var rec = api.data.record;
return rec.cat_item.value == 'CAT_ITEM1_SYS_ID' && rec.state.value == '15';
}
You can replace api.data.record with whatever your record data resource is actually called. The name shows in the Data panel at the bottom of UI Builder, and it's the same one feeding your @record.isEmailClientEnabled binding.
You could try this before going down the duplicate page route, as it's quick to undo if it doesn't suit.
You can also check this link: https://www.servicenow.com/community/next-experience-articles/practical-uib-examples-hide-a-containe...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @IbrarA ,
I found that this property in advanced is the one that controls only the visibility of email part .
I don't have an idea how to do the scripting here. Any help or official documentation would be appreciated.
Thanks
Irfan Habeeb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours 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 hours ago
Thank you @Ankur Bawiskar ,
this article really helped
