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

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

Is there a way to lock/disable the timeline on a case when it's resolved?

(1) ShareShare
ReportReport
Posted on by 2,171
So my question is whether I can disable or prevent someone from adding activities or notes on a timeline when a case is resolved. I saw you can use javascript to disable controls and it seems like setDisabled works for timelines.
 
 
 
I tried adding it to my script and set it on form load:
 
var Namespace = Namespace || {};// Lock timeline functionNamespace.lockTimeline = function (executionContext){    var formContext = executionContext.getFormContext();    var formStatus = formContext.ui.getFormType();    if (formStatus === 4 || formStatus === 3) {      var timeline = formContext.getControl(/Timeline/);        // disable timeline        timeline.setDisabled(true);        // Check timeline is disabled        var timelineDisabled = timeline.getDisabled();        console.log(timelineDisabled); // This returns true but I can still edit and add things to the timeline    }};
 
It doesn't seem to work. Would I have to create plugin to perform this task?
 
Kind regards,
Mike
 
I have the same question (1)
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    Is there a way to lock/disable the timeline on a case when it's resolved?
    Hi Partner,
    When you resolve the case, the case form will be read-only and all controls(included Timeline) on the form will be disables.
    However, we can continue to add activities and notes even if the timeline is disabled, which seems to be by design!
    So we need some other way to stop users from creating activities and notes on resolved cases, the disable timeline approach doesn't work.
    Through workflow? Maybe give it a try.
    --Condition: check regarding case status:
    --Stop workflow: Canceled:
     
    Save and Active.
    Test:

    I hope you can verify my answer if it helps you! If you have any questions, please feel free to contact me.
    Regards,
    Leah
  • Leah Ju Profile Picture
    Microsoft Employee on at
    Is there a way to lock/disable the timeline on a case when it's resolved?
    Hi Partner,
    Has the issue been resolved?
    Have there been any updates? Please feel free to ask me any questions you may have!
    If it has been resolved, can you mark the response as an answer?
  • JoannaMERP Profile Picture
    2 on at
    Is there a way to lock/disable the timeline on a case when it's resolved?
    It's been 2 years since this post, timelinewall control still does not support setDisabled. 
    Why does the documentation still suggest it's supported?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 58

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 16 Super User 2025 Season 2

#2
CU29080825-0 Profile Picture

CU29080825-0 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans