Including Objects from Project Repositories in a Public Query

A GetMetadata method call that requests associated objects and is issued in a public (foundation or custom) repository returns information about cross-repository references to objects in other public repositories, by default. If you have a need to include cross-repository references to objects in project repositories (for example, to determine whether any of an object's associated objects are checked out for development), you can set the OMI_DEPENDENCY_USED_BY (16384) flag in the method call. The following is an example of a GetMetadata request that gets cross-repository references to objects in project repositories:
<GetMetadata>
   <Metadata>
     <PhysicalTable Id="A53TPPVI.A4000001" Name="Sales Offices"/>
   </Metadata>
   <NS>SAS</NS>
   <!-- OMI_ALL (1) + OMI_DEPENDENCY_USED_BY (16384)
    + OMI_SUCCINCT (2048) flags --> 
   <Flags>18433</Flags>
   <Options/>
</GetMetadata>
In the request, note the following:
  • The OMI_ALL flag instructs the method to return all properties (attributes and associations) that are defined for PhysicalTable A53TPPVI.A4000001.
  • The OMI_DEPENDENCY_USED_BY flag instructs the method to include cross-repository references to objects in project repositories in the results. The method returns associated objects from all project repositories. There is no way to search specific project repositories.
  • The OMI_SUCCINCT flag instructs the method to include only properties that contain a value in them in the results.