Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Unanswered

Expose Blob field in business central via web services

Posted on by 14

Hi,

is it possible to expose a Blob Field via web service ?

I have a custom table in BC 22, one field is a Blob type. I created a page in Visual studio code, that contains all the field i need to expose (also the Blob field). I published the page, and under web service settings, i added the page. Then i try to connect to web service page, i see no reference to the blob field.

This is the table `I have a custom table in BC 22, one field is a Blob type. I created a page in Visual studio code, that contains all the field i need to expose (also the Blob field). I published the page, and under web service settings, i added the page. Then i try to connect to web service page, i see no reference to the blob field.

This is the table

table 50500 /Test Blob/{    DataClassification = ToBeClassified;    DataPerCompany = false;    fields    {        field(1; NomeFileDaSpedire; Text[250])        {            Caption = 'NomeFileDaSpedire';        }        field(2; /Campo modifica/; Text[250])        {            Caption = 'NomeFileDaSpedire';        }        field(16; /BlobFile/; Blob)        {            Caption = 'BlobFile';        }    }    keys    {        key(PK; NomeFileDaSpedire)        {            Clustered = true;        }    }}
 
This is the page I used to publish the web page
page 50500 /Test Blob PAge/{    ApplicationArea = All;    Caption = 'Test Blob Page';    PageType = List;    SourceTable = /Test Blob/;    UsageCategory = Documents;    layout    {        area(content)        {            repeater(General)            {                field(BlobFile; Rec.BlobFile)                {                    ToolTip = 'Specifies the value of the BlobFile field.';                }                field(NomeFileDaSpedire; Rec.NomeFileDaSpedire)                {                    ToolTip = 'Specifies the value of the NomeFileDaSpedire field.';                }                field(/Campo modifica/; Rec./Campo modifica/)                {                    ToolTip = 'Specifies the value of the NomeFileDaSpedire field.';                }            }        }    }}
 
But when i try to web service page i see :
//
 
 

No mention to /blobfile/ field.

Is it possible to do what i wanted to do ? If yes , what i'm doing wrong ?

Thanks in advance

Fabrizio

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,349 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,212 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans