- Joined
- Jan 14, 2022
- Messages
- 5
- Reaction score
- 2
Hi, I'm trying to integrate a crm system with 3cx but I'm a bit new to this.
This crm to save calls accepts a url complete of all the data (ex: https://crm-ip/reportcall/?Calltype=Inbound&Duration=120&Agent=100)
I've some problems with the duration of the calls.
Using the variable [DurationSeconds] transmits null value and using the string [[[DurationTimespan].get_TotalSeconds()].ToString("F0")] the url is not formatted correctly.
The rest of the call is correctly received by the crm.
Where am I doing wrong?
This is the xml section that i'm trying.
<Scenario Id="ReportCall" Type="REST">
<Request SkipIf="[IIf([ReportCallEnabled]!=True||[EntityId]=="",True,[IIf([CallType]!=Inbound,True,False)])]" Url="https://crmurl/record_call/?CallType=Inbound&Duration=[DurationSeconds]&Agent=[Agent]&Number=[Number]" MessagePasses="0" RequestEncoding="UrlEncoded" RequestType="Post" ResponseType="Json" />
</Request>
<Variables />
<Outputs Next="ReportCallMissed" AllowEmpty="true" />
</Scenario>
Thanks for any help.
This crm to save calls accepts a url complete of all the data (ex: https://crm-ip/reportcall/?Calltype=Inbound&Duration=120&Agent=100)
I've some problems with the duration of the calls.
Using the variable [DurationSeconds] transmits null value and using the string [[[DurationTimespan].get_TotalSeconds()].ToString("F0")] the url is not formatted correctly.
The rest of the call is correctly received by the crm.
Where am I doing wrong?
This is the xml section that i'm trying.
<Scenario Id="ReportCall" Type="REST">
<Request SkipIf="[IIf([ReportCallEnabled]!=True||[EntityId]=="",True,[IIf([CallType]!=Inbound,True,False)])]" Url="https://crmurl/record_call/?CallType=Inbound&Duration=[DurationSeconds]&Agent=[Agent]&Number=[Number]" MessagePasses="0" RequestEncoding="UrlEncoded" RequestType="Post" ResponseType="Json" />
</Request>
<Variables />
<Outputs Next="ReportCallMissed" AllowEmpty="true" />
</Scenario>
Thanks for any help.