Delete Demand in screening,submitted,approved state.

Kumari Divya
Giga Guru

Hi All

 

How can we delete Demand when it is in draft,Submitted,screening or approved State but before creation of Project or Enhancement.With the help of below background script it will delete manully by running the script but dont know how can we delete after clicking on the Delete UI action.

 

https://www.servicenow.com/community/spm-forum/deleting-demand-records/m-p/985433

 

Thanks in Advance.  

1 ACCEPTED SOLUTION

Hi @Sheldon  Swift 

After deactivating the business rule -Auto deletion rule for Assessments,we can delete Demand records when it is in screening or approved State.

 

View solution in original post

4 REPLIES 4

Sheldon  Swift
ServiceNow Employee
ServiceNow Employee

Hi @Kumari Divya - Can you clarify the request? For example, is it that—when viewing a Demand record in the specified states—you don't see the "Delete" button? Or is it that you see the "Delete" button, but the record isn't deleted when you click it?

Hi @Sheldon  Swift 

Delete button is visible on the demand form but when we try to delete the record it showing some error message like we can't delete the record.

Thanks in advance 

Hi @Sheldon  Swift 

 

In draft and submitted state we can delete the record but in screening or approved we are getting the below error message

KumariDivya_0-1723796540433.png

 Thanks in advance

Hi @Sheldon  Swift 

After deactivating the business rule -Auto deletion rule for Assessments,we can delete Demand records when it is in screening or approved State.