Draft feature for Record Producer

Abhishake1
Giga Contributor

Hi Developers,

Has anyone implemented a draft state feature for Record Producer,if yes then please share the way or is it possible to have this for record producer or not.

Regards,

Abhishek

19 REPLIES 19

Hey,

can you please share your solution

Thanks,

Any ideas on how you fixed the values issue?

Hi Utpal Dutta,

I have created the buttons and it's working perfectly. But I also want to set state as Draft on clicking Save as Draft button. Could you please help in setting the state.

 

Thanks &Regards,

Sai Sushma

 

 

Hi Utpal,

Hope you are doing good!!. sorry for re-opening this thread. We also had similar requirement for one of the client what you have incorporated. I tried implementing the same code what you have mentioned. The next problem is when we click on save as draft button it should set state in Draft in my custom table and when I click on submit state should set as New. Could you please help on this how to achieve this in same widget.

 

Thanks In Advance,

 

 

 

Vegard S
Kilo Sage

I honestly don't get why people keep reinventing the wheel. 
ServiceNow already has this built-in, only it's called Wishlist. 
But it's the exact same thing. 

All you need to do is duplicate the functionality of wishlist but store it in a new cart type in the sc_cart table.
Example saved_draft_items instead of saved_items cart that wishlist uses. 

The target record is never generated until the Submit button is clicked so all of the validation logic remains on the Record Producer end.