Hi Brian,
Well, I tried using LatedAssignment, and assigning a known value to DtDesign variable.
DtDesign = (DateTime.UtcNow).AddDays(-1) | |||
TempoGBT = _CHAtendimentoInicialNíve._Chamada.LatestAssignment.GetBusinessTime(DtDesign, DateTime.UtcNow) | |||
Value = TempoGBT.TotalHours * 60 + TempoGBT.Minutes |
I had the same result, that is, TempoBGT variable has zero value.
I put another text field in the object, just to show the content of ResponseLevel related to LatestAssignment.
...
Value = _CHAtendimentoInicialNíve._Chamada.LatestAssignment.ResponseLevel.Title
...
This field is fulfilled with the correct ResponseLevel, as I defined in my OLA rules. Then, I think the the problem is not related to rules.
So, I´m locked here. And this calculation is very important since it´s used to customer to verify if services provided from third party (external services provider) are meeting SLA in the contract.
Thanks,
Carlos