WebServiceActionContext Data Type

Version: Available or changed with runtime version 2.0.

Represents an AL WebServiceActionContext.

Instance methods

The following methods are available on instances of the WebServiceActionContext data type.

Method name Description
AddEntityKey(Integer, Any) Add a new <fieldId, value> pair to the collection of entity keys.
GetObjectId() Gets the object ID.
GetObjectType() Gets the object type.
GetResultCode() Gets the web service action result status code.
SetObjectId(Integer) Sets the object ID.
SetObjectType(ObjectType) Sets the object type.
SetResultCode(WebServiceActionResultCode) Sets the web service action result status code.

See Also

Creating and Interacting with an OData V4 Bound Action
Get Started with AL
Developing Extensions