Hi, Is there a way to default the header level Cla...
# suiteflow
n
Hi, Is there a way to default the header level Class value to the line level class field in a purchase order? I know this can be done via scripting, but I want to check if this can be done via workflow. I couldn’t find a line level class field in the set field value wf action.
m
Change this to Sublist and it will reset the action to work on Sublist fields after field edit
n
Thank you @MGBC for your quick response. Is the screenshot below correct?
m
No
It doesn’t need to be part of a Sublist action group
Just a standalone set field value action
Trigger = after field edit Triggering client field = item (line)
n
This is how I set it, but it is not working. I have another set field condition to auto populate header level class from the employee record’s class field. Not sure if it is not working because of that existing action.
I selected after field edit as a trigger
m
Set that triggering client field to item (line)
n
I did that too
You can see that in the first screenshot
oh, Item (line), not class
okay , let me try that
m
It will populate the class after you select an item on the line
n
If I set it to that, it will auto populate only when I select the line class, correct
m
No it will auto populate the class when you select an item
n
I want to auto populate after the class (main) is populated
okay
let me quickly try that
m
If you populate the class (line) when the class (main) is set it will only get the first line item. If you add more than 1 line the sourcing won’t work
That is why I recommend you use item as the triggering client field
n
I see two Item (line) fields in the triggering fields section
m
One must be a custom field. Has there been a custom item field added to this transaction?
n
yeah, checking that
I tried with both fields, but it is not working for me. Let me share the screenshot
Is there anything missing in the above action?
m
Try setting the trigger to after field sourcing
n
okay
m
And select both Item (line) fields as the triggering field
n
Awesome. It is working as expected. Thank you so much🙏
m
👍