Skip to main content

Notifications

Microsoft Dynamics CRM forum
Answered

Is it possible to open a Quick Create form based on the currently opened form from the Parent Entity?

Posted on by 10

Hello everyone,

I have 2 forms on the 'Account' entity - Sales/Purchases. I also have a sub-grid linked with a 1:N relationship to the 'Opportunity' entity. The 'Opportunity' entity also has 2 forms - Sales/Purchases.

When I click on the 'New' ( + ) button on the sub-grid, I want to open the Quick Create form for the 'Opportunity' entity which corresponds to the currently opened form from the 'Account' entity.

Example: Customer Mike is with a currently opened form 'Sales'. When I click on the 'New' ( + ) button on the sub-grid, I want to open the 'Sales' Quick Create form for the 'Opportunity' entity.

We also have a customer Jake who is saved with the 'Purchases' form. I want to automatically open the 'Purchases' Quick Create form to create a new 'Opportunity' for Jake.

Is it possible to achieve this behaviour in a supported way in version 8 in the web (NOT Unified Interface) with JavaScript?

 

I am sorry if the question is confusing I tried to explain the problem in the best possible way. I am open for follow-up questions and comments.

Thank you for taking the time to read my post.

  • IvoKostov Profile Picture
    IvoKostov 10 on at
    RE: Is it possible to open a Quick Create form based on the currently opened form from the Parent Entity?

    I am verifying Bipins' answer because in the end, his solution was the one we settled for.

    Thank you for taking the time to read my post.

  • IvoKostov Profile Picture
    IvoKostov 10 on at
    RE: Is it possible to open a Quick Create form based on the currently opened form from the Parent Entity?

    Hello Bipin,

    Thank you for your suggestion.

    Unfortunately, I cannot do what you suggest due to requirement restrictions.

    I was thinking, maybe there is a parameter on the Quick Create form which keeps information about the navigation stack which includes its parent form? If there is something similar in the documentation I obviously cannot find it.

  • Verified answer
    Bipin D365 Profile Picture
    Bipin D365 28,962 Moderator on at
    RE: Is it possible to open a Quick Create form based on the currently opened form from the Parent Entity?

    Hello,

    You can achieve your requirement with two client API -

    To get the current form selected - docs.microsoft.com/.../formcontext-ui-formselector

    To open quick create form [FormId parameter can be used to open specific quick create form and entityFormOptions["useQuickCreateForm"] = true; to open quick create form] -

    docs.microsoft.com/.../openform

    You will need to either customize existing new+ button or hide OOB button and add your own button.

    Good Luck!

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,522 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,441 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans