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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

What happened with orig() function

(0) ShareShare
ReportReport
Posted on by 709

Hi guys,

If I'm not mistaken, we used to have function orig() to get a table record previous value, right? Is it gone ? or maybe I didn't do it correctly or in wrong places ? 

I rarely use it, but currently I tried and there no fields after put like "CustTable.orig(). "

5277.Capture.JPG

any advise ?

Thanks

I have the same question (0)
  • WillWU Profile Picture
    22,361 on at

    Hi ShaqAX,

    This method refers to the last saved state of the current table buffer.

    You could find it in lot of places in the custTable datasource methods, see the modified method.

    pastedimage1595401063683v1.png

  • ShaqAX Profile Picture
    709 on at

    Hi WIll,

    Yes, I know, but beside in modified method, we can use it anywhere, right ? just specify like this : CustTable.orig().PaymMode --> this will return the last value of PaymMode, right ?

    Thanks

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Yes, you can get it anywhere. But the method .orig() methods a Common object, so you can't access CustTable fields directly in it.

    Instead you must first assign it to a CustTable buffer.

    For example CustTable custTable_orig = custTable.orig();

  • WillWU Profile Picture
    22,361 on at

    Hi ShaqAX,

    Yes, it works for me, please try to type the field you want.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans