Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter andreaspsson

    (@andreaspsson)

    No, that did not work either. Don’t get it…
    Anyhow, we decided to fetch the data directly using the ASDK()->retrieveMultiple function instead.

    But still if I figure out the problem I will update, so any one else bumping into this may get helped

    Thread Starter andreaspsson

    (@andreaspsson)

    Hi!

    I use shortcode blocks, but that does not help, all xml is removed when saved ??
    Is the intention that these twigs shall work in shortcode blocks? just some setting on my side that makes the xml disappear?

    Looked into that other plugin you mentioned, but no luck there since it, as far as I could understand, not support on-premises deployments of dynamics.

    //Andreas

    Thread Starter andreaspsson

    (@andreaspsson)

    Hi,

    You are on to something there! I was only previewing the page since I am only testing right now before building some real stuff. But when I actually save the page and realod the xml is just gone! And if I add the xml to the page directly in the sql database, saving and realoading the page, then it works!

    Any ideas on what may cause this?

    //Andreas

    Thread Starter andreaspsson

    (@andreaspsson)

    Ok,

    I tried to flush the cache, I guess you meant by pressing the button “Regenerate Metadata Cache”, that did not make any difference, still no data.

    Running the query in xrmtoolbox works great, then I get the response I expect for the query.

    Looked into the plugin logs (changed to debug verbosity in the plugin settings), there I can see that if I run my working example I get big payloads with soap request data in the log, example:

    
    [2022-02-10 09:15:58] wpcrm.DEBUG: Registered 11 shortcode handlers. {"shortcodes":["view","field","form","twig","inline","crm_login","login","registration","change_password","invitation","user"]} []
    [2022-02-10 09:15:58] wpcrm.INFO: Rendering shortcode [msdyncrm_twig]. [] []
    [2022-02-10 09:15:58] wpcrm.INFO: Rendering shortcode [msdyncrm_twig]. [] []
    [2022-02-10 09:16:01] crmtoolkit.DEBUG: Executed a SOAP request in 2.75882601738 seconds {"request":"<s:Envelope xmlns:s=\"https://www.w3.org/2003/05/soap-envelope\" xmlns:a=\
    ...
    ...
    ...
    

    But if I run the fetch xml example there are no soap requests in the log, just this:

    
    [2022-02-10 11:21:22] wpcrm.DEBUG: Initializing Dynamics 365 Integration. [] []
    [2022-02-10 11:21:22] wpcrm.DEBUG: Initializing PHP CRM Toolkit. [] []
    [2022-02-10 11:21:22] wpcrm.DEBUG: Initializing cache. [] []
    [2022-02-10 11:21:22] crmtoolkit.DEBUG: cURL version {"curlVersion":{"version_number":477696,"age":7,"features":29345693,"ssl_version_number":0,"version":"7.74.0","host":"x86_64-pc-linux-gnu","ssl_version":"OpenSSL/1.1.1k","libz_version":"1.2.11","protocols":["dict","file","ftp","ftps","gopher","http","https","imap","imaps","ldap","ldaps","mqtt","pop3","pop3s","rtmp","rtsp","scp","sftp","smb","smbs","smtp","smtps","telnet","tftp"],"ares":"","ares_num":0,"libidn":"2.3.0","iconv_ver_num":0,"libssh_version":"libssh2/1.9.0","brotli_ver_num":16777225,"brotli_version":"1.0.9"},"tls_constants":{"CURL_SSLVERSION_TLSv1_2":true}} []
    [2022-02-10 11:21:22] wpcrm.DEBUG: Finished initializing PHP CRM Toolkit. [] []
    [2022-02-10 11:21:22] wpcrm.DEBUG: Initializing PHP CRM Toolkit Metadata storage. [] []
    [2022-02-10 11:21:22] wpcrm.DEBUG: Initializing storage <metadata>. [] []
    [2022-02-10 11:21:22] wpcrm.DEBUG: Initializing storage <images>. [] []
    [2022-02-10 11:21:22] wpcrm.DEBUG: Initializing shortcodes. [] []
    [2022-02-10 11:21:22] wpcrm.DEBUG: Registered 11 shortcode handlers. {"shortcodes":["view","field","form","twig","inline","crm_login","login","registration","change_password","invitation","user"]} []
    [2022-02-10 11:21:23] wpcrm.INFO: Rendering shortcode [msdyncrm_twig]. [] []
    [2022-02-10 11:21:27] wpcrm.DEBUG: Initializing Dynamics 365 Integration. [] []
    [2022-02-10 11:21:27] wpcrm.DEBUG: Initializing PHP CRM Toolkit. [] []
    [2022-02-10 11:21:27] wpcrm.DEBUG: Initializing cache. [] []
    [2022-02-10 11:21:27] crmtoolkit.DEBUG: cURL version {"curlVersion":{"version_number":477696,"age":7,"features":29345693,"ssl_version_number":0,"version":"7.74.0","host":"x86_64-pc-linux-gnu","ssl_version":"OpenSSL/1.1.1k","libz_version":"1.2.11","protocols":["dict","file","ftp","ftps","gopher","http","https","imap","imaps","ldap","ldaps","mqtt","pop3","pop3s","rtmp","rtsp","scp","sftp","smb","smbs","smtp","smtps","telnet","tftp"],"ares":"","ares_num":0,"libidn":"2.3.0","iconv_ver_num":0,"libssh_version":"libssh2/1.9.0","brotli_ver_num":16777225,"brotli_version":"1.0.9"},"tls_constants":{"CURL_SSLVERSION_TLSv1_2":true}} []
    [2022-02-10 11:21:27] wpcrm.DEBUG: Finished initializing PHP CRM Toolkit. [] []
    [2022-02-10 11:21:27] wpcrm.DEBUG: Initializing PHP CRM Toolkit Metadata storage. [] []
    [2022-02-10 11:21:27] wpcrm.DEBUG: Initializing storage <metadata>. [] []
    [2022-02-10 11:21:27] wpcrm.DEBUG: Initializing storage <images>. [] []
    [2022-02-10 11:21:27] wpcrm.DEBUG: Initializing admin UI. [] []
    

    Is that expected?

    I run version 1.3.2 of the plugin.

    //Andreas

Viewing 4 replies - 1 through 4 (of 4 total)