after you have created the publication entry (sn_publications_publication) basically set up a new recipient list and add the consumers to the recipient list then go to the draft publication and click send for review, and publish it code from the Publications List widget... var gr = new GlideRecord ( ' sn_publications_publication_contact_m2m ' ); gr . addQuery ( 'user' , gs . getUser (). getID ()); gr . addQuery ( 'publication.stage' , 'published' ); gr . orderByDesc ( 'sys_updated_on' ); gr . setLimit ( 50 ); gr . query (); while ( gr . next ()) {