We are upgrading to Web 8.5 from 2013 SP1 and noticed the TOM.NET API on the C# TBBs by default behave differently on Web 8.5 as opposed to 2013 SP1.
We have a C# TBB like this:
IdentifiableObject identifiableObject = engine.GetObject("tcm:x-x-x");
System.Xml.XmlElement xmlElement = identifiableObject.ToXml();
In 2013 SP1 the xmlElement for a Publication looks like this:
<tcm:Publication xmlns:tcm="http://www.tridion.com/ContentManager/5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" ID="tcm:0-12-1" IsEditable="false">
<tcm:Info>
<tcm:LocationInfo>
<tcm:WebDAVURL>/webdav/040%20Web%20Site</tcm:WebDAVURL>
<tcm:Path>\</tcm:Path>
</tcm:LocationInfo>
<tcm:VersionInfo>
<tcm:CreationDate>2014-04-24T09:43:29</tcm:CreationDate>
<tcm:RevisionDate>2018-09-10T14:09:26</tcm:RevisionDate>
<tcm:Creator xlink:type="simple" xlink:title="DOMAIN\12345" xlink:href="tcm:0-59-65552" />
</tcm:VersionInfo>
<tcm:AllowedActions>
<tcm:Actions Allow="9216" Deny="3689344" Managed="0" />
</tcm:AllowedActions>
...
</tcm:Publication>
In Web 8.5, however, the LocationInfo and the VersionInfo nodes are missing.
<tcm:Publication xmlns:tcm="http://www.tridion.com/ContentManager/5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" ID="tcm:0-12-1" IsEditable="">
<tcm:Info>
<tcm:AllowedActions>
<tcm:Actions Allow="25600" Deny="3672960" Managed="0" AllowedActions="tcm:Search,tcm:View,tcm:Delete" DeniedActions="tcm:Publish,tcm:UnPublish,tcm:Edit,tcm:RePublish,tcm:BlueprintManaged,tcm:PermissionManaged,tcm:WorkflowManaged" />
</tcm:AllowedActions>
</tcm:Info>
<tcm:Data>
<tcm:Title>040 Web Site</tcm:Title>
</tcm:Data>
</tcm:Publication>
I presume the default behavior in Web 8.5 doesn't load all the info and I'd have to explicitly load them. My questions are:
1) How do I get the XML to return the LocationInfo and VersionInfo?
2) Why is the default behavior in Web 8.5 different from 2013 SP1?