0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

画面フローで動的に 今月の第1週目の日付を並べる

Posted at

6月であれば、
2025/05/26(月)
2025/05/27(火)
2025/05/28(水)
2025/05/29(木)
2025/05/30(金)
2025/05/31(土)
2025/06/01(日)

7月であれば、
2025/06/30(月)
2025/07/01(火)
2025/07/02(水)
2025/07/03(木)
2025/07/04(金)
2025/07/05(土)
2025/07/06(日)

6月で実行した結果

image.png

実際のフロー

image.png

set_baseCollection

image.png

image.png

baseCollectionLoop

image.png

set_DummyRecordSingle

image.png

image.png

image.png

DATE( Year({!$Flow.CurrentDate}),Month({!$Flow.CurrentDate}),1 )

image.png

CASE(WEEKDAY(DATE( Year({!T}),MONTH({!T}),1 )),
1,CASE({!baseCollectionLoop},"01",TEXT({!T}-6)+"(月)","02",TEXT({!T}-5)+"(火)","03",TEXT({!T}-4)+"(水)","04",TEXT({!T}-3)+"(木)","05",TEXT({!T}-2)+"(金)","06",TEXT({!T}-1)+"(土)",TEXT({!T})+"(日)"),
2,CASE({!baseCollectionLoop},"01",TEXT({!T})+"(月)","02",TEXT({!T}+1)+"(火)","03",TEXT({!T}+2)+"(水)","04",TEXT({!T}+3)+"(木)","05",TEXT({!T}+4)+"(金)","06",TEXT({!T}+5)+"(土)",TEXT({!T}+6)+"(日)"),
3,CASE({!baseCollectionLoop},"01",TEXT({!T}-1)+"(月)","02",TEXT({!T})+"(火)","03",TEXT({!T}+1)+"(水)","04",TEXT({!T}+2)+"(木)","05",TEXT({!T}+3)+"(金)","06",TEXT({!T}+4)+"(土)",TEXT({!T}+5)+"(日)"),
4,CASE({!baseCollectionLoop},"01",TEXT({!T}-2)+"(月)","02",TEXT({!T}-1)+"(火)","03",TEXT({!T})+"(水)","04",TEXT({!T}+1)+"(木)","05",TEXT({!T}+2)+"(金)","06",TEXT({!T}+3)+"(土)",TEXT({!T}+4)+"(日)"),
5,CASE({!baseCollectionLoop},"01",TEXT({!T}-3)+"(月)","02",TEXT({!T}-2)+"(火)","03",TEXT({!T}-1)+"(水)","04",TEXT({!T})+"(木)","05",TEXT({!T}+1)+"(金)","06",TEXT({!T}+2)+"(土)",TEXT({!T}+3)+"(日)"),
6,CASE({!baseCollectionLoop},"01",TEXT({!T}-4)+"(月)","02",TEXT({!T}-3)+"(火)","03",TEXT({!T}-2)+"(水)","04",TEXT({!T}-1)+"(木)","05",TEXT({!T})+"(金)","06",TEXT({!T}+1)+"(土)",TEXT({!T}+2)+"(日)"),
  CASE({!baseCollectionLoop},"01",TEXT({!T}-5)+"(月)","02",TEXT({!T}-4)+"(火)","03",TEXT({!T}-3)+"(水)","04",TEXT({!T}-2)+"(木)","05",TEXT({!T}-1)+"(金)","06",TEXT({!T})+"(土)",TEXT({!T}+1)+"(日)"))

set_DummyCollection

image.png

image.png

画面

image.png

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?