Announcement

Collapse
No announcement yet.

Advanced Pack 2.6.0 released

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

  • item
    commented on 's reply
    Thanks Yuri,
    yes of course.. very simply.. but i learn in same time

  • yuri
    commented on 's reply
    I would not use BPM for such a simple task. Workflow would be enough.

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

  • item
    replied
    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

    Leave a comment:


  • xsign
    commented on 's reply
    Thank you Yuri,
    we have created our own json formula function, works well.

  • yuri
    commented on 's reply
    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.

  • yuri
    commented on 's reply
    You can add a custom formula function https://docs.espocrm.com/development...on-in-formula/.

    Here's json\retrieve from v6.0.0 https://github.com/espocrm/espocrm/b...trieveType.php. But it is not compatible with v5.9.

  • xsign
    replied
    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.

    Leave a comment:


  • item
    commented on 's reply
    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
    commented on 's reply
    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
    replied
    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

    Leave a comment:


  • yuri
    started a topic Advanced Pack 2.6.0 released

    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.
Working...
X