In Flow designer, how do I get the sys_id of a catalog task I am creating

Dustin Spain
Tera Contributor

In workflow when I am creating a catalog task with 'wait' checked, I can write this line of code in the advanced script field to record the sys_id of the new task to the scratchpad.

workflow.scratchpad.sctask_id = task.setNewGuid();

How do I get this sys_id in Flow designer?

8 REPLIES 8

Hey actually im creating a catalog item in flow desginer . And i want to get the sys id of the catalog item in flow desginer and i want to use that value somewhere else so can you tell me how to get the sys id from flow desginer . 

Hi,

You're able to access the sys_id of the newly created record by accessing it via a pill or script. Whichever you like.

The pill is the easiest and you can simply drag and drop it as needed to set another field value on another action, for example.

Or script, via fd_data and pressing . and then dot-walking to it, much like I described above in my previous reply.

Example is...in this flow I create a catalog task as part of the flow:

find_real_file.png

Now...in my "Data" on the right-hand side, with all the pills, you can look within the #3 step section and expand the related fields:

find_real_file.png

Then simply scroll down to the sys_id pill and use that:

find_real_file.png

If you needed to access it within a script, then you'd access the script window where ever applicable and then type:

fd_data.

Once you press the . you'll see the dot-walk window open up and you'd simply navigate to it much like the way you did via the pills, you'll see what I'm talking about when you do it.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi @Dustin Spain 

Please see my reply above.

If it helped guide you Correctly, please mark it as Correct.

Thank you and take care! 🙂


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi @Dustin Spain 

Please see my reply above.

If it helped guide you Correctly, please mark it as Correct.

Thank you and take care! 🙂


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!