Action

Load Last Created Draft

Last update over 5 years ago - Unlisted

Steps

  • script

    let allDrafts = Draft.query("", "all", []);
    allDrafts = allDrafts.sort(function(draftA, draftB)
    {
    	return draftB.createdAt - draftA.createdAt
    });
    editor.load(allDrafts[0]);

Options

  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.