Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Answered

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

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
    nkrauter 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
    Community Member Microsoft Employee 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

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