How do I populate a field with an Existing DateTime field in Flow Designer

zag
Tera Expert

So I have this issue where I want my Resolved_at  datetime field equal my Closed_at date time field.  Closed_at is always populated. 

my script is 


var cldt = new GlideDateTime(closed_at);
return cldt;
 
but getting an error Error: "closed_at" is not defined.,Detail: "closed_at" is not defined.
 
Any thoughts
1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hello,

In the future, please give as much information as you can. Meaning, include the table that this flow is on, what you have tried already, what problems you're having, is there any errors, what troubleshooting have you done?

It seems we're having to sort of ask for these things, unfortunately, which causes a bit of delay for you to get your result and depending on the answers to some of those above questions, the approach varies.

Please mark reply as Helpful, if applicable. Thanks!


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

View solution in original post

9 REPLIES 9

Allen Andreas
Administrator
Administrator

Hello,

You should be able to update the record and set its values using the record's field pill from the right-hand side and drag it to the appropriate section on the flow within the activity where you're updating the record.

You would have access to all the record's fields on the right-hand side.

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


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

Hi Allen,

The field is not available, all the fields under Case Records are greyed out. 

 

fyi I am on the Case table not problem. Resolved_at  is on the Case table but Closed_at is on the Task Table. 

I am doing this flow in Global 

 

Check if the fields are of the same type.

Reference fields can only be set to reference fields.

Glidedatetime can only be set to Glidedatetime, and so on..

 

Also, make sure that you are trying to access the right step, you cannot assign values from the same step as you are working on.

Another example, showing the trigger record is valid, but step 1 values are grayed out.

OlaN
Giga Sage
Giga Sage

Hi,

Why do you script that at all?

You should be able to set the resolved_at  to the same value as closed_at using data pill picker.

See example below.

find_real_file.png