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

How can I update image field in items by categoryid with a query?

(0) ShareShare
ReportReport
Posted on by 624

I need to help out the ordering dept by populating the image field in items.  I want to run a query that would use ILC and add .jpg to it and insert into the image field. I would need to be able to select by category or some filter so I can limit what is being changed.  I have seen a post that used this command is this correct?

UPDATE dbo_item.image SET dbo_item.image = "C:\IMAGEPATH\"  where categoryid = xxx

Also is there away to rename a current ILC in bulk?  Like ILC "028" to  "B028" by supplier or some other meaningful filter?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    TimB Profile Picture
    1,175 on at
    Re: How can I update image field in items by categoryid with a query?

    Hi, you need to set the path to the pictures in SO administrator. File --> Configuration --> Paths --> pictures field. No, the query in your post will not work. You could use the following, it should work.

    UPDATE item SET picturename = itemlookupcode + '.jpg'  where categoryid = xxx

    If you know the category name and not the id, you could replace this query with the xxx in the previous query including the parenthesis. (select id from category where name = 'CategoryNameHere')

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics RMS (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans