web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Test

(0) ShareShare
ReportReport
Posted on by 20

Testing

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    No my friend you have to write a custom code for this may custom workflow or plugin.

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    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.

  • nfernandezba Profile Picture
    210 on at

    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.

  • carlbuquerque Profile Picture
    20 on at

    Test

  • Suggested answer
    ashlega Profile Picture
    34,477 on at

    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)

  • Community Member Profile Picture
    on at

    what is your field name levin. Can you elaborate the code briefly?

  • Community Member Profile Picture
    on at

    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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans