{"id":43,"date":"2018-06-22T17:55:39","date_gmt":"2018-06-22T16:55:39","guid":{"rendered":"http:\/\/pro.timphaus.de\/?p=43"},"modified":"2019-04-19T12:45:03","modified_gmt":"2019-04-19T11:45:03","slug":"tweet-with-media","status":"publish","type":"post","link":"https:\/\/dynamiacs.com\/?p=43","title":{"rendered":"Tweet with media"},"content":{"rendered":"\n<p>During my\ntest with the Twitter connector in Flow i tried a lot with tweeting.<\/p>\n\n\n\n<p>Here I\nwant to show how you add an attachment to your tweet from a sharepoint list.<\/p>\n\n\n\n<p>First you\nhave to load the item from the sharepoint which should be tweeted.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"220\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/tweet_media_01.png\" alt=\"\" class=\"wp-image-38\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/tweet_media_01.png 799w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/tweet_media_01-300x83.png 300w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/tweet_media_01-768x211.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/figure>\n\n\n\n<p>With the\noutput of this you can a condition to your flow to filter items with\nattachments. In my flow I do not use these filter.<\/p>\n\n\n\n<p>The next\nstep is to get the attachment. This is done by an action called &#8220;Get\nAttachments&#8221;.<\/p>\n\n\n\n<p>Here you\nhave to select the Sharepoint Site and the SharePoint List and the ID which\nattachment we want to get.<\/p>\n\n\n\n<p>This ID\ncomes from the first step in this flow. Because of the possible multiple\nresults from the first step an &#8220;apply to each&#8221; is entered in the\nflow.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"964\" height=\"278\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/tweet_media_02.png\" alt=\"\" class=\"wp-image-39\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/tweet_media_02.png 964w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/tweet_media_02-300x87.png 300w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/tweet_media_02-768x221.png 768w\" sizes=\"auto, (max-width: 964px) 100vw, 964px\" \/><\/figure>\n\n\n\n<p>After we\nget the attachments we have to enter a flow step to get the file content of the\nattachment. This is done by the attachment &#8220;get file content&#8221;. In\nthis step we have to select the site adress and the ID of Sharepoint List\nattachment as file identifiert. Because of the possible multiple results from\nthe step before an &#8220;apply to each&#8221; is entered in the flow.<\/p>\n\n\n\n<p>Now we\nhave all things to post a tweet with an attached media.<\/p>\n\n\n\n<p>For this\nwe use the action &#8220;post a tweet&#8221;. Here we use as tweet text the text\ncolumnn from our sharepoint list item from the first step and as media we use\nthe output from the get file content step.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1001\" height=\"870\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/tweet_media_03.png\" alt=\"\" class=\"wp-image-40\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/tweet_media_03.png 1001w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/tweet_media_03-300x261.png 300w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/tweet_media_03-768x667.png 768w\" sizes=\"auto, (max-width: 1001px) 100vw, 1001px\" \/><\/figure>\n\n\n\n<p>How cool is this?<\/p>\n\n\n\n<p>Here is the complete flow in one view<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"622\" height=\"1024\" src=\"http:\/\/pro.timphaus.de\/wp-content\/uploads\/2019\/02\/tweet_media_00-1-622x1024.png\" alt=\"\" class=\"wp-image-41\" srcset=\"https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/tweet_media_00-1-622x1024.png 622w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/tweet_media_00-1-182x300.png 182w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/tweet_media_00-1-768x1264.png 768w, https:\/\/dynamiacs.com\/wp-content\/uploads\/2019\/02\/tweet_media_00-1.png 885w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>During my test with the Twitter connector in Flow i tried a lot with tweeting. Here I want to show how you add an attachment to your tweet from a sharepoint list. First you have to load the item from the sharepoint which should be tweeted. With the output of this you can a condition&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[8],"tags":[35,36,34,6],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-blog","tag-attachment","tag-automation","tag-sharepoint","tag-twitter"],"taxonomy_info":{"category":[{"value":8,"label":"Blog"}],"post_tag":[{"value":35,"label":"Attachment"},{"value":36,"label":"Automation"},{"value":34,"label":"SharePoint"},{"value":6,"label":"Twitter"}]},"featured_image_src_large":false,"author_info":{"display_name":"Jan","author_link":"https:\/\/dynamiacs.com\/?author=2"},"comment_info":0,"category_info":[{"term_id":8,"name":"Blog","slug":"blog","term_group":0,"term_taxonomy_id":8,"taxonomy":"category","description":"","parent":0,"count":38,"filter":"raw","cat_ID":8,"category_count":38,"category_description":"","cat_name":"Blog","category_nicename":"blog","category_parent":0}],"tag_info":[{"term_id":35,"name":"Attachment","slug":"attachment","term_group":0,"term_taxonomy_id":35,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":36,"name":"Automation","slug":"automation","term_group":0,"term_taxonomy_id":36,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":34,"name":"SharePoint","slug":"sharepoint","term_group":0,"term_taxonomy_id":34,"taxonomy":"post_tag","description":"","parent":0,"count":2,"filter":"raw"},{"term_id":6,"name":"Twitter","slug":"twitter","term_group":0,"term_taxonomy_id":6,"taxonomy":"post_tag","description":"","parent":0,"count":3,"filter":"raw"}],"_links":{"self":[{"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=43"}],"version-history":[{"count":1,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":44,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions\/44"}],"wp:attachment":[{"href":"https:\/\/dynamiacs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dynamiacs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}