logo

NJP

ServiceNow Things to Know 128: Flow API

Import · May 23, 2024 · article

// Define input parameters for the action var inputs = {};

inputs['variable'] = grIncident;

// Specify the scope and internal name of the action to execute

var actionName = 'global.update_record_test';

// Start the action asynchronously using the Flow API sn_fd.FlowAPI.startActionQuick(actionName, inputs); } catch (ex) { // Handle any exceptions gracefully var message = ex.getMessage(); gs.error(message); }

})();

If my content helped you in anyway, please mark this content as BOOKMARK, SUBSCRIBE & HELPFUL

Best Regards,

Prashant Kumar (LearnIT)

YouTube Channel LearnIT: https://www.youtube.com/@learnitwithprashant

Blog LearnIT: https://medium.com/@LearnITbyPrashant

Prashant Kumar LinkedIn: https://www.linkedin.com/in/learnitbyprashant/

ServiceNow Community Prashant Kumar - https://www.servicenow.com/community/user/viewprofilepage/user-id/19635

View original source

https://www.servicenow.com/community/developer-blog/servicenow-things-to-know-128-flow-api/ba-p/2940503