Methods
-
<static> getApproval( approvalSysId, userSysId ) → {Approval}
-
<static> getApprovalList( userSysId, delegatedList, input ) → {Array.<ListItem>}
-
Description
Get a list of pending approvals
Parameters
Name Type Description userSysIdsys_id delegatedListArray.<sys_id> inputQueryInput Additional input conditions, supported are state values state
Returns
-
<static> _mapApprovalRecord( glideRecord, isListItem ) → {Approval}
-
Description
Map approval record
Parameters
Name Type Description glideRecordGlideRecord isListItemboolean Returns
-
<static> countApprovalRecords( userSysId ) → {number}
-
Description
Get a count for records available to approve for the current user
Parameters
Name Type Description userSysIdsys_id Returns
-
<static> hasApprovalRecords( userSysId ) → {boolean}
-
Description
Check if a user has Approval records
Parameters
Name Type Description userSysIdsys_id Returns
-
<static> updateApproval( userSysId, approvalSysId, action, comment, delegatedList ) → {boolean}
-
<static> insertDelegate( record ) → {sys_id|undefined}
-
Description
Insert a new delegate and returns the sys_id of the new record or undefined if not created
Parameters
Name Type Description recordDelegateRecord An object that has all the field names and values for the new record to create
Returns
-
<static> updateDelegate( record ) → {boolean}
-
Description
Update a delegate and returns true on success
Parameters
Name Type Description recordDelegateRecord An object that has all the field names and values for the new record to create
Returns
-
<static> insertOrUpdateDelegate( record ) → {sys_id}
-
Description
Insert or update a record into the sys_user_delegate table, if record has sys_id an update is performed, otherwise an insert is done
Parameters
Name Type Description recordDelegateRecord Record object that contains data for insert or update
Returns
-
<static> getDelegatesToUser( userSysId ) → {Array.<sys_id>}
-
Description
Get a list of users sys_id's that a user has been delegated for
Parameters
Name Type Description userSysIdsys_id Returns
-
<static> getDelegateItem( delegateSysId, userSysId ) → {Delegate}
-
<static> _mapDelegateRecord( glideRecord, userSysId ) → {Delegate}
-
Description
Map gliderecord to Delegate
Parameters
Name Type Description glideRecordGlideRecord userSysIdsys_id Returns
-
<static> getDelegateItemList( userSysId ) → {Array.<ListItem>}