---
id: object/codeunit/8956
type: object
title: Codeunit 8956 "AFS Optional Parameters"
summary: Codeunit 8956 "AFS Optional Parameters" in System Application (System.Azure.Storage.Files). 36 public procedures. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - system application
versions:
  introduced: null
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: adfa2d1c540b990f4bc6f3641689b1e169d8786e0a9f1c9467cebe1896ffb086
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Azure%20File%20Services%20API/src/AFSOptionalParameters.Codeunit.al
    title: src/System Application/App/Azure File Services API/src/AFSOptionalParameters.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 8956
name: AFS Optional Parameters
namespace: System.Azure.Storage.Files
app: System Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 36
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 2
  implements: 0
---

# Codeunit 8956 "AFS Optional Parameters"

> Codeunit 8956 "AFS Optional Parameters" in System Application (System.Azure.Storage.Files). 36 public procedures. Present since at least BC23, still in BC30.

System Application · System.Azure.Storage.Files · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Azure%20File%20Services%20API/src/AFSOptionalParameters.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Public |

## Procedures

- `Range(BytesStartValue: Integer; BytesEndValue: Integer)`: Sets the value for 'x-ms-range' HttpHeader for a request.
- `Write(Value: Enum "AFS Write")`: Sets the value for 'x-ms-write' HttpHeader for a request.
- `LeaseId(Value: Guid)`: Sets the value for 'x-ms-lease-id' HttpHeader for a request.
- `LeaseAction(Value: Enum "AFS Lease Action")` (internal): Sets the value for 'x-ms-lease-action' HttpHeader for a request.
- `LeaseDuration(Value: Integer)`: Sets the value for 'x-ms-lease-duration' HttpHeader for a request.
- `ProposedLeaseId(Value: Guid)`: Sets the value for 'x-ms-proposed-lease-id' HttpHeader for a request.
- `ClientRequestId(Value: Text)`: Sets the value for 'x-ms-client-request-id' HttpHeader for a request.
- `FileLastWriteTime(Value: Enum "AFS File Last Write Time")`: Sets the value for 'x-ms-file-last-write-time' HttpHeader for a request.
- `FileRequestIntent(Value: Text)`: Sets the value for 'x-ms-file-request-intent' HttpHeader for a request, 'backup' is an acceptable value.
- `FilePermission(Value: Text)`: Sets the value for 'x-ms-file-permission' HttpHeader for a request.
- `FilePermissionKey(Value: Text)`: Sets the value for 'x-ms-file-permission-key' HttpHeader for a request.
- `FileAttributes(Value: List of [Enum "AFS File Attribute"])`: Sets the value for 'x-ms-file-attributes' HttpHeader for a request.
- `FileCreationTime(Value: DateTime)`: Sets the value for 'x-ms-file-creation-time' HttpHeader for a request.
- `FileLastWriteTime(Value: DateTime)`: Sets the value for 'x-ms-file-last-write-time' HttpHeader for a request.
- `FileChangeTime(Value: DateTime)`: Sets the value for 'x-ms-file-change-time' HttpHeader for a request.
- `Meta(Key: Text; Value: Text)`: Sets the value for 'x-ms-meta-name' HttpHeader for a request. name should adhere to C# identifiers naming convention.
- `FilePermissionCopyMode(Value: Enum "AFS File Permission Copy Mode")`: Sets the value for 'x-ms-file-permission-copy-mode' HttpHeader for a request.
- `CopySource(Value: Text)`: Sets the value for 'x-ms-copy-source' HttpHeader for a request.
- `AllowTrailingDot(Value: Boolean)`: Sets the value for 'x-ms-allow-trailing-dot' HttpHeader for a request.
- `FileRenameReplaceIfExists(Value: Boolean)`: Sets the value for 'x-ms-file-rename-replace-if-exists' HttpHeader for a request.
- `FileRenameIgnoreReadOnly(Value: Boolean)`: Sets the value for 'x-ms-file-rename-ignore-readonly' HttpHeader for a request.
- `SourceLeaseId(Value: Guid)`: Sets the value for 'x-ms-source-lease-id' HttpHeader for a request.
- `DestinationLeaseId(Value: Guid)`: Sets the value for 'x-ms-destination-lease-id' HttpHeader for a request.
- `FileCopyIgnoreReadOnly(Value: Boolean)`: Sets the value for 'x-ms-file-copy-ignore-readonly' HttpHeader for a request.
- `FileCopySetArchive(Value: Boolean)`: Sets the value for 'x-ms-file-copy-set-archive' HttpHeader for a request.
- `FileExtendedInfo(Value: Boolean)`: Sets the value for 'x-ms-file-extended-info' HttpHeader for a request.
- `RangeGetContentMD5(Value: Boolean)`: Sets the value for 'x-ms-range-get-content-md5' HttpHeader for a request.
- `Recursive(Value: Boolean)`: Sets the value for 'x-ms-recursive' HttpHeader for a request.
- `Timeout(Value: Integer)`: Sets the optional timeout value for the request.
- `Prefix(Value: Text)`: Filters the results to return only blobs whose names begin with the specified prefix.
- `ShareSnapshot(Value: DateTime)`: Specifies the share snapshot to query for the list of files and directories.
- `Marker(Value: Text)`: A string value that identifies the portion of the list to be returned with the next list operation.
- `MaxResults(Value: Integer)`: Specifies the maximum number of files or directories to return
- `Include(Value: List of [Enum "AFS Property"])`: Specifies one or more properties to include in the response.
- `GetRequestHeaders(): Dictionary of [Text, Text]` (internal)
- `GetParameters(): Dictionary of [Text, Text]` (internal)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 8963 "AFS Optional Parameters Impl."](../codeunit/8963.md) (35 calls: `AllowTrailingDot → AllowTrailingDot`, `ClientRequestId → ClientRequestId`, `CopySource → CopySource`, …)

## Called by

- [Codeunit 8951 "AFS File Client Impl."](../codeunit/8951.md) (10 calls: `AcquireLease → LeaseAction`, `AcquireLease → LeaseDuration`, `AcquireLease → ProposedLeaseId`, …)
- [Codeunit 8952 "AFS Operation Payload Impl."](../codeunit/8952.md) (2 calls: `SetOptionalParameters → GetParameters`, `SetOptionalParameters → GetRequestHeaders`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "AFS Optional Parameters")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
