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 :
Dynamics 365 Community / Forums / Finance forum / Temp table.setTempData...
Finance forum

Temp table.setTempData(). What it does actually?

(0) ShareShare
ReportReport
Posted on by 30

Dear all,

Can you please let me know Temp table.setTempData(). What it does actually?

When we can use setTempData() ?

Please give me more she'd on this

I have the same question (0)
  • Verified answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    If read below documentation u will come to know

    blogs.msdn.microsoft.com/.../temporary-tables-ax-2012

  • Verified answer
    Jie G Profile Picture
    Microsoft Employee on at

    Hi,

    When you call the setTmpData method on the record buffer, you will have the record buffers use the same temporary dataset.  As illustrated in the following X++ code. In this example, the setTmpData method is called on the second record buffer and is passed in the first record buffer as a parameter.

    TmpLedgerTable tmpLedgerTable1;

    TmpLedgerTable tmpLedgerTable2;

    tmpLedgerTable2.setTmpData(tmpLedgerTable1);

    Now both record buffers point to the same dataset.

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 > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans