<h2>Draft Relationships are geeting created for services when a service is being edited in Service Builder</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Summary</h3><section><style type="text/css"><!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } </style> <div class="ns-kb-css-body-editor-container"> <p style="padding-left: 40px;"><span style="font-family: verdana, geneva; font-size: 10pt;">This is expected behaviour with the current design.</span></p> <p style="padding-left: 40px;"><span style="font-family: verdana, geneva; font-size: 10pt;">Draft Service Records: When a service is being edited in Service Builder, a new temporary service record is created with a name of "[Draft] Service Name" and a State "Draft" This allows the existing, operational service record to remain unchanged while modifications and approvals are in progress. Once the service is published, this draft record is automatically deleted, and the original Service record is updated. The active field for draft records is set to false to prevent them from appearing in search results. However, be aware of their existence when building reference qualifiers, running automations on the service table, or during testing, as there will be two records for the same service (one in 'published and active' and the other in 'draft and inactive').</span></p> <p style="padding-left: 40px;"> </p> <p style="padding-left: 40px;"><span style="font-family: verdana, geneva; font-size: 10pt;">The below script includes the addition and removal of the drafts.</span></p> <div> <div> <div style="padding-left: 40px;"><span style="font-family: verdana, geneva; font-size: 8pt;">ASBPublishService</span></div> </div> </div> <div style="padding-left: 40px;"><span style="font-family: verdana, geneva; font-size: 8pt;">ASBVerifyDraftUtil</span><br /><span style="font-family: verdana, geneva; font-size: 8pt;">ASBVerifyDraftUtilSNC</span><br /><span style="font-family: verdana, geneva; font-size: 8pt;">ASBCancelCheckout</span><br /><span style="font-family: verdana, geneva; font-size: 8pt;">ASBDeleteOffering</span><br /><span style="font-family: verdana, geneva; font-size: 8pt;">ASBCancelCheckout</span><br /><br /></div> <p style="padding-left: 40px;"> </p> <span id="ns-kb-css-end-div-identifier" style="display: none; pointer-events: none;"></span></div></section></div></article></div>