maximo@0.5.13
Functions
fetch
fetch(params) ⇒ Operation
Make a GET request and POST it somewhere else
Param | Type | Description |
---|---|---|
params | object | data to make the fetch |
Example
fetch({
endpoint: 'maxrest/rest/os/mxinventory',
query: {
ITEMNUM: '01226',
_format: 'json',
},
postUrl: 'https://www.openfn.org/inbox/not-real',
});
update
update(params) ⇒ Operation
Make an update in Maximo 7.6 and beyond
Param | Type | Description |
---|---|---|
params | object | data to make the update |
Example: Update a workorder
update({
endpoint: "maxrest/rest/mbo/workorder/1234",
body: state => state.data,
});
update75
update75(params) ⇒ Operation
Make an upadte in Maximo 7.5
Param | Type | Description |
---|---|---|
params | object | data to make the update |
Example: Update an inventory balance
update75({
endpoint: "maxrest/rest/mbo/invbalances",
body: state => state.inventoryBalances,
});