Update the catalog task short description based on the variable when submit.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 05:34 AM - edited 07-24-2023 05:47 AM
Created "name" variable with reference to the user table, according to the name selected other variables field are populated which are textbox in type.
- 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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 05:52 AM
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;