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 :
Microsoft Dynamics NAV (Archived)

IMPORT Item Picture in NAV using XMLPORT

(0) ShareShare
ReportReport
Posted on by

Hi,
I am trying to IMPORT 'Item Picture' for a particular Item present in NAV by using XMLPORT. I can't find out how to do it. Can anyone suggest the C/AL required for this operation?
Best,
Souvik

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,237 Super User 2025 Season 2 on at
    RE: IMPORT Item Picture in NAV using XMLPORT

    Check the code under the action "Import Picture" on the item card, you need use IMPORTFILE option to import the file,

    FileName := FileManagement.UploadFile(SelectPictureTxt,ClientFileName);

                                    IF FileName = '' THEN

                                      EXIT;

                                    CLEAR(Picture);

                                    Picture.IMPORTFILE(FileName,ClientFileName);

                                    MODIFY(TRUE);

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#2
SC666 Profile Picture

SC666 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans