Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Is it possible to reset Remaining number of Terms on Entitlement via plugin?

(0) ShareShare
ReportReport
Posted on by 290

Hi All,

is it possible to reset Remaining number of Terms via plugin? If we do it via Workflow, there will be a error message "YOu can only edit a draft document".

Best regards,

Miha

8738.Entitlement.png

Terms.png

  • nkrauter Profile Picture
    59 on at
    RE: Is it possible to reset Remaining number of Terms on Entitlement via plugin?

    Is it possible to change remaining terms without first changing it's state to "draft"? It seems to me that this can result in a race condition. If an entitlement is updated and during that time a new incident is created, the user can not choose that entitlement.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Is it possible to reset Remaining number of Terms on Entitlement via plugin?

    Hi Miha,

    From screenshot you provided above, it will appear error message "You can only edit a draft document" when you use workflow.

    So you can change entitlement status to draft before resetting Remaining number of Terms, then change entitlement status to active again in workflow.

    Just like following screenshot:

    pastedimage1612926529694v1.png

    Now, you can use workflow to reset Remaining number of Terms successfully.

    Test:

    In System Jobs, you will see the workflow run successfully.

    pastedimage1612926839372v4.png

    In entitlement form, the remaining terms has changed to 2 successfully.

    pastedimage1612926697538v3.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#2
Ramesh Kumar Profile Picture

Ramesh Kumar 42

#3
David Shaw_UK Profile Picture

David Shaw_UK 27

Featured topics

Product updates

Dynamics 365 release plans