Hi there,
maybe I’m blind, but how exactly can I tell Strapi not to publish when I’m creating entries via functions? I just want to import data from an external source and save them as a draft. Those entries have to be reviewed and then published by hand.
So far i’ve tried “status” and “_publicationState”, but apparently it doesn’t work.
await data.data.data.items.forEach(async (element) => {
await strapi.query('partner').create({
name: element.programName,
_publicationState: 'preview'
});
});
Don’t mind the data.data stuff. Still working on it.
Thanks