Contact Search via CRM doesn't work

Status
Not open for further replies.
Also, search the log for lines having the prefix "CRM:"
I've provided both logs. Management Console log one post above. It contains something with 'Crm', but not 'CRM:'.
 
Also, search the log for lines having the prefix "CRM:"

Here is Management Console log:

Code:
2024/05/03 12:09:23.687|13445|0050|Trac|[Microsoft.AspNetCore.Hosting.Diagnostics] Request starting HTTP/1.1 OPTIONS http://******:5001/MyPhone/MPWebService.asmx - -
2024/05/03 12:09:23.687|13445|0050|Verb|#57537 (traceid=0HN173GU32BDB:00000004) START: OPTIONS https://******:5001/MyPhone/MPWebService.asmx
2024/05/03 12:09:23.687|13445|0050|Trac|[Microsoft.AspNetCore.Cors.Infrastructure.CorsService] CORS policy execution successful.
2024/05/03 12:09:23.687|13445|0050|Verb|#57537 (traceid=0HN173GU32BDB:00000004) STOP: OPTIONS https://******:5001/MyPhone/MPWebService.asmx processed 00:00:00.0001561
2024/05/03 12:09:23.687|13445|0050|Trac|[Microsoft.AspNetCore.Hosting.Diagnostics] Request finished HTTP/1.1 OPTIONS http://******:5001/MyPhone/MPWebService.asmx - - - 204 - - 0.3722ms
2024/05/03 12:09:23.690|13445|0029|Trac|[Microsoft.AspNetCore.Hosting.Diagnostics] Request starting HTTP/1.1 OPTIONS http://******:5001/MyPhone/MPWebService.asmx - -
2024/05/03 12:09:23.690|13445|0029|Verb|#57538 (traceid=0HN173GU32BDC:00000002) START: OPTIONS https://******:5001/MyPhone/MPWebService.asmx
2024/05/03 12:09:23.690|13445|0029|Trac|[Microsoft.AspNetCore.Cors.Infrastructure.CorsService] CORS policy execution successful.
2024/05/03 12:09:23.690|13445|0029|Verb|#57538 (traceid=0HN173GU32BDC:00000002) STOP: OPTIONS https://******:5001/MyPhone/MPWebService.asmx processed 00:00:00.0000917
2024/05/03 12:09:23.690|13445|0029|Trac|[Microsoft.AspNetCore.Hosting.Diagnostics] Request finished HTTP/1.1 OPTIONS http://******:5001/MyPhone/MPWebService.asmx - - - 204 - - 0.2019ms
2024/05/03 12:09:23.708|13445|0057|Trac|[Microsoft.AspNetCore.Hosting.Diagnostics] Request starting HTTP/1.1 POST http://******:5001/MyPhone/MPWebService.asmx application/octet-stream 41
2024/05/03 12:09:23.708|13445|0057|Verb|#57539 (traceid=0HN173GU32BDC:00000003) START: POST https://******:5001/MyPhone/MPWebService.asmx
2024/05/03 12:09:23.708|13445|0057|Trac|[Microsoft.AspNetCore.Cors.Infrastructure.CorsService] CORS policy execution successful.
2024/05/03 12:09:23.708|13445|0057|Trac|[Microsoft.AspNetCore.Routing.EndpointMiddleware] Executing endpoint 'ManagementConsoleJS.MyPhone.MyPhoneController.MPWebService (3CXManagementConsole)'
2024/05/03 12:09:23.708|13445|0057|Trac|[Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] Route matched with {action = "MPWebService", controller = "MyPhone"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] MPWebService(System.Threading.CancellationToken) on controller ManagementConsoleJS.MyPhone.MyPhoneController (3CXManagementConsole).
2024/05/03 12:09:23.709|13445|0057|Verb|MYPHONE: HandleRequest from 215@4600aedb-f5bf-d43f-2fb5-3944146b4083(traceid=0HN173GU32BDC:00000003)
2024/05/03 12:09:23.709|13445|0057|Verb|MYPHONE: Incoming request: messageID=104. (traceid=0HN173GU32BDC:00000003). Current requests: 1.
2024/05/03 12:09:23.709|13445|0057|Verb|MYPHONE: RequestLookupContact: Input=verbose and make, ExtIncluded=False, MustHaveEmail=, SearchBy=63, SearchBridge=, SearchCompany=True, SearchPersonal=True, SortBy=LastName, Offset=0, Count=10
2024/05/03 12:09:23.712|13445|0050|Trac|[Microsoft.AspNetCore.Hosting.Diagnostics] Request starting HTTP/1.1 POST http://******:5001/MyPhone/MPWebService.asmx application/octet-stream 26
2024/05/03 12:09:23.712|13445|0050|Verb|#57540 (traceid=0HN173GU32BDB:00000005) START: POST https://******:5001/MyPhone/MPWebService.asmx
2024/05/03 12:09:23.712|13445|0050|Trac|[Microsoft.AspNetCore.Cors.Infrastructure.CorsService] CORS policy execution successful.
2024/05/03 12:09:23.712|13445|0050|Trac|[Microsoft.AspNetCore.Routing.EndpointMiddleware] Executing endpoint 'ManagementConsoleJS.MyPhone.MyPhoneController.MPWebService (3CXManagementConsole)'
2024/05/03 12:09:23.712|13445|0050|Trac|[Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] Route matched with {action = "MPWebService", controller = "MyPhone"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] MPWebService(System.Threading.CancellationToken) on controller ManagementConsoleJS.MyPhone.MyPhoneController (3CXManagementConsole).
2024/05/03 12:09:23.712|13445|0050|Verb|MYPHONE: HandleRequest from 215@4600aedb-f5bf-d43f-2fb5-3944146b4083(traceid=0HN173GU32BDB:00000005)
2024/05/03 12:09:23.712|13445|0050|Verb|MYPHONE: Incoming request: messageID=528. (traceid=0HN173GU32BDB:00000005). Current requests: 2.
2024/05/03 12:09:23.713|13445|0050|Verb|MYPHONE: _DAC([528 RequestSearchCrmContacts]) - 00:00:00.0002558 - from 215[4600aedb-f5bf-d43f-2fb5-3944146b4083]@******. Requests:2 -> 1 (traceid=0HN173GU32BDB:00000005)
2024/05/03 12:09:23.713|13445|0050|Trac|[Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] Executed action ManagementConsoleJS.MyPhone.MyPhoneController.MPWebService (3CXManagementConsole) in 0.5921ms
2024/05/03 12:09:23.714|13445|0050|Trac|[Microsoft.AspNetCore.Routing.EndpointMiddleware] Executed endpoint 'ManagementConsoleJS.MyPhone.MyPhoneController.MPWebService (3CXManagementConsole)'
2024/05/03 12:09:23.714|13445|0050|Verb|#57540 (traceid=0HN173GU32BDB:00000005) STOP: POST https://******:5001/MyPhone/MPWebService.asmx processed 00:00:00.0020189
2024/05/03 12:09:23.714|13445|0050|Trac|[Microsoft.AspNetCore.Hosting.Diagnostics] Request finished HTTP/1.1 POST http://******:5001/MyPhone/MPWebService.asmx application/octet-stream 26 - 200 6 application/octet-stream 2.1078ms
2024/05/03 12:09:23.734|13445|0057|Verb|MYPHONE: Total contacts matched requested criteria: 0 entries
2024/05/03 12:09:23.734|13445|0057|Verb|MYPHONE: _DAC([104 RequestLookupContact]) - 00:00:00.0254252 - from 215[4600aedb-f5bf-d43f-2fb5-3944146b4083]@******. Requests:1 -> 0 (traceid=0HN173GU32BDC:00000003)
2024/05/03 12:09:23.735|13445|0057|Trac|[Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] Executed action ManagementConsoleJS.MyPhone.MyPhoneController.MPWebService (3CXManagementConsole) in 26.3534ms
2024/05/03 12:09:23.735|13445|0057|Trac|[Microsoft.AspNetCore.Routing.EndpointMiddleware] Executed endpoint 'ManagementConsoleJS.MyPhone.MyPhoneController.MPWebService (3CXManagementConsole)'
2024/05/03 12:09:23.735|13445|0057|Verb|#57539 (traceid=0HN173GU32BDC:00000003) STOP: POST https://******:5001/MyPhone/MPWebService.asmx processed 00:00:00.0266580
2024/05/03 12:09:23.735|13445|0057|Trac|[Microsoft.AspNetCore.Hosting.Diagnostics] Request finished HTTP/1.1 POST http://******:5001/MyPhone/MPWebService.asmx application/octet-stream 41 - 200 8 application/octet-stream 26.7827ms


Here is my Scenario configuratio:


XML:
<Scenario Id="SearchContacts" Type="REST">

      <Request Url="*******/api/voip/contacts/search?value=[SearchText]" MessagePasses="0" RequestEncoding="UrlEncoded" RequestType="Get" ResponseType="Json" />

      <Rules>

        <Rule Type="Any">contact.Id</Rule>

      </Rules>

      <Variables>

        <Variable Name="ContactID" Path="contact.Id">

          <Filter />

        </Variable>

        <Variable Name="FirstName" Path="contact.FirstName">

          <Filter />

        </Variable>

        <Variable Name="LastName" Path="contact.LastName">

          <Filter />

        </Variable>

        <Variable Name="Email" Path="contact.Email">

          <Filter />

        </Variable>

        <Variable Name="PhoneBusiness" Path="contact.BusinessPhone">

          <Filter />

        </Variable>

        <Variable Name="PhoneBusiness2" Path="contact.BusinessPhone2">

          <Filter />

        </Variable>

        <Variable Name="PhoneMobile" Path="contact.MobilePhone">

          <Filter />

        </Variable>

      </Variables>

      <Outputs AllowEmpty="false">

        <Output Type="ContactID" Passes="0" Value="[ContactID]" />

        <Output Type="FirstName" Passes="0" Value="[FirstName]" />

        <Output Type="LastName" Passes="0" Value="[LastName]" />

        <Output Type="Email" Passes="0" Value="[Email]" />

        <Output Type="PhoneBusiness" Passes="0" Value="[PhoneBusiness]" />

        <Output Type="PhoneBusiness2" Passes="0" Value="[PhoneBusiness2]" />

        <Output Type="PhoneMobile" Passes="0" Value="[PhoneMobile]" />

        <Output Type="ContactUrl" Passes="0" Value="*******/api/voip/contacts/[ContactID]" />

        <Output Type="EntityId" Passes="0" Value="[ContactID]" />

        <Output Type="EntityType" Passes="0" Value="Contact" />

      </Outputs>

    </Scenario>
 
Hello @joepbx24,

Can you send me in a private message the full log file from the Management Console and template, so I can take a look? Maybe what we need to see is not in the short snippet you sent. Ensure that you have verbose logs enabled, and you run a contact search from the Web Client.
 
The issue is that you're running v18, and contact search was added in v20.
 
Ok. I won't gonna do it again.

Is this functionality available starting from V20?
Yes, I've been a 3CX employee until a month ago and working exactly on this.
 
Status
Not open for further replies.

Forum statistics

Threads
111,832
Messages
589,280
Members
164,662
Latest member
DejanMDS