web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 13
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
I have the same question (0)
  • Community member Profile Picture
    3 on at
    how to enable camera in business Central cloud
    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;
     
     
     
     
  • Suggested answer
    YUN ZHU Profile Picture
    92,443 Super User 2025 Season 2 on at
    how to enable camera in business Central cloud
    Hi, sorry I'm not sure if this still works in the current version, hope this gives you some hints.
     
     
    Thanks
    ZHU

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,132

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,615

#3
Sumit Singh Profile Picture

Sumit Singh 2,912

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans