{"id":188,"date":"2012-09-25T14:05:07","date_gmt":"2012-09-25T18:05:07","guid":{"rendered":"https:\/\/jeremystein.com\/brain\/?p=188"},"modified":"2012-09-25T14:05:07","modified_gmt":"2012-09-25T18:05:07","slug":"create-and-delete-pdf-with-muhimbi","status":"publish","type":"post","link":"https:\/\/jeremystein.com\/brain\/create-and-delete-pdf-with-muhimbi\/","title":{"rendered":"Create and delete PDF with Muhimbi"},"content":{"rendered":"<p>Using Muhimbi PDF creator on SharePoint 2010, I wanted to email the PDF to someone, and then delete it.  The PDF has to be stored in a document library, so I needed to remember its ID to delete it later in the workflow.<\/p>\n<p>When you configure the &#8220;Convert File to PDF&#8221; action, you can specify two variables to store the ID of the PDF:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jeremystein.com\/brain\/wp-content\/uploads\/2012\/09\/muhimbi_pdf_config.png\" width=\"870\" height=\"129\"\/><\/p>\n<p>The &#8220;PDF List ID&#8221; must be a &#8220;single line of text&#8221; variable because it holds a GUID.<\/p>\n<p>You would think that the &#8220;PDF List Item ID&#8221; should be a &#8220;List Item ID&#8221; variable.  That would be logical, wouldn&#8217;t it?  Alas, no&#8230; it must be an &#8220;Integer&#8221; variable.<\/p>\n<p>When you configure the &#8220;Delete item&#8221; task, you must specify the ID of the item to delete from the selected list:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jeremystein.com\/brain\/wp-content\/uploads\/2012\/09\/muhimbi_pdf_delete.png\" width=\"712\" height=\"99\"\/><\/p>\n<p>The ID you specify is not the &#8220;PDF List ID&#8221; (the GUID), but rather it&#8217;s the &#8220;PDF List Item ID&#8221; (the integer).  You&#8217;d think the field would be called &#8220;list item ID&#8221; instead of &#8220;ID&#8221;, just to give a hint.  I guess that would make it too easy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using Muhimbi PDF creator on SharePoint 2010, I wanted to email the PDF to someone, and then delete it. The PDF has to be stored in a document library, so I needed to remember its ID to delete it later in the workflow. When you configure the &#8220;Convert File to PDF&#8221; action, you can specify [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-188","post","type-post","status-publish","format-standard","hentry","category-sharepoint"],"_links":{"self":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/comments?post=188"}],"version-history":[{"count":0,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/188\/revisions"}],"wp:attachment":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/media?parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/categories?post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/tags?post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}