ADO.NET Provider for Microsoft Dynamics 365 Business Central

Build 25.0.9540

RequestRawValue

Requests the raw value of a property by providing the full path to the resource. This can be used to retrieve primitive types or binary streams such as document attachments.

Stored Procedure-Specific Information

To execute this procedure, enter:
    EXEC RequestRawValue MediaReadLink = 'https://api.businesscentral.dynamics.com/v2.0/production/api/v2.0/companies(company-id)/documentAttachments(attachment-id)/attachmentContent'

Input

Name Type Accepts Output Streams Description
MediaReadLink String False The url to the resource. This can be the full url to a stream resource or to a primitive property
FileName String False The name of the file where the data from the stream will be written to. EX: C:\\Users\\Public\\document.pdf
FileStream String True OutputStream to write the content to.

Result Set Columns

Name Type Description
FileData String If neither FileName or FileStream are provided, the content will be displayed here as Base64Encoded
Success String Whether the procedure was successful or not

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 25.0.9540