How is 'Save as Draft' configured on Washington DC?

matthew_hughes
Kilo Sage

I can see that Washington DC now has the 'Save as Draft' button configured for catalogue items. However, I'm just wondering if anyone can confirm how the 'Save as Draft' button is configured and setup because I'm wanting to look at this feature in more detail because I want to understand how it works.

23 REPLIES 23

Mark Roethof
Tera Patron
Tera Patron

Since the Produce Documentation on this topic is very limited, I decided to document the undocumented 😁.
https://www.servicenow.com/community/developer-articles/save-catalog-items-as-draft/ta-p/2855484

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

bigbeetlefan
Tera Contributor

There are two properties.

gs.getProperty('glide.sc.disable.save_as_draft')

gs.getProperty('glide.sc.enable.save_as_draft.portal.')

Da W
Tera Contributor

ServiceNow saves the shopping carts, the draft item (draft_items) and the Wishlist (saved_items) in the Table sc_cart. Unfortunately they have a lot script around the carts behind the CartJS, which i can not find. 

 

Hope that was helpful. 

jtshone
Tera Expert

Is this really working though?

I can save an item as draft

it gets created in sc_cart_item

the portal shows the draft as saved and provides a link

A draft for this item already exists. You can view all the drafts here. If you save this item now, a new draft item would be created.

 

here = <instance>/esc?id=my_requests&draftSearchText=Report%20an%20IT%20issue

but the link generates a 404 error

 

Sorry, the page you requested was not found.

This page you were trying to reach at this address doesn't seem to exist. This is usually the result of a bad or outdated link. We apologize for any inconvenience.

While you are here, see if you can beat the "404" in a game of Breakout.