Click or drag to resize

ProcessServicesGetPendingApprovals Method

Retrieves a list of all approval items that are presently in a "pending approval" state. The list may optinally be filtered to return only those approval items that are relevant to a particular user.

Namespace:  FactoryLogix.xTend.ProcessDefinition
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public IEnumerable<ApprovalItem> GetPendingApprovals(
	Guid sessionId,
	string userName
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
userName
Type: SystemString
The user name of the user account whose pending approvals are sought. If this parameter is null or an empty string, all pending approvals for all users will be retrieved.

Return Value

Type: IEnumerableApprovalItem
A list ApprovalItem objects representing the approvals that are pending approval, optionally filtered by user account.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
NotFoundExceptionA user account matching the userName parameter was not found.
See Also