SmartConnector Forum
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Link copied. Please paste this link to share this article on your social media post.
I have a few Interval Trend Logs on an AS in a specific folder. This AS is attached to an ES.
"03/Server 1/Servers/DFW18_S220_DCIM04/TrendLogs"
In a SmartConnector, I would like to get Interval Trend Logs using EwsClient.ExtractHistoryItemIds or EwsClient.ExtractHistoryItems.
When I call using these parameters, it does not work.
itemIds = c.ExtractHistoryItemIds(false, new List<string> { "03/Server 1/Servers/DFW18_S220_DCIM04/TrendLogs" }, 5); items = c.ExtractHistoryItems(false, new List<string> { "03/Server 1/Servers/DFW18_S220_DCIM04/TrendLogs" }, 5);
But when I call the same method using the true parameter, it returns but takes a while to return.
itemIds = c.ExtractHistoryItemIds(true, new List<string> { "03/Server 1/Servers/DFW18_S220_DCIM04/TrendLogs" }, 5); items = c.ExtractHistoryItems(true, new List<string> { "03/Server 1/Servers/DFW18_S220_DCIM04/TrendLogs" }, 5);
The EwsClient version is 2.2.108.0
I assumed that if the path to the logs is known, passing false should work. Is there some setting on the AS that should be set or some other parameter I am missing?
Thanks in advance!!
Link copied. Please paste this link to share this article on your social media post.
Hi Maneesh,
I think this isn't working because when it is set to False it is expecting a list of Container Items Ids, but from what I can see, you havent passed in any ContainerItem Ids, but actually HistoryItem Ids.
itemIds = c.ExtractHistoryItemIds(false, new List<string> { "03/Server 1/Servers/DFW18_S220_DCIM04/TrendLogs" }, 5);
items = c.ExtractHistoryItems(false, new List<string> { "03/Server 1/Servers/DFW18_S220_DCIM04/TrendLogs" }, 5);
should probably be changed to:
itemIds = c.ExtractHistoryItemIds(false, new List<string> { "00/Server 1/Servers/DFW18_S220_DCIM04/TrendLogs" }, 5);
items = c.ExtractHistoryItems(false, new List<string> { "00/Server 1/Servers/DFW18_S220_DCIM04/TrendLogs" }, 5);
Notice 03 has been changed to 00 in the prefix of your Container Item IDs.
Below are what the prefixes in the SBO EWS Ids mean:
00 - Container Item
01 - Value Item
11 - Value item, that is a property of another Value Item
02 - Alarm Item
03 - History Item
-Jeff
Link copied. Please paste this link to share this article on your social media post.
Hi Maneesh,
I think this isn't working because when it is set to False it is expecting a list of Container Items Ids, but from what I can see, you havent passed in any ContainerItem Ids, but actually HistoryItem Ids.
itemIds = c.ExtractHistoryItemIds(false, new List<string> { "03/Server 1/Servers/DFW18_S220_DCIM04/TrendLogs" }, 5);
items = c.ExtractHistoryItems(false, new List<string> { "03/Server 1/Servers/DFW18_S220_DCIM04/TrendLogs" }, 5);
should probably be changed to:
itemIds = c.ExtractHistoryItemIds(false, new List<string> { "00/Server 1/Servers/DFW18_S220_DCIM04/TrendLogs" }, 5);
items = c.ExtractHistoryItems(false, new List<string> { "00/Server 1/Servers/DFW18_S220_DCIM04/TrendLogs" }, 5);
Notice 03 has been changed to 00 in the prefix of your Container Item IDs.
Below are what the prefixes in the SBO EWS Ids mean:
00 - Container Item
01 - Value Item
11 - Value item, that is a property of another Value Item
02 - Alarm Item
03 - History Item
-Jeff
Link copied. Please paste this link to share this article on your social media post.
I see. That explains it. Thanks!
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.