{"id":13446,"date":"2021-01-18T12:00:02","date_gmt":"2021-01-18T03:00:02","guid":{"rendered":"https:\/\/www.ka-net.org\/blog\/?p=13446"},"modified":"2021-01-23T22:40:19","modified_gmt":"2021-01-23T13:40:19","slug":"power-automate%e7%b5%8c%e7%94%b1%e3%81%a7twitter%e3%81%ab%e6%8a%95%e7%a8%bf%e3%81%99%e3%82%8bvba%e3%83%9e%e3%82%af%e3%83%ad","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=13446","title":{"rendered":"Power Automate\u7d4c\u7531\u3067Twitter\u306b\u6295\u7a3f\u3059\u308bVBA\u30de\u30af\u30ed"},"content":{"rendered":"<p>Hiro( <a href=\"https:\/\/twitter.com\/mofumofu_dance\" title=\"Hiro\u3055\u3093 (@mofumofu_dance) \/ Twitter\" target=\"_blank\" rel=\"noopener\">@mofumofu_dance<\/a> )\u3055\u3093\u304cVBA\u3068Power Automate\u9023\u643a\u3068\u3044\u3046\u3001\u9762\u767d\u3044\u3053\u3068\u3092\u3055\u308c\u3066\u3044\u307e\u3057\u305f\uff01<\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/mofumofupower.hatenablog.com\/entry\/2021\/01\/14\/165340\" target=\"_blank\" rel=\"external nofollow noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=mofumofupower.hatenablog.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">MoreBeerMorePower<\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/pz-linkcard\/cache\/4c86e7c86347b90ed494a522a180194553a1e31da6e362fb2682b023ca5fd5eb.jpeg\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">Excel VBA \u304b\u3089 Microsoft Teams \u306b \u30e1\u30c3\u30bb\u30fc\u30b8\u6295\u7a3f - MoreBeerMorePower<\/div><div class=\"lkc-url\" title=\"https:\/\/mofumofupower.hatenablog.com\/entry\/2021\/01\/14\/165340\">https:\/\/mofumofupower.hatenablog.com\/entry\/2021\/01\/14\/165340<\/div><div class=\"lkc-excerpt\">\u3084\u3063\u3066\u307f\u305f\u7cfb\u3067\u3059\u3002 \u6700\u8fd1Excel VBA\u3092\u52c9\u5f37\u3057\u59cb\u3081\u305f\u306e\u3067\u3059\u304c\u3001\u8208\u5473\u306e\u3042\u308b\u9818\u57df\u3058\u3083\u306a\u3044\u3068\u899a\u3048\u306a\u3044\u306a\u30fc\u3068\u601d\u3063\u305f\u306e\u3067\u3001\u307e\u305a\u306fMicrosoft Teams \u3084 Web API \u3092\u7d61\u3081\u3066\u307f\u3088\u3046\u3068\u601d\u3063\u305f\u306e\u304c\u304d\u3063\u304b\u3051\u3067\u3059\u3002 tonari-it.com \u3053\u3061\u3089\u306e\u30d6\u30ed\u30b0\u3092\u53c2\u8003\u306b\u3057\u3066\u3001Excel VBA \u3067\u3001Microsoft Teams \u3078\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u6295\u7a3f\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002 Excel VBA\u3059\u3052\u30fc\u306aTeams\u306bAdaptive Card\u9001\u4fe1\u3067\u304d\u305f pic.twitter.com\/J8QhRCfSc2\u2014 Hiro (@mofumofu_dance) 2021\u5e741\u670814\u65e5 Excel \u5074\u3067\u306f\u30bb\u30eb\u306e\u5165\u529b\u3092\u3082\u3068\u2026<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<p><span style=\"color: #ff0000; font-weight: bold; font-size: 200%;\">\u3053\u308c\u306f\u697d\u3057\u305d\u3046\uff01\u8a66\u3059\u3057\u304b\u306a\u3044\uff01<\/span><\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u3055\u3063\u305d\u304f\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h4 class=\"style4a\">HTTP\u8981\u6c42\u3067\u53d7\u3051\u53d6\u3063\u305f\u6587\u5b57\u5217\u3092\u30c4\u30a4\u30fc\u30c8\u3059\u308bPower Automate\u30d5\u30ed\u30fc<\/h4>\n<p>\u307e\u305a\u306fPower Automate\u306e\u30d5\u30ed\u30fc\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u81ea\u52d5\u5316\u3057\u305f\u30af\u30e9\u30a6\u30c9 \u30d5\u30ed\u30fc\u3067\u300c<span style=\"color: #ff0000; font-weight: bold;\">HTTP \u8981\u6c42\u306e\u53d7\u4fe1\u6642<\/span>\u300d\u3092\u30c8\u30ea\u30ac\u30fc\u306b\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_01.jpg\" alt=\"\" width=\"635\" height=\"588\" class=\"alignnone size-full wp-image-13447\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_01.jpg 635w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_01-300x278.jpg 300w\" sizes=\"auto, (max-width: 635px) 100vw, 635px\" \/><\/a><\/p>\n<li>method\u306f\u300c<span style=\"color: #ff0000; font-weight: bold;\">POST<\/span>\u300d\u3001\u6587\u5b57\u5217\u3055\u3048\u53d7\u3051\u53d6\u308c\u308c\u3070\u826f\u3044\u306e\u3067\u300c\u8981\u6c42\u672c\u6587\u306e JSON \u30b9\u30ad\u30fc\u30de\u300d\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u5f62\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/li>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">{\r\n    &quot;type&quot;: &quot;object&quot;,\r\n    &quot;properties&quot;: {\r\n        &quot;message&quot;: {\r\n            &quot;type&quot;: &quot;string&quot;\r\n        }\r\n    }\r\n}<\/pre>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_02.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_02.jpg\" alt=\"\" width=\"619\" height=\"486\" class=\"alignnone size-full wp-image-13448\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_02.jpg 619w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_02-300x236.jpg 300w\" sizes=\"auto, (max-width: 619px) 100vw, 619px\" \/><\/a><\/p>\n<li>\u65b0\u3057\u3044\u30b9\u30c6\u30c3\u30d7\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u4f5c\u6210<\/span>\u300d\u3092\u8ffd\u52a0\u3057\u3001\u624b\u98062.\u3067\u8a2d\u5b9a\u3057\u305f\u300cmessage\u300d\u3092\u5165\u529b\u5024\u3068\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_03.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_03.jpg\" alt=\"\" width=\"633\" height=\"491\" class=\"alignnone size-full wp-image-13449\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_03.jpg 633w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_03-300x233.jpg 300w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/a><\/p>\n<li>\u65b0\u3057\u3044\u30b9\u30c6\u30c3\u30d7\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30c4\u30a4\u30fc\u30c8\u306e\u6295\u7a3f<\/span>\u300d\u3092\u8ffd\u52a0\u3057\u3001\u300c\u30c4\u30a4\u30fc\u30c8 \u30c6\u30ad\u30b9\u30c8\u300d\u3092\u624b\u98063.\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_04.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_04.jpg\" alt=\"\" width=\"610\" height=\"387\" class=\"alignnone size-full wp-image-13450\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_04.jpg 610w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_04-300x190.jpg 300w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<li>\u30d5\u30ed\u30fc\u3092\u4fdd\u5b58\u3059\u308b\u3068\u3001\u300cHTTP \u8981\u6c42\u306e\u53d7\u4fe1\u6642\u300d\u306bURL\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u30e1\u30e2\u5e33\u7b49\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/li>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_05.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_05.jpg\" alt=\"\" width=\"616\" height=\"138\" class=\"alignnone size-full wp-image-13451\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_05.jpg 616w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/VBA_PostTweetWithPowerAutomate_05-300x67.jpg 300w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/a>\n<\/ol>\n<h4 class=\"style4a\">Power Automate\u306eURL\u306bPOST\u3059\u308b\u30de\u30af\u30ed<\/h4>\n<p>\u6b21\u306f\u30de\u30af\u30ed\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPublic Sub Sample()\r\n  PostPowerAutomate _\r\n    &quot;\u3053\u3093\u306b\u3061\u306f\u3002&quot; &amp; vbCrLf &amp; _\r\n    &quot;Power Automate\u304b\u3089\u306e\u6295\u7a3f\u30c6\u30b9\u30c8\u3067\u3059\u3002&quot;\r\nEnd Sub\r\n\r\nPrivate Sub PostPowerAutomate(ByVal message As String)\r\n  Dim dat As Variant\r\n  Const url As String = &quot;(Power Automate\u306e\u30d5\u30ed\u30fc\u4f5c\u6210\u6642\u306b\u53d6\u5f97\u3057\u305fURL)&quot;\r\n  \r\n  message = Replace(message, &quot;&quot;&quot;&quot;, &quot;\\&quot;&quot;&quot;)\r\n  dat = &quot;{&quot;&quot;message&quot;&quot;:&quot;&quot;&quot; &amp; message &amp; &quot;&quot;&quot;}&quot;\r\n  With CreateObject(&quot;WinHttp.WinHttpRequest.5.1&quot;)\r\n    .Open &quot;POST&quot;, url, False\r\n    .setRequestHeader &quot;Content-Type&quot;, &quot;application\/json&quot;\r\n    .send dat\r\n    Select Case .Status\r\n      Case 200, 202: Debug.Print &quot;done.&quot;\r\n      Case Else: Debug.Print .Status, .responseText\r\n    End Select\r\n  End With\r\nEnd Sub<\/pre>\n<p>\u6307\u5b9a\u3057\u305fURL\u306bJSON\u5f62\u5f0f\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092POST\u3059\u308b\u3060\u3051\u306e\u5358\u7d14\u306a\u30b3\u30fc\u30c9\u3067\u3059\u3002<br \/>\n\u6ce8\u610f\u70b9\u3068\u3057\u3066\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u30fc\u306b\u300cContent-Type: application\/json\u300d\u3092\u542b\u3081\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div id=\"single_banner_area2\" class=\"clearfix one_banner\">\n<div class=\"single_banner single_banner_left\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u8a18\u4e8b\u4e2d(\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u5e83\u544a\u30e6\u30cb\u30c3\u30c8) -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-7306936664602087\"\r\n     data-ad-slot=\"5429724765\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n<div class=\"single_banner single_banner_right\">\n<a href=\"\" target=\"_blank\"><img decoding=\"async\" src=\"\" alt=\"\" title=\"\" \/><\/a>\n<\/div>\n<\/div>\n\n<p>\u4e0a\u8a18\u30de\u30af\u30ed\u306e\u7d50\u679c\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3001\u610f\u56f3\u3057\u305f\u3068\u304a\u308a\u306b\u30c4\u30a4\u30fc\u30c8\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<blockquote class=\"twitter-tweet\">\n<p lang=\"ja\" dir=\"ltr\">VBA\u304b\u3089Power Automate\u3092\u53e9\u3044\u3066\u30c4\u30a4\u30fc\u30c8\u3002<br \/>\u7d50\u679c\u306f\u2193\u306e\u901a\u308a\u3067\u3059\u3002<a href=\"https:\/\/twitter.com\/mofumofu_dance?ref_src=twsrc%5Etfw\">@mofumofu_dance<\/a> \u3055\u3093\u3001\u3053\u308c\u306f\u304a\u624b\u8efd\u3067\u826f\u3044\u3067\u3059\u306d\uff01 <a href=\"https:\/\/t.co\/mMIIWVrWT7\">https:\/\/t.co\/mMIIWVrWT7<\/a> <a href=\"https:\/\/t.co\/Z6d8xoFsel\">pic.twitter.com\/Z6d8xoFsel<\/a><\/p>\n<p>&mdash; \u304d\u306c\u3042\u3055 (@kinuasa) <a href=\"https:\/\/twitter.com\/kinuasa\/status\/1349601827289853956?ref_src=twsrc%5Etfw\">January 14, 2021<\/a><\/p><\/blockquote>\n<p> <script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p>VBA\u304b\u3089Twitter\u7b49\u306eAPI\u3092\u53e9\u304f\u969b\u306f\u3001\u7279\u306b\u8a8d\u8a3c\u5468\u308a\u306e\u5b9f\u88c5\u304c\u9762\u5012\u304f\u3055\u3044\u306e\u3067\u3059\u304c\u3001Power Automate\u3092\u4ecb\u3059\u308b\u3053\u3068\u3067\u7c21\u6f54\u306b\u51e6\u7406\u3067\u304d\u307e\u3059\u3002<br \/>\n(\u4f7f\u308f\u306a\u3044\u3068\u304d\u306f\u30d5\u30ed\u30fc\u3092\u30aa\u30d5\u306b\u3057\u3066\u304a\u304f\u3002)<br \/>\n\u552f\u4e00\u60dc\u3057\u3044\u306e\u306f\u300cHTTP \u8981\u6c42\u306e\u53d7\u4fe1\u6642\u300d\u304c\u30d7\u30ec\u30df\u30a2\u30e0\u30b3\u30cd\u30af\u30bf\u3067\u3042\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3068\u306f\u3044\u3048\u3001VBA\u304b\u3089Power Automate\u7d4c\u7531\u3067\u5404\u7a2eAPI\u3092\u547c\u3073\u51fa\u3059\u306e\u306f\u6d3b\u7528\u5834\u9762\u3082\u5e83\u3044\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u30d7\u30ec\u30df\u30a2\u30e0\u30b3\u30cd\u30af\u30bf\u304c\u4f7f\u3048\u308b\u74b0\u5883\u306b\u3042\u308b\u65b9\u306f\u3001\u662f\u975e\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\uff01<\/p>\n<p><a href=\"https:\/\/twitter.com\/mofumofu_dance\" title=\"Hiro\u3055\u3093 (@mofumofu_dance) \/ Twitter\" target=\"_blank\" rel=\"noopener\">Hiro<\/a>\u3055\u3093\u3001\u4eca\u56de\u306f\u975e\u5e38\u306b\u9762\u767d\u3044\u30a2\u30a4\u30c7\u30a2\u3092\u5171\u6709\u3044\u305f\u3060\u304d\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Hiro( @mofumofu_dance )\u3055\u3093\u304cVBA\u3068Power Automate\u9023\u643a\u3068\u3044\u3046\u3001\u9762\u767d\u3044\u3053\u3068\u3092\u3055\u308c\u3066\u3044\u307e\u3057\u305f\uff01 \u3053\u308c\u306f\u697d\u3057\u305d\u3046\uff01\u8a66\u3059\u3057\u304b\u306a\u3044\uff01 \u3068\u3044\u3046\u308f\u3051\u3067\u3001\u3055\u3063\u305d\u304f\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002 HTTP\u8981\u6c42\u3067\u53d7\u3051 [&hellip;]","protected":false},"author":1,"featured_media":12424,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"[Power Automate\u7d4c\u7531\u3067Twitter\u306b\u6295\u7a3f\u3059\u308bVBA\u30de\u30af\u30ed]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[48,168],"tags":[],"class_list":["post-13446","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-excel-office","category-powerautomate"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-PowerAutomate.jpg","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-3uS","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13446"}],"version-history":[{"count":2,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13446\/revisions"}],"predecessor-version":[{"id":13453,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13446\/revisions\/13453"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/12424"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}