Invalid object in scoped script while triggering flow through UI action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 03:41 AM
A error message is being displayed while we are trying to trigger a flow from an UI action. Not able to identify what is the issue since all the scripts in the flow are in the same scope.
Any reference to fix this issue. Thank You.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 03:42 AM
@Raviteja Kunal1 Could you please share the UI Action script which is triggering the flow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 03:46 AM
Code snippet below
try {
var inputs = {};
inputs['current'] = current;
inputs['table_name'] = 'sn_shop_purchase_order';
var contextId = sn_fd.FlowAPI.executeFlow('sn_fcms_intg.update_purchase_order_in_erp', inputs);
} catch (ex) {
var message = ex.getMessage();
gs.error(message);
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 03:59 AM
@Raviteja Kunal1 Do you have the client checkbox checked on the UI Action?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 05:25 AM
No It is not checked.