Variables from Catalog item in Playbook Decision activity

Yathvika
Tera Contributor

Hello Community,

I'm looking for some help in playbooks.

We have an item in CSM where there is existing flow will create Ritm and sc_task. But now we are trying to recreate this with Playbook.

    Our Workflow will totally work on a variable based on user selection in the option then task will get created).

    My Actual query is In Playbook I'm trying to setup the decision activity so I can call this variable and based on the condition I can create a task. But for some reason I don't see variables as such in the option to select in branch condition.

    I might be missing something here. Your responses are highly valuable.

Thanks,

7 REPLIES 7

Daniel_san
Tera Guru

I think I’ve found a way to achieve this:

  1. Create a Subflow with:
    1. Input: reference.sc_req_item
    2. Outputs: as many outputs as the variables, you need to retrieve/use.
  2. In the created Subflow:
    1. Include a “Get Catalog Variables” action to get the needed RITM variables
    2. Map the variables to the defined outputs using a Flow Logic → "Assign Subflow Outputs" step.
  3. In the SC_TASK Playbook, add as activity the created subflow.

This way, we can use the RITM variable values within the SC_TASK playbook.

NOTE 1: It’s not ideal because the variables are handled as strings in the playbook, with all the implications that entails, but I haven’t found a better approach... and at least it works.

NOTE2: I don’t understand why the “Get Catalog Variables” activity doesn’t work in the Playbook (it doesn’t return any variables, and I don’t understand the reason). It would be the perfect solution.

Hi @Daniel_san , That's a good approach.

I achieved by doing almost same procedure.
1)Created a Get Variable Action and passed i/p's as RITM and using script step glide recorded to RITM table and passed the outputs with required variables.
2.Next using this o/p passed into the decision I playbook and added condition.


SukanyaD
Giga Contributor

Hi @Yathvika 

Can you please share the screenshot here, it would be helpful.