Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

How to get a newly created record from a another form?

Posted on by 3,061

I have a new Wizard I am using to do multiple actions.  The first action is to create a new record:

pastedimage1570732065590v1.png

The 'New' button will open another form:

pastedimage1570732222295v2.png

This is our standard form for creating this type of record.  Once this is created, is there any way for my original Wizard form to know what record was created?

  • Suggested answer
    Pedro Tornich Profile Picture
    Pedro Tornich 955 on at
    RE: How to get a newly created record from a another form?

    Hi bRradlyJames,

    You can add a method to your main form, let's say:

    parmNewRecord(MyTable _myTableBuffer)

    Then you call it in your sub form by doing this:

    Object callerObj = element.args().caller();
    callerObj.parmNewRecord(myTableBuffer);
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: How to get a newly created record from a another form?

    Hi bRradlyJames,

    There are options for forms to communicate with each other. I had created an example a while ago. You can find it on my OneDrive: 1drv.ms/.../s!ApcKgHi0IWNh0A1m_MctnVthP_J9 (AX 2012 > Various).

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans