If you go into the UDA, it's designed to only look up to a max of 10 days ahead. It does this by creating a collection of 10 dates. If you want to change it to go up to 30 days, modify the process in the "Init loop collection" action set by copying the 2 repeating actions another 20 times.
Personally, I use a solution that Ryan Greenaway mentions here Calculating a due date when i have "lag days" - Workflow Question which uses a spreadsheet to calculate the days and Excel Services to input the variables and retrieve the results.
Murph,
That was the first thing I tried to do but it could not accurately calculate the date. It made the workflow error if you tried to calculate out past 10 days.
What's the error? There must be some other configuration you need to change as well. I don't use that UDA, but rather an Excel spreadsheet to do the calculations. It will handle anything.
The error I receive is telling me that it cannot calculate the value in the colum and tout in a fake date of 12/31/1899 as the value.
Thank you,
Cody Allison
Business Systems Analyst
PH: (219) 861-5277<tel:(219)%20861-5277>
CL: (219) 262-4913<tel:(219)%20262-4913>
Hours: MTWTF 8:00am to 4:30pm<x-apple-data-detectors://1/>
IT Project request
http://workflows.accudyneindustries.com/requests/Sullair/SitePages/IT Request Summary.aspx<http://workflows.accudyneindustries.com/requests/Sullair/SitePages/IT%20Request%20Summary.aspx>
IT Intranet Page
https://accudyneindustries.sharepoint.com/sites/SU-IT/SitePages/Home.aspx
Telecommunications Intranet Page
https://accudyneindustries.sharepoint.com/sites/SU-IT/telecom/SitePages/Home.aspx
I don't use that action either but it might be helpful to share some screenshots of your actions configuration and the variables you're using in it.
Kind regards,
Enrico
Enrico,
Please see the images I have attached for the Variables, Parameters, and the structure. I have modified the Init Loop Collection to 30 inputs as recommended above and I am still receiving the error. The image showing the date is what happens when you try to calculate anything past the 10 day parameter this was originally built with. It shows a date of 12/31/1899. Any recommendation would be appreciated. Thanks!
, did you try this option out and did it work for you?
This did work correctly. However, our environment does not have excel services enabled. So I did get it to function correctly but I could not use it in the workflow, unfortunately.
Thank you,
Cody Allison
Business Systems Analyst
PH: (219) 861-5277<tel:(219)%20861-5277>
CL: (219) 262-4913<tel:(219)%20262-4913>
Hours: MTWTF 8:00am to 4:30pm<x-apple-data-detectors://1/>
IT Project request
http://workflows.accudyneindustries.com/requests/Sullair/SitePages/IT Request Summary.aspx<http://workflows.accudyneindustries.com/requests/Sullair/SitePages/IT%20Request%20Summary.aspx>
IT Intranet Page
https://accudyneindustries.sharepoint.com/sites/SU-IT/SitePages/Home.aspx
Telecommunications Intranet Page
https://accudyneindustries.sharepoint.com/sites/SU-IT/telecom/SitePages/Home.aspx