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

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.

 

Aniket Chavan
Tera Sage
Tera Sage

Hello @Arthur Sanchez  ,

Can you please once look into my below response and let me know if you have any doubts.

Thank you!!!!

Captura de tela 2024-03-18 155417.pngI managed it, but answer me one thing, what I configure in the global application will also affect my application or not?, because if it doesn't and I couldn't enable it to send email I will have to start the entire application from scratch and that's what I I didn't want to do it, and I don't even know if there's a way for me to export or save my application if the instance ends, do you know?

Hello @Arthur Sanchez  ,

 

Okay so just correct me if I understood wrong, you Just want to know wherever you have built or configured will work or not after enabling this email property with the Global scope application or not right? If this is the question then yes absolutely you can do whatever you have did in you custum application or scop.

 

Also you have saved your new application right?

I saw here, what I changed in the global scope also changed in my application, now the question is, how am I going to save the application? Let's suppose I have to open or change an instance or its time is running out, how do I save my application to place/import it in another?