'Deleted Application Files' record is not created in parent dev. instance.

Tae Kyung Lee
Tera Expert

Hi.

 

I'm using 'Team Development' in parent-child dev. environment for scoped app.

 

When I deleted some files in child and push the 'DELETION' to parent, files in parent are also delete properly.
But when I publish app. to repository, 'DELETION' of files are not packaged.

 

Yes, I know that 'DELETION' of app. files are recorded in 2 'sys_metadata_delete' table and 'author_elective_update' in folder of .ZIP file.
But in my case deletion is missed in both table and .ZIP file.

 

How can I solve this?
Is it impossible to package DELETION when I use team development?

 

Thank you.

1 ACCEPTED SOLUTION

Tae Kyung Lee
Tera Expert

I've got answer from ServiceNow, and this is designed behavior.

So this is my workaround and it works well.

 

# form dev instances.

- Delete application files in child instance with update set.

- Add business rule that prohibit pushing of 'deletion' local change to parent instance.

- Import update set(that has deleted record) to parent instance.

- Publish app in parent instance.

 

# from QA instances.

- Add or change properties to accept application files deletion.

  . com.glide.apps.include_my_deletes = true  // for scoped app.
  . com.glide.apps.include_my_schema = true // for table/filed deletion
  . com.glide.apps.include_global_deletes = true  // for global app.

- update app. form application repository

- DELETION SUCCESS!!!

View solution in original post

5 REPLIES 5

James Chun
Kilo Patron

Hi @Tae Kyung Lee,

 

I have not used Team Development before but my understanding is that deletion of records in a scoped app will not be packaged in the app. Please refer to the following article - 

https://www.servicenow.com/community/app-publisher-blog/deleting-records-in-scoped-applications-and-...

 

Cheers

Hi, James.

 

Thank you for your reply.

But deletion in scoped application is also packaged in 'author_elective_update' folder separately.

And if we set a property 'com.glide.apps.include_my_deletes = true'  in target instance, deletion will be executed in target instance and I've already tested it is working.

 

So my question is same mechanism is not working with 'Team Development' environment which has parent-child multiple instances.

 

Thank you.

Right, sorry I can't be much help.

If you haven't already, I would recommend raising a Support case.

 

Keen to see what the resolution is, good luck!

I have raised case to now support.

If I got response, I will share it this forum.

Anyway thank you for your kind interest!