Assign activity: inputDate = “06/25/2023”
Assign activity: parsedDate = DateTime.ParseExact(inputDate, “MM/dd/yyyy”, System.Globalization.CultureInfo.InvariantCulture)
Assign activity: businessDaysCounter = 0
Assign activity: nextBusinessDaysList = New List(Of DateTime)
While activity: condition = businessDaysCounter < 5
Assign activity: parsedDate = parsedDate.AddDays(1)
If activity: condition = parsedDate.DayOfWeek <> DayOfWeek.Saturday AndAlso parsedDate.DayOfWeek <> DayOfWeek.Sunday
Invoke Method activity:
- TargetObject: nextBusinessDaysList
- MethodName: Add
- Parameters: {“parsedDate”}
Assign activity: businessDaysCounter = businessDaysCounter + 1
End If
End While
In this code iam getting the error in the INVOKE METHOD ACTIVITY
Anil_G
(Anil Gorthi)
June 25, 2023, 9:09am
2
@katta_nikhil
What is the error you are getting…for detailed error run in debug mode and when error occurs …try to open the locals panel and check the exception deatils there…
cheers
Yoichi
(Yoichi)
June 25, 2023, 9:17am
3
Hi,
From the above information, the InvokeMethod will be as the following. Hope this helps you.
Regards,
iam getting error in the output…
plz see my xaml file/… if it is wrong u can modify and send me
toput5days.xaml (11.6 KB)
Anil_G
(Anil Gorthi)
June 25, 2023, 1:21pm
5
@katta_nikhil
Can you please try this…I believe it is the same requirement
cheers
Yoichi
(Yoichi)
June 25, 2023, 2:22pm
6
Hi,
I think you should use Continue activity instead of Break activity as the following.
toput5days.xaml (11.7 KB)
Regards,
system
(system)
Closed
June 28, 2023, 2:23pm
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.