- Joined
- Jul 19, 2022
- Messages
- 3
- Reaction score
- 1
In relation to the forum post: https://www.3cx.com/community/threads/autotask-new-rest-api-integration.74665/#post-342347
Shout out to Chris Ellsaesser for sharing the template and notes.
Regarding post 9:
The client lookup and new ticket is working perfectly. The issue is with Call Journalling which is enabled in CRM settings.
I'm getting an error in log file (with Verbose enabled) - 3cxSystemServer.log
Would anyone be able to comment on which field is trying to be parsed as an input string that is NOT the correct format based on the above error?
Thanks again to all who have worked on the integration with Autotask
Shout out to Chris Ellsaesser for sharing the template and notes.
Regarding post 9:
- This script uses user impersonation based on the extension listed in the Autotask Resource list. For best results, populate these as well as enable API impersonation rights in the security level permissions. The default API security level will not have enough permissions.
Confirmed and have added the relevant extension for each resource. - The ATActionType is set to '1' but for some reason is not visible in the CRM integration. This integer represents what kind of Autotask note action is created (e.g. 'Phone call', 'Email' etc.) and can affect whether or not calendar items or to dos get created. Make sure to set this to an integer that suits what you require.
I've confirmed that the ATActionType ID of 1 is showing a as phone call.
Code:{ "item": { "id": 1, "name": "Phone Call", "isActive": true, "isSystemActionType": true, "view": 3 } } - The integration should auto-detect your Autotask zone so it should only require you create an API user within Autotask for it to work.
API User created, with the adjusted default security level to allow for impersonation of resources. - This is still a work in progress and does not offer contact creation as of yet. Any feedback or recommendations would be appreciated

This is a fantastic resource for MSPs!
The client lookup and new ticket is working perfectly. The issue is with Call Journalling which is enabled in CRM settings.
I'm getting an error in log file (with Verbose enabled) - 3cxSystemServer.log
Code:
2022/07/20 17:45:05.267|2330|0064|Verb|CRM: Processing scenario 'ReportCallInbound'.
2022/07/20 17:45:05.267|2330|0064|Verb|CRM: Creating new HttpClient with no authentication
2022/07/20 17:45:05.269|2330|0064|Erro|CRM: 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.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/07/20 17:45:15.808|2330|0009|Verb|Enqueue Updated.REGISTRAR.1
Would anyone be able to comment on which field is trying to be parsed as an input string that is NOT the correct format based on the above error?
Thanks again to all who have worked on the integration with Autotask