I can't send email

Arthur Sanchez
Giga Guru

Build an application to send email when a record has been created or changed, but I can't do this, and it seems to me that it is necessary to have these conditions enabled, but I do not have access

 

8.png

Ah, I discovered Outbound Email Configuration, based on this guy's class: https://www.youtube.com/watch?v=fijlvJaQl9Y&t=640s I don't even know if it's necessary or not, I'm just trying to get my application to run

the application I created was this

Captura de tela 2024-03-18 142850.pngCaptura de tela 2024-03-18 142913.pngCaptura de tela 2024-03-18 142923.pngCaptura de tela 2024-03-18 142932.png

Inbound email actions in ServiceNow is a configuration which tells that how and what your ServiceNow instance will respond, when it receives email from user. The responses are based on the content of the email received. In this video demonstration of inbound email action script along with ...
3 ACCEPTED SOLUTIONS

Aniket Chavan
Tera Sage
Tera Sage

Hello @Arthur Sanchez  ,

Please ensure that you are in the global application scope. If you are in any other application scope, you won't be able to edit anything here.

Could you please try right-clicking on that property to see if it allows you to change it?

Also The system property 'glide.email.smtp.active' is currently set to False and is read-only. However, you can change its value to True using a background script. Please paste and execute the following script in your background script:

var gr = new GlideRecord('sys_properties');
gr.addActiveQuery();
gr.addQuery('name','glide.email.smtp.active');
gr.query();
if (gr.next()) {
    gr.value = 'true';
    gr.update();
    gs.print("The value of 'glide.email.smtp.active' has been updated to: " + gr.value);
} else {
    gs.print("Unable to find the system property 'glide.email.smtp.active'.");
}


Also below below conversion can be helpful:

 

Let me know it helps you or not so that we can proceed with it accordingly and if it helped then,

 

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks & Regards,

Aniket.

View solution in original post

Hello @Arthur Sanchez  ,

 

Firstly, ensure that you save any ongoing work within the same application you are currently in. Afterward, proceed with the following steps:

  1. Switch to the Global application.
  2. Attempt to edit the email properties.
  3. If you are unable to edit them, try the second approach using a background script.

 

AniketChavan_0-1710787635286.png

 

Let me know if you have any further questions or concerns.

 

View solution in original post

You need to make the changes like save or update in the same application in which your current record in like for example if you are trying to save the record which is from your newly created application then you need to change the application to your application which you created and the need to make the changes and if you are making the changes in the incident tabel in that case you again need to switch to global application since the incident in global application and then need to make the changes and save.

 

 

Also since I have gave you the correct answer your original question and since it worked as expected for you can you 

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks & Regards,

Aniket.

View solution in original post

15 REPLIES 15

@Arthur Sanchez  , if you have an admin role then you should be able to change it. 

Can you confirm you are in Global scope ? you should be in global scope . 

 

Anyway lets try to change from properties table.  Can you try to access below URL , just replace with your instance id. 

Let me know if you are able to change it.. 

 

 

https://<YourInstanceID>.service-now.com/sys_properties.do?sys_id=856303e90a0a0bc50164129959388444&sysparm_record_target=sys_properties&sysparm_record_row=1&sysparm_record_rows=1&sysparm_record_list=nameCONTAINSemail.smtp.active%5EORDERBYname

 

Thanks,

Harsh

@Arthur Sanchez   I think you are not in global scope , hence you are having an issue .

 

Attached screenshot for your reference, change it to global scope then you will be able to change the email properties.  

 

Just for information, if "globe" icon shows red circle then you are not in global scope. 

 

Scope.PNG

 

Thanks,

Harsh

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Arthur Sanchez  

 

To send email, the email property must be enabled, and once these enabled only then email will be go or come in side. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Aniket Chavan
Tera Sage
Tera Sage

Hello @Arthur Sanchez  ,

Please ensure that you are in the global application scope. If you are in any other application scope, you won't be able to edit anything here.

Could you please try right-clicking on that property to see if it allows you to change it?

Also The system property 'glide.email.smtp.active' is currently set to False and is read-only. However, you can change its value to True using a background script. Please paste and execute the following script in your background script:

var gr = new GlideRecord('sys_properties');
gr.addActiveQuery();
gr.addQuery('name','glide.email.smtp.active');
gr.query();
if (gr.next()) {
    gr.value = 'true';
    gr.update();
    gs.print("The value of 'glide.email.smtp.active' has been updated to: " + gr.value);
} else {
    gs.print("Unable to find the system property 'glide.email.smtp.active'.");
}


Also below below conversion can be helpful:

 

Let me know it helps you or not so that we can proceed with it accordingly and if it helped then,

 

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks & Regards,

Aniket.

So I need to be in a global application to be able to change those email settings? ok now this leads me to other questions, how do I export my application in studio to save what was done? and how do I exit the application I created to go global?