WebServiceActionContext Data Type

Represents an AL WebServiceActionContext.

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.
SetObjectType(ObjectType) Sets the object type.
GetObjectType() Gets the object type.
SetObjectId(Integer) Sets the object ID.
GetObjectId() Gets the object ID.
SetResultCode(WebServiceActionResultCode) Sets the web service action result status code.
GetResultCode() Gets the web service action result status code.

See Also

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