I am trying to publish an article from a flow. I have already created the article successfully(in the flow), but the item is created in "Draft" status. Once the article is created, I am capturing the newly-created record id. I would like to take that id, and use the "publishArticle(articleId, flagAsNew)" syntax found here to publish that article.
I don't seem to be able to do this declaratively so I thought if I could use the @invocablemethod on apex code, I could just pass the article id in a flow to the apex piece, and voila! - newly published article.
I am not a developer by trade. I have tried to write this apex and failed miserably. I will spare you my horrible snippets, as it would likely make your brain hurt!
Any help would be greatly appreciated! :-)