URL link to a drafts 5 draft


#1

This maybe a stupid question but is there a way to get a url link to a current draft I’m working on so I can reference in my to do app?


#2

If you tap the ⓘ button in the toolbar, there’s a “Copy Link to Draft” link near the top.


#3

and you can also do it in a script action step:

http://actions.getdrafts.com/a/1I7

(() => {
    'use strict';

    const strURL = draft.permalink;
    
    return (
        app.setClipboard(strURL),
        alert('Copied to clipboard:\n\n' + strURL),
        strURL
    );
})();

#4

Copy draft link to clipboard action


#5

Thanks could see for looking…


#6

The draft object has a permalink property. If you are going to script a link, it would be more reliable to use that property than build the URL from a string.


#7

Thanks ! Updated above and at http://actions.getdrafts.com/a/1I7