Is there any way to know the current production version of the protocol which is being used in the C# code by passing the protocol name.
IDmsProtocol protocol = listOfProtocols.FirstOrDefault(x => x.Name == "AppearTV X20 Platform");
engine.GenerateInformation(protocol.Version);
engine.GenerateInformation(protocol.ReferencedVersion);
here both result in the same version which is actually the latest one, but not the production on.

Hi Miguel,
Thanks for the response but somehow both give same versions, wherein the latest one, but not production one in ReferencedVersion.

I believe there are 2 properties in that object (Version and ReferencedVersion)
When Version has the value “Production” then ReferencedVersion will show the ‘actual’ version that is in production.
Hi,
To complete the comments above, I did a quick test and you should be able to use the following snippet
IDms thisDms = engine.GetDms();
var protocol = thisDms.GetProtocol("ProtocolName", "Production");
engine.GenerateInformation($"Protocol version: {protocol.Version} / Referenced version: {protocol.ReferencedVersion}");
And you should have something like the following
Hi Apurva,
I didn’t check in detail, but it seems that the IDmsProtocol interface provides this information:
https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Core.DataMinerSystem.Common.IDmsProtocol.html
If you look at the properties, there is one property that can provide you this information (see ReferencedVersion)