Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Unanswered

Expose Blob field in business central via web services

(0) ShareShare
ReportReport
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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,904 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,605 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans