Announcements
No record found.
Testing
*This post is locked for comments
No my friend you have to write a custom code for this may custom workflow or plugin.
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.
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.
Test
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)
what is your field name levin. Can you elaborate the code briefly?
Aric levin, how you have taken the filed name and how you would trigger the field.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
ScottDurow 2
GJones 1