How to get Catalog Item's variable in the Workflow Activity condition?

prabhmeet
Giga Expert

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? 

1 ACCEPTED SOLUTION

dvp
Mega Sage
Mega Sage

Try this

current.variables.REQUEST_TYPE_VARIABLE_NAME == 'create'

View solution in original post

8 REPLIES 8

Hi , Can you please have a look at my other thread - Creating workflow for a catalog item shows the whole workflow, and I think its not triggering.

Bjoern3
Tera Guru

If that is not a typo, remove the || from the end of the if clause.

yes sorry it was a typo

AnthonyMull
Tera Contributor

Hi

I had similar issue. So in the condition search for the Variable, then this allows you to access the variables in the particular catalog item

 

AnthonyMull_0-1721938490667.png