The CreatorCon Call for Content is officially open! Get started here.

Assign to me button on incident sow form

Debasis Pati
Tera Guru

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.

DebasisPati_0-1760498293722.png

i tried to find this button in the declarative form actions but could not where is this present?

@Ankur Bawiskar any suggestions?

12 REPLIES 12

@Debasis Pati 

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! 🙏

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

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.

DebasisPati_0-1760507251764.png

DebasisPati_1-1760507274840.png


i did cleared the cache and reloaded the form no luck i think this is not the ui action perhaps.

 

@Debasis Pati 

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')

AnkurBawiskar_0-1760508502586.png

 

💡 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello @Ankur Bawiskar ,
This is my pdi and i could not find this declarative action present.
I do not think this is that button.

@Debasis Pati 

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! 🙏

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