<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>ManipulationLibrary Discussions Rss Feed</title><link>http://manipulationlibrary.codeplex.com/Thread/List.aspx</link><description>ManipulationLibrary Discussions Rss Description</description><item><title>New Post: Add Date Not working</title><link>http://manipulationlibrary.codeplex.com/discussions/443949</link><description>&lt;div style="line-height: normal;"&gt;Matias,&lt;br /&gt;
&lt;br /&gt;
I was able to confirm your findings.  I had other problems with this custom workflow step, related to the end-of-business-day hour, as noted above, but also, because the datetime being passed to a method is universal time and it needs to be local time. &lt;br /&gt;
&lt;br /&gt;
I wrote my own plug-in to do the job. This is not difficult.&lt;br /&gt;
&lt;br /&gt;
Here's the original code; the problem originates in the first line:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt; if (start != DateTime.MinValue &amp;amp;&amp;amp; DaysToAdd.Get&amp;lt;int&amp;gt;(executionContext) != 0)
            {
                result = start.AddYears(YearsToAdd.Get&amp;lt;int&amp;gt;(executionContext))
                              .AddMonths(MonthsToAdd.Get&amp;lt;int&amp;gt;(executionContext))
                              .AddDays((7*WeeksToAdd.Get&amp;lt;int&amp;gt;(executionContext)) + 
                                       DaysToAdd.Get&amp;lt;int&amp;gt;(executionContext))
                              .AddHours(HoursToAdd.Get&amp;lt;int&amp;gt;(executionContext))
                              .AddMinutes(MinutesToAdd.Get&amp;lt;int&amp;gt;(executionContext));
            }

            Result.Set(executionContext, result);&lt;/code&gt;&lt;/pre&gt;

You can see the calculation &lt;em&gt;only&lt;/em&gt; occurs if the Days Added is not equal to 0&lt;br /&gt;
&lt;/div&gt;</description><author>mfriedenthal</author><pubDate>Fri, 17 May 2013 13:39:11 GMT</pubDate><guid isPermaLink="false">New Post: Add Date Not working 20130517013911P</guid></item><item><title>New Post: Add Date Not working</title><link>http://manipulationlibrary.codeplex.com/discussions/443949</link><description>&lt;div style="line-height: normal;"&gt;Hi! No, it's more simple. I'm not working with business days. Just days.&lt;br /&gt;
Let's say, in example:&lt;br /&gt;
&lt;br /&gt;
6/1/2013&lt;br /&gt;
&lt;br /&gt;
i try to add 2 months. But the date remains the same. &lt;br /&gt;
&lt;br /&gt;
I just noticed that it only works when i add &amp;quot;months&amp;quot; AND &amp;quot;days&amp;quot;.&lt;br /&gt;
If i only add &amp;quot;months&amp;quot;, it doesn't work. &lt;br /&gt;
Thanks. &lt;br /&gt;
&lt;/div&gt;</description><author>matiasdevit</author><pubDate>Thu, 16 May 2013 19:55:16 GMT</pubDate><guid isPermaLink="false">New Post: Add Date Not working 20130516075516P</guid></item><item><title>New Post: Add Date Not working</title><link>http://manipulationlibrary.codeplex.com/discussions/443949</link><description>&lt;div style="line-height: normal;"&gt;There is a built-in assumption of a 6:00 end-of-business day. Is this what you're running into?&lt;br /&gt;
&lt;/div&gt;</description><author>mfriedenthal</author><pubDate>Thu, 16 May 2013 19:51:53 GMT</pubDate><guid isPermaLink="false">New Post: Add Date Not working 20130516075153P</guid></item><item><title>New Post: Add Date Not working</title><link>http://manipulationlibrary.codeplex.com/discussions/443949</link><description>&lt;div style="line-height: normal;"&gt;Hi! We're using the &amp;quot;Add Date&amp;quot; functionality just adding a number to a date and it doesn't seem to work.&lt;br /&gt;
Is that a registered issue?&lt;br /&gt;
Thanks. &lt;br /&gt;
&lt;/div&gt;</description><author>matiasdevit</author><pubDate>Thu, 16 May 2013 18:16:35 GMT</pubDate><guid isPermaLink="false">New Post: Add Date Not working 20130516061635P</guid></item><item><title>New Post: Date - Add Working Hours when outside 08:00 to 18:00</title><link>http://manipulationlibrary.codeplex.com/discussions/443635</link><description>&lt;div style="line-height: normal;"&gt;Hello&lt;br /&gt;
&lt;br /&gt;
When I add 1 working hour to a datetime, which then causes that datetime to fall outside of working hours (08:00 to 18:00), I can see that the time is rolled forward to the next available working hour.&lt;br /&gt;
&lt;br /&gt;
e.g. if I add 1 hour to 17:15 the time returned is actually 08:00 on the next working day, not 18:15.&lt;br /&gt;
&lt;br /&gt;
However I am using this library to process SLA times for case completion. I would like to add 1 hour to a datatime which would then allocate all available minutes to the remaining working day&lt;br /&gt;
&lt;br /&gt;
e.g. if I add 1 hour to 17:15 I would like the time returned to be 08:15 the next day. &lt;br /&gt;
&lt;br /&gt;
Is this at all possible? &lt;br /&gt;
&lt;/div&gt;</description><author>andrewwhitmore</author><pubDate>Tue, 14 May 2013 18:42:32 GMT</pubDate><guid isPermaLink="false">New Post: Date - Add Working Hours when outside 08:00 to 18:00 20130514064232P</guid></item><item><title>New Post: does it work on CRM 2011 online ?</title><link>http://manipulationlibrary.codeplex.com/discussions/439907</link><description>&lt;div style="line-height: normal;"&gt;HI,&lt;br /&gt;
I would like to know if the library can work on CRM 2011 ONLINE (not on premise).&lt;br /&gt;
Someone have some details or exmples ?&lt;br /&gt;
thank you.&lt;br /&gt;
MP&lt;br /&gt;
&lt;/div&gt;</description><author>mpiccagli</author><pubDate>Thu, 11 Apr 2013 10:43:30 GMT</pubDate><guid isPermaLink="false">New Post: does it work on CRM 2011 online ? 20130411104330A</guid></item><item><title>New Post: Undocumented Feature in Business Days Date Add</title><link>http://manipulationlibrary.codeplex.com/discussions/403213</link><description>&lt;div style="line-height: normal;"&gt;It really wasn't a problem.   Just knowing that the code specifically determines that 8:00am to 6:00pm as 'normal business hours' would have been helpful in my testing.    The source code is available so if you are so inclined, you can update it to fit your needs...&lt;br /&gt;
&lt;/div&gt;</description><author>MarkPurnell</author><pubDate>Fri, 05 Apr 2013 16:20:18 GMT</pubDate><guid isPermaLink="false">New Post: Undocumented Feature in Business Days Date Add 20130405042018P</guid></item><item><title>New Post: Undocumented Feature in Business Days Date Add</title><link>http://manipulationlibrary.codeplex.com/discussions/403213</link><description>&lt;div style="line-height: normal;"&gt;Mark, did you ever find a solution for the problem you documented above?  I am trying to add x-number of hours to current process time nad sometimes it works and sometimes it doesn't. When it doesn't, I  get a result of the following morning, or, if it's a Friday, the following Monday morning.  If the function is relying on a CRM setting to determine what &amp;quot;normal business hours&amp;quot; are, where in CRM can I change that setting?&lt;br /&gt;
&lt;br /&gt;
If I use the other utility, to just add (non-business) days, it doesn't seem to work at all.&lt;br /&gt;
&lt;/div&gt;</description><author>mfriedenthal</author><pubDate>Fri, 05 Apr 2013 15:53:34 GMT</pubDate><guid isPermaLink="false">New Post: Undocumented Feature in Business Days Date Add 20130405035334P</guid></item><item><title>New Post: Using Convert value in AddDays</title><link>http://manipulationlibrary.codeplex.com/discussions/357582</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;The line that sets the value should be:&lt;/p&gt;
&lt;p&gt;var value = Convert.ToDouble(Value.Get&amp;lt;string&amp;gt;(executionContext));&lt;/p&gt;
&lt;p&gt;not&lt;/p&gt;
&lt;p&gt;var value = Convert.ToDouble(Value);&lt;/p&gt;
&lt;/div&gt;</description><author>carltoncolter</author><pubDate>Sun, 03 Feb 2013 20:15:29 GMT</pubDate><guid isPermaLink="false">New Post: Using Convert value in AddDays 20130203081529P</guid></item><item><title>New Post: Undocumented Feature in Business Days Date Add</title><link>http://manipulationlibrary.codeplex.com/discussions/403213</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;The Business Days Add function has a little bit of logic that will push the time out to 'normal business hours'&amp;nbsp; (8am to 6pm) if it determines that your calculated date/time is outside of those boundaries.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That little feature was driving me nuts.&amp;nbsp;&amp;nbsp;&amp;nbsp; It isn't documented in the guide, but should be.&lt;/p&gt;
&lt;/div&gt;</description><author>MarkPurnell</author><pubDate>Wed, 14 Nov 2012 19:13:56 GMT</pubDate><guid isPermaLink="false">New Post: Undocumented Feature in Business Days Date Add 20121114071356P</guid></item><item><title>New Post: RegEx Replace</title><link>http://manipulationlibrary.codeplex.com/discussions/392286</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Carlton,&lt;/p&gt;
&lt;p&gt;I would like to remove white spaces from phone number and save them to a separate field for searchabilty.&lt;/p&gt;
&lt;p&gt;What Syntax should I use for that?&amp;nbsp; I tried leaving the&amp;nbsp;Replacement field blank and the&amp;nbsp;Regular Expression Patter as /s but that doesn't seem to work...&lt;/p&gt;
&lt;p&gt;See my&amp;nbsp;setup&amp;nbsp;here; &lt;a href="http://sdrv.ms/OPbSBZ"&gt;http://sdrv.ms/OPbSBZ&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks!&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description><author>NateOne</author><pubDate>Mon, 20 Aug 2012 07:03:55 GMT</pubDate><guid isPermaLink="false">New Post: RegEx Replace 20120820070355A</guid></item><item><title>New Post: Using Convert value in AddDays</title><link>http://manipulationlibrary.codeplex.com/discussions/357582</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I've had the same problem.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>NateOne</author><pubDate>Mon, 20 Aug 2012 06:55:49 GMT</pubDate><guid isPermaLink="false">New Post: Using Convert value in AddDays 20120820065549A</guid></item><item><title>New Post: Using Convert value in AddDays</title><link>http://manipulationlibrary.codeplex.com/discussions/357582</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I'm trying to use the Convert Value Result in the Add Days function to create a new date value from a string field, but it isn't working.&amp;nbsp; The convert value always comes up as zero.&lt;/p&gt;
&lt;p&gt;The string is 010.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description><author>kknock</author><pubDate>Tue, 29 May 2012 23:26:08 GMT</pubDate><guid isPermaLink="false">New Post: Using Convert value in AddDays 20120529112608P</guid></item><item><title>New Post: Registration error</title><link>http://manipulationlibrary.codeplex.com/discussions/357128</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm trying to register&amp;nbsp;this custom workflow and I get the error: 'Inner Exception: System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions
 of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. '&lt;/p&gt;
&lt;p&gt;I found on a blog saying that in this case&amp;nbsp;I need to Unblock the file and I did it but it didn't work.&lt;/p&gt;
&lt;p&gt;Any idea of how I can solve this?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>1sabine8</author><pubDate>Fri, 25 May 2012 13:25:58 GMT</pubDate><guid isPermaLink="false">New Post: Registration error 20120525012558P</guid></item><item><title>New Post: Skipping weekends possible?</title><link>http://manipulationlibrary.codeplex.com/discussions/355751</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I have a need to create a workflow which will create Phone Call records for a certain amount of days in advance based on a trigger of some other event. The problem is, I need to be able to skip the weekends. So, if the Phone Call record is created via workflow,
 and the Due Date is set to 3 days ahead. Can your workflow tool catch if that date is a weekend and adjust it to the following Monday instead?&lt;/p&gt;
&lt;p&gt;Thanks&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;/div&gt;</description><author>dsnuckel</author><pubDate>Mon, 14 May 2012 20:02:57 GMT</pubDate><guid isPermaLink="false">New Post: Skipping weekends possible? 20120514080257P</guid></item><item><title>New Post: Process Time out seems not to support results from date time operations</title><link>http://manipulationlibrary.codeplex.com/discussions/280630</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I am having the same issue.&amp;nbsp; Is there a fix or work-around&amp;nbsp;for this?&lt;/p&gt;&lt;/div&gt;</description><author>DamonMKirk</author><pubDate>Fri, 11 May 2012 15:57:21 GMT</pubDate><guid isPermaLink="false">New Post: Process Time out seems not to support results from date time operations 20120511035721P</guid></item><item><title>New Post: Parse Date CRM 2011</title><link>http://manipulationlibrary.codeplex.com/discussions/342140</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;This will be fixed in the next update.&lt;/p&gt;&lt;/div&gt;</description><author>carltoncolter</author><pubDate>Thu, 03 May 2012 16:42:48 GMT</pubDate><guid isPermaLink="false">New Post: Parse Date CRM 2011 20120503044248P</guid></item><item><title>New Post: Parse Date CRM 2011</title><link>http://manipulationlibrary.codeplex.com/discussions/342140</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I noticed when using parse date, the year gets a comma put in it (ex 2,012) because it is an integer type.&amp;nbsp; I manually added another OutArgument called YearString (so it doesn't break anything using year) so I could get the year to format properly.&amp;nbsp;&amp;nbsp;Is
 there&amp;nbsp;a way to have it not display the comma?&lt;/p&gt;
&lt;/div&gt;</description><author>mxg0d</author><pubDate>Wed, 22 Feb 2012 19:54:42 GMT</pubDate><guid isPermaLink="false">New Post: Parse Date CRM 2011 20120222075442P</guid></item><item><title>New Post: Cannot Update Previous Version</title><link>http://manipulationlibrary.codeplex.com/discussions/285801</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;OK.&amp;nbsp; I tried changing the function names back and that didn't work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The best way is to import the new solution that is included in the zip.&amp;nbsp; Then in the customizations -&amp;gt; Manipulation Library (old version in my case 1.0.1.0) go to each workflow step and click show dependencies.&amp;nbsp; Then change the version of the step to the new version (in this case 1.1).&amp;nbsp; Looks like this from technet &lt;a title="http://technet.microsoft.com/en-us/library/gg328011.aspx" href="http://technet.microsoft.com/en-us/library/gg328011.aspx" target="_blank"&gt;http://technet.microsoft.com/en-us/library/gg328011.aspx&lt;/a&gt;.&amp;nbsp; In the case of "Add Days To Date" and "Sub Days From Date", you need to just delete that step and change it to use "Add Days" and "Subtract Days".&amp;nbsp; That seemed to work for me. Once all the workflows are updated, you can delete the old version.&lt;/p&gt;
&lt;p&gt;It is nice that they now have the show dependencies.&lt;/p&gt;&lt;/div&gt;</description><author>mxg0d</author><pubDate>Wed, 18 Jan 2012 17:59:33 GMT</pubDate><guid isPermaLink="false">New Post: Cannot Update Previous Version 20120118055933P</guid></item><item><title>New Post: Cannot Update Previous Version</title><link>http://manipulationlibrary.codeplex.com/discussions/285801</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;That didn't work.&amp;nbsp; It gives me a cannot insert duplicate key error.&amp;nbsp; I tried even converting this to a Managed solution for the DLL and incrementing the version, but I still get the same error.&amp;nbsp; I have a feeling that it has something to do with the function for AddDays and SubDays being changed.&amp;nbsp; I might try and compile a version of it with the old names for those funtion and see if that works.&lt;/p&gt;&lt;/div&gt;</description><author>mxg0d</author><pubDate>Wed, 18 Jan 2012 17:01:36 GMT</pubDate><guid isPermaLink="false">New Post: Cannot Update Previous Version 20120118050136P</guid></item></channel></rss>