Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Flow designer get current action fields

Maxime
Tera Contributor

Hello Team,

 

I was wondering how is it possible to get by code, the short description field of my current action in the description field ?

Maxime_0-1709140357869.png

Thank you for your advise

 

1 ACCEPTED SOLUTION

Hi @Maxime,

 

Right, I see what you are trying to do. I don't think you can use 'current' or any of the objects here as the record/reference hasn't been created yet.

One workaround I can think of is to use a Flow variable and use it across both of the short description and description fields.

 

Cheers

View solution in original post

8 REPLIES 8

Sumanth16
Kilo Patron

Hi @Maxime ,

 

Your syntax should be like below:

 

var sysId = fd_data.trigger.current.short_description;

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda

Maxime
Tera Contributor

Hello @Sumanth16 

 

Thank you for your help. It doesn't work, error: attempting to use undefined input = 'current' from Service Catalog item request

Hey @Maxime,

 

I assume you are using the 'Service Catalog' for the Flow trigger?

If so, you can use the following to retrieve the short description of the RITM

fd_data.trigger.request_item.short_description

Cheers 

Hey @James Chun 

 

Yes but it's not the requested item short description which is needed here. I need to set the description of my current task with short description of my current task dynamicaly.

 

I search the equivalent in workflow editor of : task.description = task.short_description+"...end of my description...";

 

Regards