Updates the given logic.
Information: If changes in the code (in the particular Groovy code) of some elements are made, it is highly recommended to use the update endpoint with compileOnly (/formulamanager.update/{logicId}/compileOnly) for optimal performance.
{- "data": {
- "version": 6,
- "typedId": "2147484837.F",
- "uniqueName": "PriceList",
- "label": "Price List",
- "validAfter": "2021-07-12",
- "status": "ACTIVE",
- "simulationSet": null,
- "userGroupEdit": null,
- "userGroupViewDetails": null,
- "formulaNature": null,
- "lastUpdateByName": "admin",
- "elements": [
- {
- "version": 9,
- "typedId": "2147494038.FE",
- "elementName": "BasePrice",
- "elementLabel": "Base Price",
- "elementDescription": null,
- "elementGroups": [ ],
- "conditionElementName": null,
- "hideWarnings": false,
- "excludeFromExport": false,
- "protectedExpression": false,
- "elementTimeout": 0,
- "displayOptions": 21,
- "formatType": "MONEY_EUR",
- "elementSuffix": null,
- "allowOverride": false,
- "summarize": false,
- "hideOnNull": false,
- "userGroup": null,
- "cssProperties": null,
- "resultGroup": null,
- "combinationType": "FUNCTION",
- "criticalAlert": null,
- "redAlert": null,
- "yellowAlert": null,
- "labelTranslations": null,
- "createDate": "2021-11-04T14:56:11",
- "createdBy": 2147490696,
- "lastUpdateDate": "2021-11-04T18:16:42",
- "lastUpdateBy": 2147490696,
- "formulaExpression": "def avgCost = api.productExtension(\"pcost\")?.find()?.attribute1\nif(avgCost == null){\n api.addWarning(\"Could not find Average Cost in PX table ProductCost\")\n}\nreturn avgCost"
}, - {
- "version": 9,
- "typedId": "2147494043.FE",
- "elementName": "ListPrice",
- "elementLabel": "List Price",
- "elementDescription": null,
- "elementGroups": [ ],
- "conditionElementName": null,
- "hideWarnings": false,
- "excludeFromExport": false,
- "protectedExpression": false,
- "elementTimeout": 0,
- "displayOptions": 5,
- "formatType": null,
- "elementSuffix": null,
- "allowOverride": false,
- "summarize": false,
- "hideOnNull": false,
- "userGroup": null,
- "cssProperties": null,
- "resultGroup": null,
- "combinationType": "FUNCTION",
- "criticalAlert": null,
- "redAlert": null,
- "yellowAlert": null,
- "labelTranslations": null,
- "createDate": "2021-11-04T14:56:11",
- "createdBy": 2147490696,
- "lastUpdateDate": "2021-11-04T18:16:42",
- "lastUpdateBy": 2147490696,
- "formulaExpression": "def listPrice = out.BasePrice\n\n\nreturn listPrice"
}
], - "inputDescriptors": [ ],
- "formulaType": "PRICING",
- "createdByName": null,
- "createDate": "2021-11-04T14:56:11",
- "createdBy": 2147490696,
- "lastUpdateDate": "2021-11-04T18:16:42",
- "lastUpdateBy": 2147490696
}
}
{- "response": {
- "node": "node",
- "data": [
- {
- "formula": {
- "version": 7,
- "typedId": "2147484837.F",
- "uniqueName": "PriceList",
- "label": "Price List",
- "validAfter": "2021-07-12",
- "status": "ACTIVE",
- "simulationSet": null,
- "userGroupEdit": null,
- "userGroupViewDetails": null,
- "formulaNature": null,
- "lastUpdateByName": "admin",
- "formulaType": "PRICING",
- "createdByName": null,
- "createDate": "2021-11-04T14:56:11",
- "createdBy": 2147490696,
- "lastUpdateDate": "2021-12-08T15:45:57",
- "lastUpdateBy": 2147490696
}
}
], - "status": 0
}
}