Assign to me button on incident sow form

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
i want to edit and put some conditions to the assign to me button present in incident sow form view.
I could not find where this button is present.
i tried to find this button in the declarative form actions but could not where is this present?
@Ankur Bawiskar any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
try this -> use toString() and compare strings
(current.state.toString() == '1' || current.state.toString() == '2') && new global.IncidentUtils().canAssignToMe(current);
💡 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 || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hello @Ankur Bawiskar ,
I tried this also but no luck also then i tried by deactivating the ui action i could still see the ui action in sow.
i did cleared the cache and reloaded the form no luck i think this is not the ui action perhaps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
that UI action comes from this Declarative Action
https://instanceName.service-now.com/nav_to.do?uri=sys_declarative_action_assignment.do?sys_id=b2e040ebcccb0110fa9b57df6cc55783%26sysparm_view=advanced
Update the Condition in Script Condition as this
global.AssetUtils.IS_HAMP_ACTIVE && current.getTableName() === "incident" && new global.IncidentUtils().canAssignToMe(current) && (current.state.toString() == '1' || current.state.toString() == '2')
💡 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 || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hello @Ankur Bawiskar ,
This is my pdi and i could not find this declarative action present.
I do not think this is that button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
yes that UI actions comes with HAM I believe and not the one you are looking for.
I will have to explore in my PDI
💡 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 || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader