does anyone know if you can trigger a WF on CSV im...
# suiteflow
n
does anyone know if you can trigger a WF on CSV import that sets an Employee field to the Employee that is doing the CSV import? I am currently setting the field "Employee" on the transaction (PO) on Entry and it is set to trigger via CSV import right now. Mixed results. Or if a script might be a better option in this case
n
Have you considered another trigger After Submit? Alternatively could you set the Employee as part of the CSV mapping?
n
I could, but I would prefer not... maybe I need to trigger all of this after submit.. hmm
Is there an easy way to source the ID of the employee performing the import ?
I can probably use the runtime module getCurrentUser and then just put user.id into the field with some trigger (maybe before submit would work in this case)
its just that my WF has a bunch of actions on beforeSubmit & afterSubmit already... maybe I want to put it on beforeLoad?
n
can you include it as one of the existing States?
n
its on the "entry" state right now
n
that's why I'm suggesting to include it in one of your existing States and triggers. Maybe that will remove the mixed results
j
Would this work? wf triggered: after submit > on create context: csv import. Action: Set field value > Created By
n
yeah that might work, I'll have to test it out and see if I can make it all sync up
I have the feeling I'll have to redo my whole WF