Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Temp table.setTempData...
Finance forum

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

(0) ShareShare
ReportReport
Posted on by 5,943

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

  • Verified answer
    Jie G Profile Picture
    Jie G on at
    RE: Temp table.setTempData(). What it does actually?

    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.

  • Verified answer
    Sukrut Parab Profile Picture
    Sukrut Parab 71,656 Moderator on at
    RE: Temp table.setTempData(). What it does actually?

    If read below documentation u will come to know

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

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans