Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Is there a supported way of building managed solutions with views that filter for connection type of custom entity types?

Posted on by 20

I have multiple custom views for the entity type "Connection" in order to show sub-grids on forms with connections between my custom entities. Many of these views are filtering for the "type from" or "type to" field. As I see in the exported solution, this is saved in "saved queries" as a FetchXML expression containing something like:

<filter type="or">
  <condition attribute="record2objecttypecode" operator="eq" value="10091" />
  <condition attribute="record2objecttypecode" operator="eq" value="10095" />
</filter>
Unfortunately, after exporting these views in a managed solution and importing them into a new environment, the filters simply fail, because the "object type code" of custom entities is not stable (it seems that the object type code not even exported into the solution). My current solution to this problem ist that I export all object type code of my solution together with the logical names into a JSON file and after I imported the managed solution, I'm replacing the values of the object type codes in all saved queries with the new object type codes (determined by the logical name).
Is there a supported way, using the UI to create views that filter for a specific record object type, so that I can use these views in managed solutions in different environments without customizing the views after the import?
  • Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Is there a supported way of building managed solutions with views that filter for connection type of custom entity types?

    Hi,

    Can you try to change filter code to below and see if it's working in your dev environment (export -> modify xml->reimport)

    <condition attribute="record2objecttypename" operator="eq" value="entitylogicalname" />

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans