DATE:
AUTHOR:
SAP LeanIX Product Team
Application Portfolio Management

Execute scripts in automations actions

DATE:
AUTHOR: SAP LeanIX Product Team

A completely new action for running scripts brings automations in your workspace to a new level of potential for reducing manual work. Create custom JavaScript to automatically maintain data on fact sheets with far-reaching options for checking dependencies and triggering workflows. The new "Run Script" action lets you cover various scenarios without the need to request and wait for us to implement them as a dedicated automation action.

Your script code is executed within the same safe execution environment hosted by SAP LeanIX as the calculations features introduced earlier this year.

Results returned from scripts can not only be used to read and write most fact sheet fields and tags on the same fact sheet, but also signal whether to stop or continue with remaining out-of-the-box actions (e.g., send emails, create to-dos, set quality state). With future releases, we plan to give you access to relations, fields on relations, subscriptions, and API calls within scripts.

One of many possible examples you can now realize is creating to-dos for stakeholders when the lifecycle period for the "Plan" and "Phase In" lifecycle stages is outside of a defined range (e.g., longer than 4 months).

You can update fact sheets using both calculations and scripts in automations. So, how do calculations differ from the scripting automation action? Calculations are meant for consistent, formula-based field updates comparable to a formula in a spreadsheet cell, while automations are for flexible, trigger-based logic execution, fuelling entire workflows of chain actions. The most significant difference is that the fields remain user-editable.

Powered by LaunchNotes