Announcement

Collapse
No announcement yet.

Advanced Pack 2.6.0 released

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Advanced Pack 2.6.0 released

    Advanced Pack 2.6.0 is released.

    Workflows:
    • Send HTTP Request: Added support of PATCH, DELETE, GET methods.
    • Send HTTP Request: Added support of placeholders in a request URL.
    • Formula variables passing from action to action. The ability to use variables defined in a previous action of the same workflow rule.
    • Send HTTP Request: A response body is stored in _lastHttpResponseBody variable. Can be accessed in following actions. JSON attributes can be retrieved with a new function json\retrieve (added in v6.0.0). See in the documentation.
    • New ‘Execute Formula Script’ action.

    Reports:
    • Added ‘Auto-refresh’ option for the report dashlet.

    With new enhancements of Send HTTP Request action it will be possible to integrate EspoCRM with other systems through REST API w/o writing code.
    Last edited by yuri; 10-14-2020, 12:17 PM.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

  • #2
    Thanks very much Yuri,
    just one precision :
    if our sms provider say this :
    PHP Code:
    <?php


    curl 
    --location --request POST 'https://rest.spryngsms.com/v1/messages' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer xxxxxx' \ --header 'Content-Type: application/json' \ --data-raw '{ "body": "This is a test message.", "encoding": "auto", "originator": "DocsTest", "recipients": [ "31612345678" ], "route": "business", "scheduled_at": "2019-01-01T15:00:00+00:00" }'

    ?>
    have you a sample whith this with new extension ?

    Thanks in advance

    Comment


    • yuri
      yuri commented
      Editing a comment
      This was possible to do before. Nothing difficult. Copy the body part and replace needed values with placeholders. Copy headers.

      If you enable DEBUG mode for log, it will log what payload is sent.
      Last edited by yuri; 10-15-2020, 07:36 AM.

    • item
      item commented
      Editing a comment
      Thanks Yuri ..

      just try it and .. waouww
      work like a charm.. but one problem for us :
      mobile phoneNumber is in crm 0476121212 ..and ours provider need 32476121212 ..
      we have too VoIP extension.. do you think i can use something out-of-box to manipulate phoneNumber to provider need ?

      Best Regards

    • yuri
      yuri commented
      Editing a comment
      You can add Execute Formula Script action before Send HTTP Request. In that action you can manipulate with the phone number format. Set needed values into variables and then use those variables in the request body as placeholders.

  • #3
    Thanks Yuri,
    this looks great and really makes espo even more flexible, especially when it comes to connecting the other apps together.

    Given the 6.0.0 is not released yet, is there any way how to parse the json response when there is no json\response available (5.9.4)?

    Thank you.

    Comment


  • #4
    Thanks Yuri,
    follow you recommandation and work well

    just one think :
    i have a job .. whith this (certainly not correct but work )

    PHP Code:
    <?php 

    $manager 
    = new \Espo\Modules\Advanced\Core\Bpmn\BpmnManager($this->getContainer());
    $em $this->getEntityManager();
    $flowchart $em->getEntity('BpmnFlowchart''5f8963ad6651b02e5');
    $target $em->getEntity('Contact''5cec214e20cb3d7f3');
    $elementId $flowchart->get('eventStartAllIdList')[0];

    $manager->startProcess($target$flowchart$elementId);
    My goal is pass a "variable" from php job .. to the Flow and retreive int in my "http send request" ?
    it's possible ?

    Thanks

    Comment


    • yuri
      yuri commented
      Editing a comment
      You can create a process entity and pass variables into 'variables' attribute of the process entity. Then pass that process entity into startProcess method.

    • yuri
      yuri commented
      Editing a comment
      I would not use BPM for such a simple task. Workflow would be enough.

    • item
      item commented
      Editing a comment
      Thanks Yuri,
      yes of course.. very simply.. but i learn in same time
Working...
X