- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 03:10 AM
Hi,
I have made a catalog item where there is a selectbox 'Request Type' with choices - create, change, access, remove.
Now I have to create the workflow for the catalog item.
For example - if choice selected is by user is 'Create' then approval by a Group is required. If approved, it is assigned to another group for creation.
So, when I drag activity Approval- By Group on the workflow editor, how do I write the condition that request_type is create?
I am a newbie so can anyone explain how to create the workflow for the case I have mentioned?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 03:16 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 03:16 AM
Try this
current.variables.REQUEST_TYPE_VARIABLE_NAME == 'create'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 03:32 AM
Hi , where do I get the script option ? it only shows the condition builder option in When to run section of the activity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2019 11:26 PM
Hi, I have used an if condition activity for this and written the following code -
answer = ifScript();
function ifScript() {
if (current.variables.request_type == 'create' || current.variables.request_type == 'remove' || ){
return 'yes';
}
return 'no';
}
But this is not working. Can you help with this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2019 12:25 AM
Try below code,
answer = (current.variables.request_type == 'create_database_value' || current.variables.request_type == 'remove_database_value') ? 'yes':'no';