Content service SaveAndPublishBranch
# help-with-umbraco
c
Hello 👋 Does anyone know if on the SaveAndPublishBranch call if it publishes existing (previously published) items that have pending changes? I can see there is a force param we can set to false but not sure how it reacts if there is a published item with pending changes rather than just an unpublished item. Context is we have an on publish notification that sends certain doctypes to another system on publish. I want to implement a failsafe incase that other system "loses" them and we can republish programmatically the current published version with no pending saved changes. Docs: https://apidocs.umbraco.com/v9/csharp/api/Umbraco.Cms.Core.Services.Implement.ContentService.html#Umbraco_Cms_Core_Services_Implement_ContentService_SaveAndPublishBranch_IContent_System_Boolean_System_String_System_Int32_