Skip to content

Commit

Permalink
Add SetBaseUrl procedure to AFSFileClient for customizable base URL (#…
Browse files Browse the repository at this point in the history
…2320)

#### Summary 
Add SetBaseUrl procedure to AFSFileClient for customizable base URL

#### Work Item(s)
Fixes #2319 
Fixes
[AB#556933](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/556933)
  • Loading branch information
domingosbarreto authored Nov 14, 2024
1 parent 09042fc commit 3105c1e
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ codeunit 8950 "AFS File Client"
AFSFileClientImpl.Initialize(StorageAccount, FileShare, '', Authorization, APIVersion);
end;

/// <summary>
/// The base URL to use when constructing the final URI.
/// If not set, the base URL is https://%1.file.core.windows.net where %1 is the storage account name.
/// </summary>
/// <remarks>Use %1 as a placeholder for the storage account name.</remarks>
/// <param name="BaseUrl">A valid URL string</param>
procedure SetBaseUrl(BaseUrl: Text)
begin
AFSFileClientImpl.SetBaseUrl(BaseUrl);
end;

/// <summary>
/// Creates a file in the file share.
/// This does not fill in the file content, it only initializes the file.
Expand Down

0 comments on commit 3105c1e

Please sign in to comment.