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 | Description |
| MediaReadLink | String | The url to the resource. This can be the full url to a stream resource or to a primitive property |
| FileName | String | The name of the file where the data from the stream will be written to. EX: C:\\Users\\Public\\document.pdf |
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 |