web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

how to enable camera in business Central cloud

(0) ShareShare
ReportReport
Posted on by 23
Hi
I am using Dynamics 365 Business Central cloud. 
I want to know 'how to enable camera in business Central cloud'
Can you give help in AL
 
Warm regards
  • Suggested answer
    YUN ZHU Profile Picture
    103,103 Super User 2026 Season 2 on at
    Hi, sorry I'm not sure if this still works in the current version, hope this gives you some hints.
     
     
    Thanks
    ZHU
  • CU27040930-10 Profile Picture
    3 on at
    i will drop a short line of code that should work fine on the requirement microsoft has two different function one for cloud and onprep
     
     
    procedure TakeRealPicture(): Boolean
        var
            istream: InStream;
            PictureName: Text;
            Camera: Codeunit Camera;
            MimeTypeTok: Label 'image/jpeg', Locked = true;
        begin
            Rec.Find();
            Rec.TestField("No.");
            Rec.TestField(Description);
            // if rec."Item Image".Count > 0 then begin
            if not Confirm('The existing picture will be replaced. Do you want to continue?') then
                exit(false);
            if Camera.IsAvailable() then begin
                if Camera.GetPicture(istream, PictureName) then begin
                    Clear(Rec."Item Image");
                    rec."Item Image".ImportStream(istream, PictureName, MimeTypeTok);
                    rec.Modify(true);
                    exit(true);
                end
            end
        end;
     
     
     
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 748 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 354 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 351 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans