{"title":"WebServiceActionContext data type","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/webserviceactioncontext/webserviceactioncontext-data-type/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/webserviceactioncontext/webserviceactioncontext-data-type, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/webserviceactioncontext/webserviceactioncontext-data-type","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Represents an AL WebServiceActionContext.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Instance methods","slug":"instance-methods","at":102,"chars":813},{"level":2,"title":"Related information","slug":"related-information","at":915,"chars":237}],"text":"> Version: _Available or changed with runtime version 2.0._\nRepresents an AL WebServiceActionContext.\n## Instance methods\nThe following methods are available on instances of the WebServiceActionContext data type.\nMethod name|Description\nAddEntityKey(Integer, Any)<webserviceactioncontext-addentitykey-method>|Add a new \\<fieldId, value\\> pair to the collection of entity keys.\nwebserviceactioncontext-getobjectid-method|Gets the object ID.\nwebserviceactioncontext-getobjecttype-method|Gets the object type.\nwebserviceactioncontext-getresultcode-method|Gets the web service action result status code.\nSetObjectId(Integer)<webserviceactioncontext-setobjectid-method>|Sets the object ID.\nSetObjectType(ObjectType)<webserviceactioncontext-setobjecttype-method>|Sets the object type.\nSetResultCode(WebServiceActionResultCode)<webserviceactioncontext-setresultcode-method>|Sets the web service action result status code.\n## Related information\nCreating and Interacting with an OData V4 Bound Action<../../devenv-creating-and-interacting-with-odatav4-bound-action>\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}