Share the next available maintenance window to Harness team via Get method

Dineshdmkk18
Tera Contributor

Hello Team,

 

I have shared the below GET API details from ServiceNow side to pull the next available maintenance window to Harness team.

 

https://dctest.service-now.com/api/now/table/cmn_schedule_maintenance

 

 

However we don't have any field in cmn_schedule_maintenance table which is holding the next available maintenance window time to provide. Is there any way we have to share it? Please advise.

 

I aware that we have, 

 

GlideSchedule(); API available to get the next available window however don't know how to use it here with GET API to pass the details along with API call..

 

Thanks,

DC

3 REPLIES 3

Community Alums
Not applicable

Hi @Dineshdmkk18 ,

You will have to create a New Field and store the in cmn_schedule_maintenance.

 

Hi @Community Alums  

 

Thanks for your reply.

 

You mean to have the data in custom field? However we need to update that frequently by using the job right?

 

Thanks,

DC

Amit Verma
Kilo Patron
Kilo Patron

Hi @Dineshdmkk18 

 

Below post could be helpful to get the maintenance schedule :

https://www.servicenow.com/community/developer-forum/how-to-get-hold-of-the-next-occurrence-of-a-sch...

 

You can use the code provided in the above link in a Scripted REST API to get the maintenance schedules. You can provide your Harness team with this custom endpoint to fetch the details.

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.