(new sn_sm.SMConfiguration()).isEnabled("security_incident", "inbound_email", false)

suryaprakash123
Tera Expert

Dear Team,

 

I found mentioned condition in the inbound email action.

Condition: (new sn_sm.SMConfiguration()).isEnabled("security_incident", "inbound_email", false)

 

The condition was failing, hence no security incident was not created. Unfortunately, we are unable to see 'SMConfiguration' script include. Please find mentioned screenshots and let me know, how to create SI by satisficing the condition.

 

suryaprakash123_0-1670446052311.png

I referred this as well but no luck: https://www.servicenow.com/community/service-management-forum/explain-this-script/m-p/373455 

1 ACCEPTED SOLUTION

Apologies the inbound action was not found due to local (L)user error at my end.

Documentation is sparce for SMConfiguration() but this thread provides some information and identifies the sm_config table

Re: SMConfiguration Functionality - ServiceNow Community

 

Looking at sm_config.list my PDI has 1 entry for 'Security Incident' and once Accept inbound email was set true, the condition check was met during inbound actioning processing and a security incident was created in my PDI from my test email. So this should be all you need to update.

View solution in original post

8 REPLIES 8

Tony Chatfield1
Kilo Patron

Hi, the post you have linked to implies that the script-include can be seen in an instance
 - but I cannot see any vendor documentation for SMConfiguration().

If you have no visibility of the script-include this may be as it's hidden, or may be as it is deployed via a plugin or app that is not active in your instance and as best practice you should not consider leveraging\utilizing ServiceNow functions or API's that are not documented in the public domain.

If you do not include the condition then you should be able to create your record?

Hi @Tony Chatfield1

Thank you for your reply.

 

I am able to create a record by removing the condition but this was defined in the oob. Can I remove the condition?

 

Thank you.

Hi, if it is OOB then perhaps you should leave as is, and look at why the function is not returning the result you are expecting. I do not see this condition in any OOB  PDI  inbound action and you have not provided any clear details of your intentions or the platform functionality this relates to, is the action part of a plugin or app?

If yes ,have you reviewed the documentation and confirmed that your configuration is correct, it looks like the function validates\confirms if the inbound action is entitled to create a task\security incident?

Hi @Tony Chatfield1,

 

Apologies for not giving prior details,

I guess, this comes post we installed security incident response plug-ins.

If the condition met, it should trigger an security incident. 

 

Thank you.