- Joined
- Feb 2, 2023
- Messages
- 81
- Reaction score
- 19
Hi,
I'm playing with CRM wizard template, and i've a problem when [CallEstablishedTimeUTC] varible is null.
How i can condition to not send this variable if it's null.
I tried this but do not work.
and in the logs show this error:
Regards!
I'm playing with CRM wizard template, and i've a problem when [CallEstablishedTimeUTC] varible is null.
How i can condition to not send this variable if it's null.
I tried this but do not work.
<Value Key="CallEstablishedTimeUTC" If="[CallEstablishedTimeUTC]!=Null" Passes="0" Type="String">[[CallEstablishedTimeUTC].ToString("yyyy-MM-ddTHH:mm:ssZ")]</Value>
and in the logs show this error:
2024/09/27 15:15:18.295|0022|Erro| CRM: Exception during call reporting: System.NullReferenceException: Object reference not set to an instance of an object.
at TcxLexicalParser.LexEvaluator.InstanceFunction(IValueManager valueManager, FunctionElement functionElement)
at TcxLexicalParser.LexEvaluator.ProcessInt(FunctionElement functionElement, IValueManager valueManager)
at Integration.Crm.Engine.ScenarioProcessorBase.CreateJsonFromPostValues(RequestItem requestItem, IValueManager customManager)
at Integration.Crm.Engine.ScenarioProcessorBase.ProcessRequest(ScenarioRequest request, IValueManager customManager, HttpClient client, CancellationToken token)
at Integration.Crm.Engine.ScenarioProcessorBase.ProcessScenario(ProtocolScenario scenario, IValueManager customManager, SqlQueryParameter[] sqlQueryParameter, CancellationToken token)
at Integration.Crm.Engine.ScenarioProcessorBase.Execute(ProtocolScenario scenario, SqlQueryParameter[] sqlQueryParameter, CancellationToken token)
at Integration.Crm.Engine.CrmProcessor.ExecuteScenarioByName(String scenarioName, IEnumerable`1 parameters, Boolean useNoAuthProvider, CancellationToken token)
at Integration.Crm.Engine.CrmProcessor.ExecuteScenarioWithRetries(String scenarioId, Dictionary`2 parameters, CancellationToken token)
at Integration.Crm.Engine.CrmProcessor.ReportCall(CallEndedEvent callEndedEvent, CancellationToken token)
Regards!