Sep 09, 2021 02:13 PM
Hello!
I’m trying to merge the data from 2 separate fields whenever they are updated into another field to keep a history of those changes.
The first field is date and time, the second field is a single select of location. Ideally, this information would just automatically copy to the next line down of a long text field whenever it’s changed.
I have no idea the best way to go about this. Thanks for your help in advance!
Solved! Go to Solution.
Sep 11, 2021 09:57 PM
Well this is fantastic and working great in the test base! Thank you so much. However, when I try to set it up in the actual Base I’ll be using it in, I keep getting an error on the Actions part of the automation. The error is ‘“Fields” could not be converted to a string.’
Any ideas?
Sep 13, 2021 03:56 AM
Can you post please a screenshot of this error?
btw, I have a similar question - I need to get a list of dates from two colmns, like so:
(I want to update the “note” column only the amount of days from “start” to “end”)
is it possible?
Thanks!
Sep 13, 2021 09:10 AM
Sep 13, 2021 09:12 AM
Forgot to reply directly to you earlier. Let me know if you have any thoughts on the error I’m receiving. Thanks so much!
Sep 13, 2021 11:33 AM
Hi,
Yes.
you can insert script step inside (after trigger) and use output for step 3
i don’t learn yet how to work with date in JS, so i found some function, reconstructed and tested, and it worked, but for “ISO” format, YYYY-MM-DD , so you should change your field, or adjust the code.
regarding variables for input config(), i tried just “insert” field, but it wprked with zero arraay lenght, then did some fixes yet and it worked OK
sometimes “continue” - “uppercase(or capitalize)” works where “insert” - not.
but i’m not sure, maybe insert will work for you
p.s. for (let dt=date1; dt<=date2; dt.setDate(dt.getDate()+1))
Sep 13, 2021 01:10 PM
Maybe the formatting of the calculation field is set to date, and that why it can’t get a string?
Sep 13, 2021 01:10 PM
Thanks a lot!
-I’ll try it…
Sep 13, 2021 01:12 PM
Here’s what the formatting says?
Sep 13, 2021 01:13 PM
ok not a date formatting… what is your formula then?
Sep 13, 2021 01:15 PM