Update the catalog task short description based on the variable when submit.

FaizDev101
Tera Expert

Created "name" variable with reference to the user table, according to the name selected other variables field are populated which are textbox in type.

FaizDev101_0-1690201570843.png

  • The requirement is to create a functionality to check variables like, if first name, last name, email and user id field is modified/altered in form and submitted.
  • Create a catalog task in Requested item using flow designer based on the variable modified in the submit form, description is created.
  • For eg, if First name is changed from "Abraham" to "Abraham123". The catalog task description should be "First name has been modified" and it goes to all variables
1 REPLY 1

Anil Lande
Kilo Patron

Hi,

You can use script(Advanced section) in your 'Catalog task' activity of workflow .

In that you can use below logic.

var firstname = current.variables.first_name;  // replace the variable with your variable name
var lastname = current.variables.last_name;  // replace the variable with your variable name
var description = '';
if(current.variables.name.first_name != firstname){
description = description+'First Name has been modified.\n';
}
if(current.variables.name.last_name != lastname){
description = description+'Last Name has been modified.\n';
}

// repreat same for all other variables and then use below
task.description = description;

 

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande