title | description | author | ms.topic | ms.devlang | ms.date | ms.author | ms.reviewer |
---|---|---|---|---|---|---|---|
picture resource type |
A picture object in Dynamics 365 Business Central. |
SusanneWindfeldPedersen |
reference |
al |
04/09/2024 |
solsen |
solsen |
[!INCLUDEapi_v2_note]
Represents a picture in [!INCLUDEprod_short].
Note
For information about enabling APIs for [!INCLUDEprod_short] see Enabling the APIs for Dynamics 365 Business Central.
Method | Return Type | Description |
---|---|---|
GET picture | picture | Gets a picture object. |
DELETE picture | none | Deletes a picture object. |
PATCH picture | picture | Updates a picture object. |
Navigation | Return Type | Description |
---|---|---|
item | item | Gets the item of the picture. |
customer | customer | Gets the customer of the picture. |
contact | contact | Gets the contact of the picture. |
vendor | vendor | Gets the vendor of the picture. |
employee | employee | Gets the employee of the picture. |
Property | Type | Description |
---|---|---|
id | GUID | The unique ID of the picture. Non-editable. |
parentType | NAV.pictureEntityParentType | The type of the parent document of the picture. It can be "Customer","Item", "Vendor", "Employee". |
width | integer | The width of the picture. |
height | integer | The height of the picture. |
contentType | string | The media type of the picture. |
pictureContent | stream | The picture's content. |
Here is a JSON representation of the picture resource.
{
"id": "GUID",
"parentType": "NAV.pictureEntityParentType",
"width": "integer",
"height": "integer",
"contentType": "string",
"pictureContent": "stream"
}