Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Reset running number every month in crm online 2015

Posted on by 395

Hi,

I work in crm online 2015.

In our system we need running number for one entity.

So I made a plugin that take the last running number, and add 1;

The running number is in the following structure:

running number = year-month-running number;

For example : 2015-11-5

The next record's running number will be: 2015-11-6.

Every month I need to reset the running number,

so that he will be : year-month-1.

For example:2015-12-1.

My problem is : how can I know that this is the first record that create this month?

any idea?

thanks!

*This post is locked for comments

  • NAOMI314 Profile Picture
    NAOMI314 395 on at
    RE: Reset running number every month in crm online 2015

    Hi Guido,

    I wanted to use your idea,

    But because that we need the running number in 4 entities,

    (Two of them in the following structure:

    running number = year-month-running number;

    and two of them in the following structure:

    running number = running number;   - without the year and month.

    So I have two plugins :

    one update the running number,

    And one take the updated running number and add the year and month.

    So according to this :

    I can't know in the first plugin the month.

    Any other idea?

    thanks!

  • NAOMI314 Profile Picture
    NAOMI314 395 on at
    RE: Reset running number every month in crm online 2015

    thanks!

    cute idea!

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans