and condition in scenario

Status
Not open for further replies.

MartinaP

Titanium Partner
Joined
Mar 8, 2022
Messages
41
Reaction score
7
I need all outgoing calls with calltype=outbound and from agent 303 and 304 to be reported in the call journal, while those from other agents are not.
i try this but not working:
<Request SkipIf="[IIf([ReportCallEnabled]!=True||[EntityId]==&quot;&quot;,True,[IIf([CallType]!=Outbound,True,[IIf([Agent]!=303,True,[IIf([Agent]!=304,True,False)])])])]"

Thanks
Martina
 
Add quotes to 303 and 304:
[IIf([ReportCallEnabled]!=True||[EntityId]==&quot;&quot;,True,[IIf([CallType]!=Outbound,True,[IIf([Agent]!=&quot;303&quot;,True,[IIf([Agent]!=&quot;304&quot;,True,False)])])])]
 
  • Like
Reactions: jed and Evolute IT
Thank you
 
  • Like
Reactions: jed
I don't understand why not works.
in my template :
<Request SkipIf="[IIf([ReportCallEnabled]!=True||[EntityId]==&quot;&quot;,True,[IIf([CallType]!=Inbound,True,[IIf([Agent]!=&quot;304&quot;,True,[IIf([Agent]!=&quot;303&quot;,True,False)])])])]" Url="/createCall" MessagePasses="0" RequestContentType="application/json" RequestEncoding="Json" RequestType="Post" ResponseType="Json">


when the call is answer from agent 303 or 304 i want a call journal.
 
Well, that expression will always be true, because the agent can't be 303 and 304 at the same time, so the scenario will be skipped. You need this:
[IIf([ReportCallEnabled]!=True||[EntityId]==&quot;&quot;,True,[IIf([CallType]!=Inbound,True,[IIf([Agent]!=&quot;304&quot;,[IIf([Agent]!=&quot;303&quot;,True,False)],False)])])]
 
"I have a problem. I make outbound calls, and after the call ends, I need to know the reason. For example, if the customer rejects the call, it should show as 'busy.' If the customer doesn't answer at all, it should be considered a 'timeout' call.



As for inbound calls from external to internal (inbound calls), if the employee doesn't answer the call, it should be counted as a 'missed call.' If the employee presses 'cancel,' it should also be considered a 'missed call.'



If the employee answers the call, it should be counted as a successfully answered call.



How can I achieve this?"



<Scenario Id="ReportChat" Type="REST">

<Request SkipIf="[ReportCallEnabled]!=True||[EntityId]==&quot;&quot;"
 
"I have a problem. I make outbound calls, and after the call ends, I need to know the reason. For example, if the customer rejects the call, it should show as 'busy.' If the customer doesn't answer at all, it should be considered a 'timeout' call.



As for inbound calls from external to internal (inbound calls), if the employee doesn't answer the call, it should be counted as a 'missed call.' If the employee presses 'cancel,' it should also be considered a 'missed call.'



If the employee answers the call, it should be counted as a successfully answered call.



How can I achieve this?"



<Scenario Id="ReportChat" Type="REST">

<Request SkipIf="[ReportCallEnabled]!=True||[EntityId]==&quot;&quot;"
This has been already answered here.
 
Status
Not open for further replies.