I have 3 invoke code (a,b,c) in 1 project
If I want run invoke code A and B every date 2-4.
But invoke code C run every Monday and Wednesday.
I have 3 invoke code (a,b,c) in 1 project
If I want run invoke code A and B every date 2-4.
But invoke code C run every Monday and Wednesday.
Hi
You can use a simple if condition like this
Datetime.Now.ToString(“dddd”).ToUpper.Contains(“MONDAY”) or Datetime.Now.ToString(“dddd”).ToUpper.Contains(“WEDNESDAY”)
Then it goes to THEN side if it’s Monday or Wednesday where you can invoke code C
Or it goes to ELSE block where you can include another IF condition like this
Datetime.Now.ToString(“dd”).Contains(“02”) or Datetime.Now.ToString(“dd”).Contains(“04”)
If true it goes to its then block where you can invoke code B and C or it goes to its else where leave it Empty
HI @fairymemay
Try this below expression
Now.DayOfWeek.ToString = "Monday" or Now.DayOfWeek.ToString = "Wednesday"
Regards
Gokul
@Palaniyappan If date 2-4 is Monday or Wednesday.
it goes to IF right ? not goes to Else.
@Gokul001 Yes.
But Have question If day date = 2,3,4 —> I don’t want check DayofWeek.
Remark
invoke A,B —> run every day date = 2,3,4
invoke C ----> run every Monday and Wednesday.
@fairymemay
Try this workflow ;
Main.xaml (9.1 KB)
For a and b process Use :
Now.ToString(“dd”).Contains(“02”) or Now.ToString(“dd”).Contains(“04”)
For Process C , use ;
Now.DayOfWeek.ToString.Contains(“Monday”) or Now.DayOfWeek.ToString.Contains(“Wednesday”)
HI @fairymemay
For this you can try with the above expression
Have a look on the skeleton
Flowchart.xaml (10.4 KB)
Regards
Gokul
@Gokul001 @Vaibhav_Rajpoot_17
I not clear.
Try this expression
Now.ToString("dd").Contains("02") and Now.DayOfWeek.ToString = "Monday" or Now.ToString("dd").Contains("04") and Now.DayOfWeek.ToString = "Monday" or Now.ToString("dd").Contains("02") and Now.DayOfWeek.ToString = "Wednesday" or Now.ToString("dd").Contains("04") and Now.DayOfWeek.ToString = "Wednesday"
Regards
Gokul
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.