ã¯ããã«
ãã®è¨äºã¯ãMicrosoft Power Automate Advent Calendar 2024 12æ11æ¥æ
å½åã®è¨äºã§ãã
qiita.com
Plannerã§ã¿ã¹ã¯ç®¡çããã¦ãã¦ãã¿ã¹ã¯ã®æéãè¿ã¥ãããTeamsã§éç¥ã§ããããã«ãããã¨ããç¸è«ãããã¾ããã
以åMicrosoft To Doã§ä¼¼ããããªè¨äºãåºãã¾ããããä»åã¯Plannerãã¼ã¸ã§ã³ãç´¹ä»ãã¾ãï¼
yuri365lily.hatenablog.com
ãããªæãã§ãæªå®äºã§ãæéãï¼æ¥åã§ãèªåãå²ãå½ã¦ããã¦ããPlannerã¿ã¹ã¯ä¸è¦§ãTeamsã§ãç¥ããããããã¼ã«ãªãã¾ãã
ããã¼å ¨ä½å³
ç¨æãããã®
Plannerãã©ã³
ä»åã¯èªåãå²ãå½ã¦ããã¦ããã¿ã¹ã¯ãã¹ã¦ã対象ã¨ãã¦ãã¾ããï¼ãã©ã³ã¯è¤æ°ãã£ã¦ãOKï¼
ããã¼ä½ææé
ï¼ï¼Recurrence
Power Automateãéããä½æãâãã¹ã±ã¸ã¥ã¼ã«æ¸ã¿ã¯ã©ã¦ãããã¼ããã¯ãªãã¯ãã¾ãã
ä»»æã®ããã¼åã¨éå§æ¥ãè¨å®ãã¾ãã
æ¯æ¥ããã¼ãå®è¡ããããã®ã§ãç¹°ãè¿ãééã¯ãï¼æ¥ã¨ãã¾ãã
ãä½æããã¯ãªãã¯ãã¾ãã
ããã¼ã®ä½æç»é¢ã«ãªã£ããã以ä¸ãè¨å®ãã¾ãã
Time Zoneï¼(UTC+9:00)大éªãæå¹ãæ±äº¬
At These Hoursï¼ããã¼ãå®è¡ãããæé
At These Minutesï¼ããã¼ãå®è¡ãããå
ï¼ï¼ãã¤ã¿ã¹ã¯ãä¸è¦§è¡¨ç¤ºãã
ï¼ãã¯ãªãã¯ãããã¢ã¯ã·ã§ã³ã®è¿½å ãããPlannerã®ããã¤ã¿ã¹ã¯ãä¸è¦§è¡¨ç¤ºãããã¢ã¯ã·ã§ã³ãé¸æãã¾ãã
ãã®ã¢ã¯ã·ã§ã³ã§è¨å®ãããã¨ã¯ããã¾ããã
ï¼ï¼ã¢ã¬ã¤ã®ãã£ã«ã¿ã¼å¦ç
ï¼ãã¯ãªãã¯ãããã¢ã¯ã·ã§ã³ã®è¿½å ãããData Operationã®ãã¢ã¬ã¤ã®ãã£ã«ã¿ã¼å¦çãã¢ã¯ã·ã§ã³ãé¸æãã¾ãã
ã¢ã¯ã·ã§ã³ãè¦ã¤ãããªãå ´åã¯ããã©ã³ã¿ã¤ã ãããçµã¿è¾¼ã¿ãã«ãã¦æ¤ç´¢ãã¦ãã ããã
以ä¸ãè¨å®ãã¾ãã
Fromï¼åçãªã³ã³ãã³ãï¼ç¨²å¦»ãã¼ã¯ï¼ãããããã¤ã¿ã¹ã¯ãä¸è¦§è¡¨ç¤ºãããã®ãå¤ã
ã詳細è¨å®ã¢ã¼ãã§ç·¨éããã¯ãªãã¯ãã¾ãã
Filter Queryï¼ä»¥ä¸ã®å¼ãè²¼ãä»ãã¦ãã ããã
@and( less(item()?['percentComplete'], 100), and( not(empty(item()?['dueDateTime'])), greaterOrEquals(ticks(item()?['dueDateTime']), ticks(addDays(utcNow(), 3))), less(ticks(item()?['dueDateTime']), ticks(addDays(utcNow(), 4))) ) )
ä¸è¨ã®å¼ã§æªå®äºãæéãè¨å®ããã¦ãããæéãï¼æ¥åã®ã¿ã¹ã¯ãçµãè¾¼ããã¨ãã§ãã¾ãã
ï¼ï¼é¸æ
ï¼ãã¯ãªãã¯ãããã¢ã¯ã·ã§ã³ã®è¿½å ãããData Operationã®ãé¸æãã¢ã¯ã·ã§ã³ãé¸æãã¾ãã
ã¢ã¯ã·ã§ã³ãè¦ã¤ãããªãå ´åã¯ããã©ã³ã¿ã¤ã ãããçµã¿è¾¼ã¿ãã«ãã¦æ¤ç´¢ãã¦ãã ããã
以ä¸ãè¨å®ãã¾ãã
Fromï¼åçãªã³ã³ãã³ãï¼ç¨²å¦»ãã¼ã¯ï¼ããããã¢ã¬ã¤ã®ãã£ã«ã¿ã¼å¦çãã®ãå¤ã
Mapï¼
ããã¼ï¼ï¼ä½ãããã¾ãã
ãå¤ï¼ï¼ã»
ããã¼ï¼ï¼ã¿ã¹ã¯å
ãå¤ï¼ï¼åçãªã³ã³ãã³ããããã¢ã¬ã¤ã®ãã£ã«ã¿ã¼å¦çãã®ãå¤ ã¿ã¤ãã«ã
ããã¼ï¼ï¼æéæ¥æ
ãå¤ï¼ï¼ä»¥ä¸å¼ãè¨å®
if(equals(item()?['dueDateTime'], null), '', formatDateTime(item()?['dueDateTime'],'yyyy/MM/dd'))
ä¸è¨ã®å¼ã§æéæ¥æãyyyy/MM/ddå½¢å¼ã«ãã¦ãã¾ãã
ï¼ï¼HTMLãã¼ãã«ã®ä½æ
ï¼ãã¯ãªãã¯ãããã¢ã¯ã·ã§ã³ã®è¿½å ãããData Operationã®ãHTMLãã¼ãã«ã®ä½æãã¢ã¯ã·ã§ã³ãé¸æãã¾ãã
ã¢ã¯ã·ã§ã³ãè¦ã¤ãããªãå ´åã¯ããã©ã³ã¿ã¤ã ãããçµã¿è¾¼ã¿ãã«ãã¦æ¤ç´¢ãã¦ãã ããã
以ä¸ãè¨å®ãã¾ãã
Fromï¼åçãªã³ã³ãã³ããããé¸æãã®ãOutputã
ï¼ï¼ä½æ
ï¼ãã¯ãªãã¯ãããã¢ã¯ã·ã§ã³ã®è¿½å ãããData Operationã®ãä½æãã¢ã¯ã·ã§ã³ãé¸æãã¾ãã
ã¢ã¯ã·ã§ã³ãè¦ã¤ãããªãå ´åã¯ããã©ã³ã¿ã¤ã ãããçµã¿è¾¼ã¿ãã«ãã¦æ¤ç´¢ãã¦ãã ããã
以ä¸ãè¨å®ãã¾ãã
<a href = "Plannerã®ãªã³ã¯">Plannerã§ã¿ã¹ã¯ã確èªãã</a>
â»Teamsã«æ稿ããã¨ãã«Plannerã®ãªã³ã¯ãã¤ãããã ããªã®ã§ããã®ã¢ã¯ã·ã§ã³ã¯å¿
é ã§ã¯ããã¾ããã
ï¼ï¼ãã£ããã¾ãã¯ãã£ãã«ã§ã¡ãã»ã¼ã¸ãæ稿ãã
ï¼ãã¯ãªãã¯ãããã¢ã¯ã·ã§ã³ã®è¿½å ãããTeamsã®ããã£ããã¾ãã¯ãã£ãã«ã§ã¡ãã»ã¼ã¸ãæ稿ãããã¢ã¯ã·ã§ã³ãé¸æãã¾ãã
以ä¸ãè¨å®ãã¾ãã
æ稿è
ï¼ããã¼ããã
æ稿å
ï¼ããã¼ãããã¨ãã£ããããã
Recipientï¼èªåã®ã¡ã¼ã«ã¢ãã¬ã¹
ã¡ãã»ã¼ã¸ï¼
æªå®äºã®ã¿ã¹ã¯ä¸è¦§ããç¥ãããã¾ãã
åçãªã³ã³ãã³ããããHTMLãã¼ãã«ã®ä½æãã®ãOutputã
åçãªã³ã³ãã³ããããä½æãã®ãåºåã
以ä¸ã§ãããã¼ã®ä½æã¯å®äºã§ãã
å®è¡ãã¦ã¿ã
æ¯æ¥æ±ºã¾ã£ãæéã«ãæªå®äºã§ãæéãï¼æ¥åã§ãèªåãå²ãå½ã¦ããã¦ããPlannerã¿ã¹ã¯ä¸è¦§ãTeamsã«æ稿ããã¾ãã
çµããã«
ä»åã¯ãã¤ã¿ã¹ã¯ãã¹ã¦ãåå¾ãã¾ãããã2åç®ã®ã¢ã¯ã·ã§ã³ããã¿ã¹ã¯ãä¸è¦§è¡¨ç¤ºãã¾ããã«å¤ãããã¨ã§ãç¹å®ã®ãã©ã³ã ããæå®ãããã¨ãå¯è½ã§ãã
ä»ã®äººã«å²ãå½ã¦ãããã¿ã¹ã¯ãéç¥ããæ¹æ³ã調ã¹ã¦ãã¾ãããããã£ããå
±æãããã¨æãã¾ãï¼