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

Is that possible to calculate a table field and get from expose page web service

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

I want get a new field called Inventory Value in Item Table. This value is calculated by same record fields by "Unit Cost" multiply "Inventory". Then I want to expose this field as page via web service. How could I do that.

Thanks in Advance!!

WeChat-Screenshot_5F00_20181127164637.pngWeChat-Screenshot_5F00_20181127164751.pngWeChat-Screenshot_5F00_20181127164823.png

Categories:
  • Verified answer
    Viki NTS Profile Picture
    250 on at

    if the field is just for reading purpose then you can expose as Variable in page that you are publishing as web services.

    Create a Variable in Page, add it as field and do write a code in Page "OnAfterGetRecord" record for calculating Values like : Variable := Field1 * Field2

  • Community Member Profile Picture
    on at

    Thank you so much, that is exactly what I expect. Thank you so much.

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