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 AX (Archived)

Add URL product image with X++

(0) ShareShare
ReportReport
Posted on by

Hello,

We have a list of URL (more than 100.000) with images that we wants to add to our released products.

We imported the list in ax but we are looking how we can add those with X++ script.

tmpImportItemInfo.ItemId              = "LiYCY"

tmpImport.InventDimId                  =  "7654321" for Config = "" / Size = "16x2x0.75" / Color = "Grey" 

tmpImport.Url (nvarchar(256))        = "www.allkabel.eu/.../94_LiYCY%20parovy.jpg"

Please help.

We try some code to import from file but it doesn't works for URL.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Michel ROY Profile Picture
    on at
    RE: Add URL product image with X++

    Hi,

    Thx for your reaction.

    It's what I intended to do and just find my mistake due a poor information by using the class ecoResProductImageThumbnail.

    switch(fileLocation)

    {

        case "Local":

               ecoResProductImageThumbnail         = new EcoResProductImageThumbnail(False);

               break;

        case "URL":

               ecoResProductImageThumbnail         = new EcoResProductImageThumbnail(True);

               break;

    }

  • Michel ROY Profile Picture
    on at
    RE: Add URL product image with X++

    Thx for your eaction,

    I just solve my problem see further in thee post

  • SAADULLAH M Z Profile Picture
    175 on at
    RE: Add URL product image with X++

    Do u want to store the URL value in AX table or U want to add the source image file in AX Table ?

    Could you please elaborate?

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans