Testing
*This post is locked for comments
Testing
*This post is locked for comments
Aric levin, how you have taken the filed name and how you would trigger the field.
what is your field name levin. Can you elaborate the code briefly?
You might try using these components:
github.com/.../CRM-DateTime-Workflow-Utilities
There are workflow activities to get first/last days of month (so you might just add 1 day to that in your workflow.. which is also a custom activity there)
Test
Carl,
What should trigger the date update? To which records?
I'm thinking a no-code solution, but I need this information to analyze the viability.
You can create a custom workflow activity. Should be fairly simple. Build it and deploy using Plugin Registration Tool.
If you have not done this before, check the following link:
msdn.microsoft.com/.../gg328515.aspx
using System;
using System.Activities;
using Microsoft.Xrm.Sdk.Workflow;
namespace XrmWorkflowTools
{
public class GenerateDate : CodeActivity
{
#region Input/Output Parameters
// Not Required. Just to have input parameter
[Input("DateFormat")]
[RequiredArgument]
public InArgument<string> DateFormat { get; set; }
[Output("Output Date")]
public OutArgument<DateTime> OutputDate { get; set; }
#endregion
protected override void Execute(CodeActivityContext executionContext)
{
DateTime currentDate = DateTime.Today;
DateTime nextDate;
if (currentDate.Month == 12)
nextDate = new DateTime(currentDate.Year + 1, 1, 1);
else
nextDate = new DateTime(currentDate.Year, currentDate.Month + 1, 1);
OutputDate.Set(executionContext, nextDate);
}
}
}
Hope this helps.
No my friend you have to write a custom code for this may custom workflow or plugin.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156