c_SSPApprovalService

Description

Service that provides functions for working with Approvals and Delegates

Methods


<static> getDelegateItem( item ) → {Delegate}

Description

Retrieve a delegate record object or undefined if not found

Parameters
Name Type Description
item ListItem
Returns

<static> getDelegateItemList() → {Array.<ListItem>}

Description

Get a list of delegate items

Returns

<static> getApprovalItemList( input ) → {Array.<ListItem>}

Description

Get a list of approval items

Parameters
Name Type Description
input QueryInput

Set of conditions to use for retrieving data

Returns

<static> updateApproval( approvalSysId, action, comment ) → {boolean}

Description

Update a approval returns undefined on success, otherwise a message indicating the issue

Parameters
Name Type Description
approvalSysId sys_id
action "comment" | "approve" | "reject"
comment string | undefined
Returns

<static> getApproval( listItem ) → {Approval}

Description

Retrieve details for a approval

Parameters
Name Type Description
listItem ListItem
Returns