<@UNJNU4RT8> Any idea on how to get the files from...
# suitescript
k
@Selcuk Dogru Any idea on how to get the files from dynamically created steps when the steps all have the same fieldid? Still need to get them in FINISH. Sorry to ask directly but this is the only thing i am struggling with before putting this suitelet assistant live.
s
did you try to get the step and then the file?
that's the only way I can think of
k
Yep. Tried to get the fieldid using getvalue but empty.
It’s getting quite frustrating now.
lol
s
I'm afraid your only chance is to get on the next step
k
I am wondering whether i could set a new fieldid for every step that is the same for the file field and then use context.request.files
maybe worth a try.
s
context.reques.files is empty on the FINISH action?
k
at the moment
s
is it hard to change logic to get the file on the next step?
see SA#84073
"Note that one is unable to pass this variable to the finish step of the Assistant directly to save the file there."
sorry for the bad news
k
Yeah i’ve done it in next no problem at all. But i do need the fileid in the FINISH section to save to the field on the custom record. How have you sorted that?
s
I'm keeping it in a JSON and pushing required fields and option. Then going through JSON object keys to identify what is what.
k
How are you passing that to the finish??
s
stupid way, putting in a hidden field and updating field value on each step