FortiSOAR Knowledge Base
FortiSOAR: Security Orchestration and Response software provides innovative case management, automation, and orchestration. It pulls together all of an organization's tools, helps unify operations, and reduce alert fatigue, context switching, and the mean time to respond to incidents.
nmathur
Staff
Staff
Article Id 267959
Description This article describes how to fix the issue of existing custom expressions not being available in the Dynamic Values, after upgrading to FortiSOAR release 7.4.1 from any release prior to 7.4.1. Release 7.4.1 has introduced a user-friendly way of creating custom functions. It is possible to either recreate the existing functions using this new method or to use the steps detailed in this article to resolve the issue. For information about the new method of creating custom functions, see the Connector Guide in the FortiSOAR Product Documentation.
Scope FortiSOAR instances that have been upgraded to 7.4.1 from releases previous to 7.4.1.
Solution

To resolve this issue, carry out the following steps:

 

  1. Open the my_expressions.json file located under /opt/cyops-workflow/sealab/expression_builder/custom.
  2. Ensure that the 'params' JSON object in the my_expressions.json file for each expression has the 'visible' attribute set to true.

"params": [

{

"name": "input",
"title": "input",
"type": "text",
"value": "",
"visible":true,
"required": true

},
{


"visible":true,

}

]

 

  1. Download the populate_custom_functions.zip file attached to this article to the FortiSOAR instance.
  2. Unzip the file. Note that it contains the populate_custom_functions.py file.
  3. Copy the populate_custom_functions.py file to /opt/cyops-workflow/sealab/expression_builder/management/commands.
  4. Switch to the 'root' user: 

sudo su 

 

  1. Change the ownership of the populate_custom_functions.py file as follows:

chown nginx:nginx /opt/cyops-workflow/sealab/expression_builder/management/commands/populate_custom_functions.py

 

  1. Run the following command:


/opt/cyops-workflow/.env/bin/python3 /opt/cyops-workflow/sealab/manage.py populate_custom_functions

Contributors