action-provider merge requestshttps://lab.civicrm.org/extensions/action-provider/-/merge_requests2019-06-05T07:17:24Zhttps://lab.civicrm.org/extensions/action-provider/-/merge_requests/1Contact Action Utils: order fields more logically, add state/province, use pr...2019-06-05T07:17:24ZnoahContact Action Utils: order fields more logically, add state/province, use predefined optionsStreet Address should come first; State/Province should be included; State/Province and Country should use their respective predefined option value lists.Street Address should come first; State/Province should be included; State/Province and Country should use their respective predefined option value lists.https://lab.civicrm.org/extensions/action-provider/-/merge_requests/2Add "Create Case" action2019-10-02T17:49:18ZnoahAdd "Create Case" actionhttps://lab.civicrm.org/extensions/action-provider/-/merge_requests/3adding "Modify Value with Regular Expression" action2019-11-20T16:39:21ZBjörn Endresadding "Modify Value with Regular Expression" actionAdds a new action similar to the ``SetDateValue``: take a value from the parameters, run a ``preg_replace`` and store the result in the output.Adds a new action similar to the ``SetDateValue``: take a value from the parameters, run a ``preg_replace`` and store the result in the output.https://lab.civicrm.org/extensions/action-provider/-/merge_requests/4Add trxn_id to CreateContribution action2019-11-20T16:39:33ZBjörn EndresAdd trxn_id to CreateContribution action(title says it all)(title says it all)https://lab.civicrm.org/extensions/action-provider/-/merge_requests/5Parameter Mapping Action2019-12-13T09:16:18ZBjörn EndresParameter Mapping ActionAdds an action to map parameters to other values using a json-encoded map provided by the user.Adds an action to map parameters to other values using a json-encoded map provided by the user.https://lab.civicrm.org/extensions/action-provider/-/merge_requests/6Parameter Format Action2019-12-13T09:17:36ZBjörn EndresParameter Format ActionAllows enhanced parameter formatting by applying up to 5 variables to a ``sprintf`` string.Allows enhanced parameter formatting by applying up to 5 variables to a ``sprintf`` string.https://lab.civicrm.org/extensions/action-provider/-/merge_requests/7Add 'details' parameter to CreateActivity action2020-01-24T09:32:44ZBjörn EndresAdd 'details' parameter to CreateActivity actionhttps://lab.civicrm.org/extensions/action-provider/-/merge_requests/8Add action to retrieve the currently active/associated contact2020-01-24T09:34:17ZBjörn EndresAdd action to retrieve the currently active/associated contacthttps://lab.civicrm.org/extensions/action-provider/-/merge_requests/9Add 'set preferred communication method' action2020-01-24T09:35:00ZBjörn EndresAdd 'set preferred communication method' actionhttps://lab.civicrm.org/extensions/action-provider/-/merge_requests/10Add MailingEvent actions2020-02-21T13:25:05ZjensschuppeAdd MailingEvent actionsThis MR adds actions for creating MailingEventSubscribe and MailingEventConfirm entities, which allow to use CiviCRM's double opt-in mechanism for group subscriptions e.g. as a [form-processor](https://lab.civicrm.org/extensions/form-pro...This MR adds actions for creating MailingEventSubscribe and MailingEventConfirm entities, which allow to use CiviCRM's double opt-in mechanism for group subscriptions e.g. as a [form-processor](https://lab.civicrm.org/extensions/form-processor) action.https://lab.civicrm.org/extensions/action-provider/-/merge_requests/11Add SEND_MESSAGES_TO_CONTACTS tag to MailingEvent actions2020-02-21T13:25:34ZjensschuppeAdd SEND_MESSAGES_TO_CONTACTS tag to MailingEvent actionsSorry, I forgot to add those tags in !10 - not sure they're necessary though.Sorry, I forgot to add those tags in !10 - not sure they're necessary though.https://lab.civicrm.org/extensions/action-provider/-/merge_requests/12Add an action for arithmetic calculations.2020-03-13T11:30:16ZjensschuppeAdd an action for arithmetic calculations.This adds an action for arithmetic operations with pre-defined binary arithmetic operators. Operands can be either defined statically in the action's configuration or parameters, the latter overwriting the former, if both are given.
Sup...This adds an action for arithmetic operations with pre-defined binary arithmetic operators. Operands can be either defined statically in the action's configuration or parameters, the latter overwriting the former, if both are given.
Supported operators:
- `+` (Sum)
- `-` (Difference)
- `*` (Product)
- `/` (Quotient)
- `%` (Remainder)
- `**` (Power of) - available since PHP 5.6
This action uses `eval()` for performing the calculation. For safety, operands are being validated to be numeric; operators are being validated to be in the list of pre-defined operators.https://lab.civicrm.org/extensions/action-provider/-/merge_requests/13Fix typo in CalculateValue action2020-03-13T14:45:51ZjensschuppeFix typo in CalculateValue actionSorry, a typo sneaked in ...Sorry, a typo sneaked in ...https://lab.civicrm.org/extensions/action-provider/-/merge_requests/14Add "ModifyDateValue" action2020-03-17T16:46:00ZjensschuppeAdd "ModifyDateValue" actionThis adds a generic action to modify a Date parameter (either of type `Date` or an arbitrary date string with a configurable format).
Configuration parameters:
- Format (defaults to `Ymd` as returned by Date input parameters
- Date inte...This adds a generic action to modify a Date parameter (either of type `Date` or an arbitrary date string with a configurable format).
Configuration parameters:
- Format (defaults to `Ymd` as returned by Date input parameters
- Date interval - this will be passed to `\DateTime::modify()`, so all kinds of absolute and relative formats are allowed, e.g. `midnight + 18 years` for calculating when someone turns 18 from their birth date
- Include time - whether to include the time part in the output date value
Input parameters:
- Date - the actual date to modifyhttps://lab.civicrm.org/extensions/action-provider/-/merge_requests/16Add the action GetMostRecentActivity2020-06-02T15:36:52ZkainukAdd the action GetMostRecentActivityThis action finds the most recent activity of a contact. Filters can be set on record_type, activity status, and activity type. The id of the activity is returned.
![getmostrecentactivity](/uploads/1e981d395c20ff4024e0aca0354608b3/getmos...This action finds the most recent activity of a contact. Filters can be set on record_type, activity status, and activity type. The id of the activity is returned.
![getmostrecentactivity](/uploads/1e981d395c20ff4024e0aca0354608b3/getmostrecentactivity.png)https://lab.civicrm.org/extensions/action-provider/-/merge_requests/17Create activity type takes now an activity type as parameter2020-06-02T15:38:32ZkainukCreate activity type takes now an activity type as parameter* Activity type in the configuration is now optional.
* An optional parameter activity type is added.
First the parameter is checked, if its empty there is a fallback on the configuration.
![activity_type](/uploads/c15e34f74cfa840cf68a0...* Activity type in the configuration is now optional.
* An optional parameter activity type is added.
First the parameter is checked, if its empty there is a fallback on the configuration.
![activity_type](/uploads/c15e34f74cfa840cf68a0bafa1650b4d/activity_type.png)https://lab.civicrm.org/extensions/action-provider/-/merge_requests/19Adds the capability to pass an array as single value2020-06-04T10:35:17ZkainukAdds the capability to pass an array as single valuehttps://lab.civicrm.org/extensions/action-provider/-/merge_requests/18Multiple values are allowed on execution not on definition2020-06-04T10:35:17ZkainukMultiple values are allowed on execution not on definitionA checkbox custom field can have multiple values. This does however not mean that an action provider can map one input to multiple outputs, as the following suggests
![Selection_017](/uploads/9766b19e9158c21b1910936df0f395b0/Selection_01...A checkbox custom field can have multiple values. This does however not mean that an action provider can map one input to multiple outputs, as the following suggests
![Selection_017](/uploads/9766b19e9158c21b1910936df0f395b0/Selection_017.png)
The problem is that this creates a mapping that does not work on execution. This PR removes the multiple properties from the screen, so that it becomes a normal mapping.
![multiple_after](/uploads/22e41c10a7bc7ca1f55c2a3ea458e2df/multiple_after.png)https://lab.civicrm.org/extensions/action-provider/-/merge_requests/20Enable the allowClear option2020-06-08T15:40:13ZkainukEnable the allowClear option## Before
After selecting an option from a dropdown list it not possible to clear it. See:
![allowClearBefore](/uploads/b299c47fd8e028df2aefd5f35077fe92/allowClearBefore.png)
## After
An (x) button is added that gives the option to cle...## Before
After selecting an option from a dropdown list it not possible to clear it. See:
![allowClearBefore](/uploads/b299c47fd8e028df2aefd5f35077fe92/allowClearBefore.png)
## After
An (x) button is added that gives the option to clear:
![afterAllowedClear](/uploads/48467bbf5ad447253780a1f26378ee2f/afterAllowedClear.png)
## Technical
To be able to clear an empty option `<option value=""></option>` must be defined. On the settings part this option is added, on the parameter part it was already there but ignored by forgotten `>`https://lab.civicrm.org/extensions/action-provider/-/merge_requests/21Add ExplodeList action2020-06-16T10:22:14ZjensschuppeAdd ExplodeList actionThis provides a new action to explode a string into an array with a configurable separator.
I'm not sure about the output data type being `String` when it is actually an array. It seems to work, however:
```json
{
"input": {
...This provides a new action to explode a string into an array with a configurable separator.
I'm not sure about the output data type being `String` when it is actually an array. It seems to work, however:
```json
{
"input": {
"input_1": "foo,bar,baz"
},
"action": [
{
"action": "Explode Comma separated list",
"output": {
"value": [
"foo",
"bar",
"baz"
]
}
}
]
}
```