...
In dashboards there is a similar functionality which can execute the REST call from a button in a portlet without the need to configure the bound partition.
Code Block | ||
---|---|---|
| ||
def payload = api.jsonEncode([ "data" : ..., ]) def ctrl = api.newController() ctrl.addBackendCall(", "add/X", payload, "Record was created sucessfully", "Could not create record") return ctrl |
...