"Get Catalog Variables" is fetching Date as "Undefined" in flow designer

anirban300
Kilo Guru

Hello All,

 

I have created a variable "Deactivation Date" in a catalog item. I am fetching the variable through "Get Catalog Variables" in Flow designer. But, the output in flow context is shown as "undefined". But, the date field is filled with date in the RITM. Can someone tell me why am I getting "undefined"?

1. Catalog Item Variable

anirban300_1-1683734410929.png

 

2. Variable in the RITM

anirban300_2-1683734446149.png

 

3. "Get Catalog Variables" in flow designer

anirban300_3-1683734512509.png

 

4. "undefined" in flow context

anirban300_4-1683734580140.png

 

Regards

Anirban

 

 

1 ACCEPTED SOLUTION

mattystern
Kilo Sage

Hi @anirban300 

 

It looks good, based on your screenshots. How does this date get populated? Is it always read-only? That's the only thing I can think of off the top of my head.

 

I made a quick test in my testing catalog in my sandbox instance. Here are some screenshots:

1. Can enter date in:

mattystern_0-1683748268306.png

 

2. Added "Get catalog variables" and then feed this into the "Create Catalog Task"

mattystern_1-1683748328666.pngmattystern_2-1683748335566.pngmattystern_3-1683748350768.png

3. Test request did get date:

mattystern_4-1683748388590.png

 

View solution in original post

3 REPLIES 3

mattystern
Kilo Sage

Hi @anirban300 

 

It looks good, based on your screenshots. How does this date get populated? Is it always read-only? That's the only thing I can think of off the top of my head.

 

I made a quick test in my testing catalog in my sandbox instance. Here are some screenshots:

1. Can enter date in:

mattystern_0-1683748268306.png

 

2. Added "Get catalog variables" and then feed this into the "Create Catalog Task"

mattystern_1-1683748328666.pngmattystern_2-1683748335566.pngmattystern_3-1683748350768.png

3. Test request did get date:

mattystern_4-1683748388590.png

 

anirban300
Kilo Guru

Hi,

 

Thanks for your reply. I was doing something wrong so it was showing undefined. Now, it works. I have another doubt if you can help me.

 

I want to use this deactivation date in a "wait for a duration of time" logic. But, I am not able to select the deactivation date. Do you know why?

anirban300_0-1683900922644.png

 

mattystern
Kilo Sage

@anirban300 

I saw this in another thread - you should be able to wait until a relative duration after a variable field. Here's a screenshot from my test catalog. I dragged "test_date_time" from the right into this "wait for time" flow logic

mattystern_1-1683902493307.png

 

-Matt