Kony Management API Guide: App Management EMM JS APIs > Business Days Policy API

Business Days Policy API

The 'Business Days Policy API' helps a developer set or clear businessday and time from within an app.

com.kony.iemm.app.setBusinessDayTimePolicy

This method sets business day and time policy to an app. This will overwrite businessdaystime policy if that is already set from the server.

Signature

JavaScript:com.kony.iemm.app.setBusinessDayTimePolicy(isAllowed,bdays,time);

Input Parameters

Variable Name isAllowed
Presence Mandatory
Type Boolean
Values True - allowed to use
False - restricted to use

 

Variable Name bdays
Presence Mandatory
Type Array
Values String Array of fully qualified name of day

 

Variable Name time
Presence Optional
Type String
Values starthh:startmm-endhh:endmm/GMT+hh:mm

 

Result Values

Int

Result Codes

Code Description
100 INVALID_DATA
200 SUCCESS
300 NULL_OR_EMPTY_DATA
400 FEATURE_NOT_SUPPORTED
500 FAILURE
600

APP_CONTEXT_NULL_ERRORCODE (android)

700 PACKAGE_NULL_ERRORCODE(android)

com.kony.iemm.app.clearBusinessDayTimePolicy

This method clears businessdaystime policy set by a developer to app. Once the policy is cleared, the server defined businessdaystime policy will be applied to an app if any.

Signature

JavaScript:com.kony.iemm.app.clearBusinessDayTimePolicy();

Input Parameters

Result Values

Int

Result Codes

Code Description
200 SUCCESS
500 FAILURE
400 FEATURE_NOT_SUPPORTED
600

APP_CONTEXT_NULL_ERRORCODE (android)

700 PACKAGE_NULL_ERRORCODE(android)
Copyright © 2017 Kony, Inc. All rights reserved.