You can both collect & publish data with use of rest API calls.
IT IS STRONGLY RECOMENDED THAT THE DUTY IS TESTED IN A TEST ENV. BEFORE IMPLEMENTED IN PRODUCTION !
Here is an example on how you can update records in M3
Prerequisite
V 1.23 or higher must be installed
A connection to the grid must be defined.

Define setup in VBU
Define statistics definition

Define duty
Normally you will need at least 3 steps
- Get information about records you want to update. Be sure that you only have correct records i
- Write result to Butler Database
- Update M3 with Rest API
Set up of Rest API within a duty

- Module – Collect from REST API or Publish data to a rest API (Makes no difference)
- Frequency – Normally you will run this for each row in the list
- HTTP Server Connection – Drop down from list. See prerequisite