SBX - Search With Button

SBX - Forum Post Title

Unified Interface - Timeline control refresh on save

Microsoft Dynamics CRM Forum

Muhammad Shoaib asked a question on 15 Jun 2018 1:15 AM
My Badges

Question Status

Suggested Answer

Hi All,

We are using Unified Interface and have timeline control on Contact form.

On saving form the timeline control doesn't show recent changes.

We dont have option to programetically refresh the whole form as it interfere with other business logic.

Is there a way to refresh only timeline control post save of form?

I am using below code but it doesn't work as On Save is called before the actual updates are saved

var formContext = executionContext.getFormContext();
formContext.getControl("Timeline").refresh();

Just wondering if there is any other supported way?

Reply
Suggested Answer

You can use the below “save.then” snippet & call the timeline refresh code in success callback handler.

Xrm.Page.data.save(saveOptions).then(successCallback, errorCallback)

Reply
Suggested Answer

You can use the below “save.then” snippet & call the timeline refresh code in success callback handler.

Xrm.Page.data.save(saveOptions).then(successCallback, errorCallback)

Reply

SBX - Two Col Forum

SBX - Migrated JS