Flow Designer - How to create a run Script inside of flow
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2023 11:12 AM
Currently in our workflows we have the following type of script
current.configuration_item = getCI();
current.u_security_role = getCI();
current.u_application = current.cat_item.u_application;
function getCI()
{
var ci = new GlideRecord('u_cmdb_ci_appl_sec_roles');
ci.addQuery('name',current.variables.role);
ci.query();
if(ci.next())
{
return ci.sys_id;
}
} - This gets the "CI" based on a Role Variable and update the CI field on the RITM. We use the field for approvals etc. I for the life of me can't figure out how to replicate this process in Flow Designer. I have the AD groups hard coded on that CI record and right now we have 2k CI's with AD fields. So i want to be able to use those. Any ideas? TIA