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...
Unanswered

Exporting Database to Excel to Update Descriptions and Pricing and then Import back to Database

(0) ShareShare
ReportReport
Posted on by 84

Is that something that can be done?  Does it require an addon?

Thanks!  :)

I have the same question (0)
  • mcons Profile Picture
    390 on at
    RE: Exporting Database to Excel to Update Descriptions and Pricing and then Import back to Database

    In the Administrator (or sql manager) run this query:

    "SELECT ID, Description from Item"   (You can also do this from the inventory report with the ItemLookupCode and Description, but this how I do it)  Then click File, Export and save that CSV file.

    If you have Excel installed, double click on that csv file and it will open in Excel.  Add a new column "C" and enter the new description.    I would recommend not to use ' or " in the description or you will have to change around the script on the next step.   You can search on how to do that.

    Now in column D enter this:

    ="UPDATE Item Set Description = '" &C1&"' Where ID = "&A1&";"       (Adjust C1, A1 to the column/row you are using).   This will hardcode the command and grab the data from the new description cell and the item id cell.   When you hit enter it should show something like this:

    Update Item Set Description = 'Here is my new description' Where ID = 12345;

    If so, copy/paste that to all of the other rows.  Finally, copy all of those rows and paste into the RMS manager as a new query (it will show as a bunch of queries) and run it.   I would recommend a database backup first.

    Again, if you have ' or " in your description, You can search on how to adjust the script to account for those.  If you dont it will mess up your query.

  • eBank Profile Picture
    84 on at
    RE: Exporting Database to Excel to Update Descriptions and Pricing and then Import back to Database

    Thanks for the reply!

    Ok, that's a bit scary...lol

    Working on a local copy of their database for testing.

    Tried with just one sku and it came back good.  Dumped the list in its' entirety and got this error:

    An error occurred while executing query:

    Incorrect syntax near 'S'.

    Ran down adding one at a time until I got the error on this line:

    UPDATE Item Set Description = 'KIEHL'S BLUE HERBAL LOT. 8.0' Where ID = 4351;

    The apostrophe in Kiehl's is doing it.  Any way around this?  There's many with said apostrophe.

  • mcons Profile Picture
    390 on at
    RE: Exporting Database to Excel to Update Descriptions and Pricing and then Import back to Database

    In my instructions I explained that ' and " will cause issues.   You will need to search on how to adjust your queries for single and double quotes.  There are multiple ways to accomplish this that is too detailed to include here.  Test one item as you did before.

  • eBank Profile Picture
    84 on at
    RE: Exporting Database to Excel to Update Descriptions and Pricing and then Import back to Database

    My bad.  I read it as "or" no ' or ".  :)

    Thanks!

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,225

#2
Sumit Singh Profile Picture

Sumit Singh 2,123

#3
YUN ZHU Profile Picture

YUN ZHU 1,813 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans