Hi!
I am playing around Mobile Freedom in 8.3.2 and tried adding a crt.RunBusinessProcessRequest for a button but did not work. Is there no way of doing that?
I found this in the article > 2nd paragraph > last sentence and base my test on it: Both main Creatio app and Creatio Mobile have the same request handlers.
Here's my sample code:
**Mobile run on Online Mode.
{ "operation": "insert", "name": "Button_5yi1e6m", "values": { "type": "crt.Button", "caption": "#ResourceString(Button_5yi1e6m_caption)#", "color": "warn", "disabled": false, "size": "large", "iconPosition": "only-text", "visible": true, "clicked": { "request": "crt.RunBusinessProcessRequest", "params": { "processName": "UsrProcessName", "processRunType": "ForTheSelectedPage", "saveAtProcessStart": true, "showNotification": true, "recordIdProcessParameterName": "ppRecordId" } }, "clickMode": "default" }, "parentName": "FlexContainer_mx2730x", "propertyName": "items", "index": 1 },
Like
Hello Solem Khn,
Currently, there is no supported way to directly call a business process from the Freedom UI mobile application. The framework is declarative, and only operations documented in the API can be executed.
The only indirect option is triggering a business process via system events (such as record creation, update, or deletion). For example, if a button action modifies or deletes a record, a business process subscribed to that event can be triggered. However, in this approach:
- You cannot pass parameters to the process
- You cannot read values from the process
- You cannot control its execution state
A direct "Run process" capability is not available at the moment.
The responsible R&D team is working to introduce this functionality, with a planned release in version 8.3.4.