Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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?

(0) ShareShare
ReportReport
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
    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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 181 Super User 2025 Season 1

#2
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 124 Super User 2025 Season 1

Product updates

Dynamics 365 release plans