The GetObjectStoreItem method enables the client application with access to the item type, version ID and version series ID of the item that was added to the object store via the AddViaTemplate command. This method provides access to the information specified through the IObjectStoreItem interface.
IObjectStoreItemPtr spIObjectStoreItemAdded = spIAddViaTemplateRsp->GetObjectStoreItem();
...
// Obtain the specific response information contained in the custom AddViaTemplateRsp component
IAddViaTemplateRspPtr spIAddViaTemplateRsp(spIAppIntRsp);
_ASSERTE(spIAddViaTemplateRsp != 0);
IObjectStoreItemPtr spIObjectStoreItemAdded = spIAddViaTemplateRsp->GetObjectStoreItem();
_ASSERTE(spIObjectStoreItemAdded != 0);
std::cout << "ObjectStoreName=" << (LPCSTR) spIObjectStoreItemAdded->GetObjectStoreName() << std::endl;
std::cout << "ItemType=" << (LPCSTR) CItemTypeConverter::EnumToBSTR(spIObjectStoreItemAdded->GetItemType()) << std::endl;
std::cout << "VersionSeriesID=" << (LPCSTR) spIObjectStoreItemAdded->GetVersionSeriesID() << std::endl;
std::cout << "VersionID=" << (LPCSTR) spIObjectStoreItemAdded->GetVersionID() << std::endl;
...