Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Use different form of an entity across other entities

Posted on by 73

Hello Community,

I have a custom entity titled 'Activities'. As per the business requirement, I can have activities created against the Contracts and Contacts entities.

The default Information form is configured for use at the Contracts level. I have a set of fields that includes a lookup field reading related Contract records and all works fine.

Need to use the same Activities entity on Contacts. The same lookup field now needs to display related Contact records, but it cannot do so. Hence I created a new form and then want to use this new form when I open Activities from Contacts.

Is there an out-of-the-box configuration to associate this new form to the Contacts or JavaScript is the only way out?

Thanks in advance.

Dominic.

  • Dynamics4Dom Profile Picture
    Dynamics4Dom 73 on at
    RE: Use different form of an entity across other entities

    Thanks Goutam.

    I will engage my developer to look at this.

    Cheers,

    Dominic.

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Use different form of an entity across other entities

    Hello ,

    If my understanding is correct you want to open different entity forms based on in which entity you are opening.

    Unfortunately there is no OOB configuration for that , you need to write JavaScript code for that to redirect the new form passing form id based on entity type (Contacts,Contracts).

    Please have a look below reference  -

    docs.microsoft.com/.../openform

    Below reference is for Dynamics CRM 2016 , although its same only you need to replace "Xrm.Navigation.openForm" instead of "Xrm.Utility.openEntityForm".

    mahadeomatre.blogspot.com/.../xrmutility-functions-openentityform.html

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans