Autotask + 3CX Integration

Status
Not open for further replies.

ElementalWindX

Bronze Partner
Advanced Certified
Joined
Oct 24, 2018
Messages
367
Reaction score
40
Referring to this: https://www.3cx.com/community/threads/3cx-autotask.78818/

I edited it to include my autotask ww* url (in 2 places), and I created an API user and copied and pasted the username (key) and password (secret) fields from PSA into 3cx under general configuration section. However not sure what to do for Autotask API tracker. I created a "custom (internal integration)" tracking identifier in Auto task, and used that tracking identifier number to fill in the last input field for auto task api tracker.

However when I test if this works, I get " Server returned a non successful status code - HTTPStatusCode=Unauthorized - Reason=Unauthorized - Content= "


Does anyone know what I'm doing wrong here?

Thanks.


*edit* Figured it out. Delete this thread pls :) Thanks
 
isn't it a delete button in your post to do this ?
Not that I see,

However I still cannot get this .xml file to work. It'll show caller id perfectly fine, but it will not log calls into autotask.

Anyone have any ideas on what can cause this not to work?
 
Not that I see,

However I still cannot get this .xml file to work. It'll show caller id perfectly fine, but it will not log calls into autotask.

Anyone have any ideas on what can cause this not to work?
Are you on Update 3? There was a bug for this. Also, check the logs to see if the request sent is actually correct and accepted by Autotask.
 
Are you on Update 3? There was a bug for this. Also, check the logs to see if the request sent is actually correct and accepted by Autotask.
Yep on 18.0 Update 3. Where would the logs be you're referring to specifically? In autotask? In 3cx? Where?

Thanks.
 
Yep on 18.0 Update 3. Where would the logs be you're referring to specifically? In autotask? In 3cx? Where?

Thanks.
3CXSystemService.log in Verbose
 
3CXSystemService.log in Verbose
Code:
2022/03/06 15:48:31.181|12281|0052|Erro|Exception during call reporting: System.FormatException: Input string was not in a correct format.
   at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
   at CrmIntegration.ScenarioProcessorBase.CreateJsonFromPostValues(RequestItem requestItem, IValueManager customManager)
   at CrmIntegration.ScenarioProcessorBase.ProcessRequest(ScenarioRequest request, IValueManager customManager, HttpClient client, CancellationToken token)
   at CrmIntegration.ScenarioProcessorBase.ProcessScenario(ProtocolScenario scenario, IValueManager customManager, CancellationToken token)
   at CrmIntegration.ScenarioProcessorBase.ProcessMatching(ProtocolScenario scenario, MatchingPath matching, ResponseMatcher responseMatcher, IValueManager customManager, HashSet`1 distinctMatchings, CancellationToken token)
   at CrmIntegration.ScenarioProcessorBase.ProcessFoundMatchings(ProtocolScenario scenario, IValueManager customManager, List`1 matchings, ResponseMatcher responseMatcher, CancellationToken token)
   at CrmIntegration.ScenarioProcessorBase.ProcessScenario(ProtocolScenario scenario, IValueManager customManager, CancellationToken token)
   at CrmIntegration.ScenarioProcessorBase.ProcessMatching(ProtocolScenario scenario, MatchingPath matching, ResponseMatcher responseMatcher, IValueManager customManager, HashSet`1 distinctMatchings, CancellationToken token)
   at CrmIntegration.ScenarioProcessorBase.ProcessFoundMatchings(ProtocolScenario scenario, IValueManager customManager, List`1 matchings, ResponseMatcher responseMatcher, CancellationToken token)
   at CrmIntegration.ScenarioProcessorBase.ProcessScenario(ProtocolScenario scenario, IValueManager customManager, CancellationToken token)
   at CrmIntegration.ScenarioProcessorBase.ProcessMatching(ProtocolScenario scenario, MatchingPath matching, ResponseMatcher responseMatcher, IValueManager customManager, HashSet`1 distinctMatchings, CancellationToken token)
   at CrmIntegration.ScenarioProcessorBase.ProcessFoundMatchings(ProtocolScenario scenario, IValueManager customManager, List`1 matchings, ResponseMatcher responseMatcher, CancellationToken token)
   at CrmIntegration.ScenarioProcessorBase.ProcessScenario(ProtocolScenario scenario, IValueManager customManager, CancellationToken token)
   at CrmIntegration.ScenarioProcessorBase.Execute(ProtocolScenario scenario, CancellationToken token)
   at CrmIntegration.CrmProcessor.ExecuteScenarioByName(String scenarioName, IEnumerable`1 parameters, Boolean useNoAuthProvider, CancellationToken token)
   at CrmIntegration.CrmProcessor.ExecuteScenarioWithRetries(String scenarioId, Dictionary`2 parameters, CancellationToken token)
   at CrmIntegration.CrmProcessor.ReportCall(CallEndedEvent callEndedEvent, CancellationToken token)
2022/03/06 15:51:03.939|12281|0058|Erro|Exception during call reporting: System.Exception: Server returned a non successful status code - HTTPStatusCode=NotFound - Reason=Not Found - Content=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>404 - File or directory not found.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
 <div class="content-container"><fieldset>
  <h2>404 - File or directory not found.</h2>
  <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
 </fieldset></div>
</div>
</body>
</html>


Looks like the xml file might reference a wrong url somewhere?
 
Wrong URL somewhere. You're getting a 404.
 
Wrong URL somewhere. You're getting a 404.
Actually after more testing, that's an error from before I edited the xml file with the proper wwXX url autotask needs for my instance. Now nothing is being logged in that log file when someone calls in or out.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,323
Messages
591,896
Members
165,473
Latest member
NathanMitchell