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

Announcements

News and Announcements icon
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 14

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)
  • SAADULLAH M Z Profile Picture
    175 on at

    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?

  • Verified answer
    Michel ROY Profile Picture
    14 on at

    Thx for your eaction,

    I just solve my problem see further in thee post

  • Verified answer
    Michel ROY Profile Picture
    14 on at

    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;

    }

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dserp Profile Picture

dserp 4

#2
dekion Profile Picture

dekion 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans