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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

How to Create a Preview Form in D365FO and Open It on Button Click?

(0) ShareShare
ReportReport
Posted on by 34
Hi everyone,
 
I’m trying to create a Preview Form in Dynamics 365 Finance & Operations that behaves similarly to the “Preview results” functionality in some standard forms (e.g., Manual bulk drawdown).


 
Scenario

I have a main form where users select or calculate data. On clicking a button (Preview), I want to:
  1. Collect data from the main form.
  2. Insert it into a TempDB table.
  3. Open a new read-only preview form showing these results in a grid.
What I need help with
 
I want to understand the best practice approach for:
  • Designing a TempDB table for preview.
  • Passing the TempDB buffer from the main form to the preview form.
  • Launching the preview form using Args and a Display menu item.
  • Ensuring the preview form correctly receives the temp table records.
My current challenges
  • The preview form opens but doesn’t show any data.
  • I’m not fully sure if I’m passing the temp table buffer correctly.
  • Not sure if the temp table should be filled inside the button logic or elsewhere.
If possible, please share:
  • A simple example of the button clicked() method.
  • The correct setup for the TempDB table.
  • How to define the preview form datasource.
  • A working example of passing and displaying TempDB data using Args.
Any guidance or sample code would be greatly appreciated.
Thank you!
Categories:
I have the same question (0)

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 83 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 79

#3
Martin Dráb Profile Picture

Martin Dráb 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans