web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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?
I have the same question (0)
  • Mahendar Pal Profile Picture
    45,095 on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 45 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 36

#3
Satyam Prakash Profile Picture

Satyam Prakash 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans