Hello,
I am building a flow where i want the subjet in a email to be based off the date when the flow is running.
This is what I want the subject to be based on what date it is:
- January before the 15th -> 2 del Desember
- January after the 15th -> 1 del Januar
- February before the 15th -> 2 del Januar
- February after the 15th -> 1 del Februar
- March before the 15th -> 2 del Februar
- March after the 15th -> 1 del Mars
- April before the 15th -> 2 del Mars
- April after the 15th -> 1 del April
- .... and so on until December after the 15th -> 1 del Desember (you get the idea)
I solved this by making a lot of conditions, but there must be a more simple way to achieve the same thing!
Maybe someone out there knows an easier way with fewer steps?
This is how I did it:
1. I used the "Compose action to compose an integer of the current month. (January = 1, February = 2 and so on)
2. Did the same for the current day of the month.

3. Used the "Initialize variable to make a new variable named "Subject"

4. Created a condition based on the Output from the "DagensMåned" that outputs the current month.

5. The condition checks what month it is. If it is January the condition will turn TRUE. I then added a new condition within the "If yes":
6. This condition is based on what day of the month it is and fianlly sets the variable "Subject" to what I want the subject to be.

7. I repeat the same within the "If no" like this.

I repeat all of this for all the months. So there are 12 parent conditions that checks what month it is, and within all those 12 conditions there is a condition that checks what day of the month it is. In total that is 24 conditions...
Sorry for the long post. But my flow is long... Very long... And I feel like this is a simple task, there must be an easier way to do this?