Hoping someone can help me with this. For reasons, I am working on a script that gets the second line of a pre-set draft that contains a UUID (on the second line), then use the UUID in that draft to find another draft by UUID.
Here’s what I’ve got so far:
let reference = Draft.queryByTitle("thingsforthingsreference95178954651d"); let projectfile = reference.content.split("\n"); let d = Draft.find(projectfile);
The error I’m getting is:
Script Error: TypeError: undefined is not an object (evaluating ‘reference.content.split’)
Line number: 3, Column 36