Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 2.19 KB

File metadata and controls

60 lines (44 loc) · 2.19 KB
title description ms.date ms.topic author ms.author ms.custom
notifyNewActivity (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 2.0 | MicrosoftDocs
Learn about notifyNewActivity (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 2.0.
04/03/2020
reference
gandhamm
mgandham
dyn365-a11y
dyn365-developer

notifyNewActivity (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 2.0

This method is used to indicate the number of new activities in a session that is currently not in focus. The indicator is automatically removed when the user switches to the session.

Notify new activity.

Note

This API is not compatible with requestFocusSession API and should not be used together with it.

Syntax

Microsoft.CIFramework.notifyNewActivity(sessionId, count).then(successCallback, errorCallback);

Parameters

Name Type Required Description
sessionId String Yes Unique identifier of the session.
count Number Yes A number indicating the count of new activities in the session since the last time the session was in focus.
The API call fails if negative numbers are passed in this parameter.
successCallback Function No A function to call when the request is successful.
errorCallback Function No A function to call when the request fails.

Return value

None

Example

Microsoft.CIFramework.notifyNewActivity(sessionId, count).then(
	function success(result) {
		console.log(result);
		// Perform operations
	},
	function (error) {
		console.log(error.message);
		// Handle error conditions
	}
);

See also

notifyKpiBreach API

[!INCLUDEfooter-include]