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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Editing the Items list in Excel

(0) ShareShare
ReportReport
Posted on by 645

One of my clients wishes to update their prices.  They've downloaded their data into Excel via the "Edit in Excel" action, but unfortunately the "Unit Price" isn't one of the fields in the standard download.

I've mirrored what they've done, and gone through the steps to modify the "Design", however the "Unit_Cost" and "Unit_Price" fields are only available as read-only fields.  This seems rather counter-intuitive.  Aside from the "Item No." and "Description" fields, the cost and price fields should be about the two most desirable fields to edit in Excel.

Is there another way to do easily do this, en masse?

  • Suggested answer
    Jared Hall Profile Picture
    Microsoft Employee on at

    Hi Dave,

    Thanks for the question and feedback on the Edit in Excel functionality. Although we didn't specifically look at the Unit Price and Unit Cost fields when designing the Edit in Excel functionality, not being able to edit the fields was by design. Those two fields are conditionally editable in the application. There is logic in the code at the time the page is opened that determines whether or not the field will be editable. However, the web service generated that the Excel workbook uses to connect to the data is only generated once. At the time the web service is created, and the metadata for the service is generated, there is no way for the system to know whether or not the field will be editable, based on the conditions, at the time the web service is called. So, for conditionally editable fields, the system will automatically mark the field as read-only all the time in the web service metadata, and therefore in the Excel spreadsheet.

    However, based on your feedback, we are looking into ways that we can improve this experience without losing data integrity. I realize this doesn't help you with your immediate need to update prices, but stay tuned as we continue to make improvements in future releases.

    As a workaround for updating prices en masse, RapidStart provides the option to update prices on items. You would need to export your price list to create a configuration package. You can then modify the prices in Excel, and load the new item information back into the system.

    Another workaround is to publish the items API page through the OData web services, and create an Excel workbook based on that web service. Here's how you could do that:

    1. In the Web Services page, create and publish a new web service based on Page 5470 (items).

    2. Open a blank Excel workbook.

    3. Open and log into the Microsoft Dynamics add-in, selecting your tenant and company in the settings.

    4. Click Design in the add-in.

    5. Select the new items web service you created from the list, and click Next.

    6. Select the Id, DisplayName, and UnitPrice fields. You can select others, too, but note that some properties that are complex types will cause errors if selected. Also note that the Id must be selected to publish.

    7. Finish the design and refresh the list in Excel.

    8. Make the UnitPrice changes that you need, and publish.

    I hope this helps. Let us know if you run into anything else.

    Thanks!

    Jared Hall

  • Dave Boehm Profile Picture
    645 on at

    Thanks for the reply, Jared.  These suggestions are very interesting.  I haven't previously responded because I'd like to test the second work-around.  The first sounds interesting, but sometimes RapidStart doesn't work cleanly.  I wouldn't like to take a chance on messing up other fields, just to get a price change into the items table.

    The API-Excel suggestion looks great, though.  I've been busy creating Power BI visualizations for my clients to the extent that I haven't yet had time to test the API approach.

  • Community Member Profile Picture
    on at

    Hello,

    I tried this suggestion to be able to modify the description field for the job planning lines (object ID 1007). I was able to see the new table in excel but the field is still read-only. How can I change the read only field so I can edit it in excel?
    Thanks!

  • Suggested answer
    Jared Hall Profile Picture
    Microsoft Employee on at

    Hi Juliet,

    The issue you're running into is currently a limitation of the Excel add-in. The Excel add-in doesn't have the ability to determine whether or not a field is editable for individual rows. In the Job Planning Lines table there are fields that are conditionally editable. For example, once the quantity for a job planning line has been posted to a job journal, most of the fields on the line, including description are no longer editable.

    The limitation is that the Excel add-in can't do a check to see whether or not a row meets the conditions to be editable. The read-only property for a field is set in the OData metadata at the time the connection is created. So, to protect data integrity, the add-in looks to see if there are any conditions at all under which the fields are restricted from editing. If there are such conditions, then the add-in takes a pessimistic approach and will not ever allow editing, setting the read-only property in the connection metadata. This ensures that you aren't able to change values in Excel that you would not be able to change through the Business Central application.

    Although we don't currently have a timeline for it, this is something that we have in our plan to improve in future releases of Business Central.

    Jared

  • Community Member Profile Picture
    on at

    Thank you for the information.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans