Hello, I am an engineer trying my hand at workflow...
# suiteflow
s
Hello, I am an engineer trying my hand at workflows. I am trying to figure out which action is best for finding SOs that have certain items on them. Then I want to change a field based on the item in that SO. I have tried Go To Record and have Set Field Action, but those don't seem to access the right parameters. Thanks!
I am also wondering if it is better to create a saved search of all the SOs with certain items, and have the workflow work off of those results
d
When you say you want to "change a field based on the item in that SO," do you mean a field on the line of that particular item or a body (header) field?
s
A field in a sublist on the SO. Specifically in the promotions tab.
d
The first part sounds pretty simple: you have a saved search that serves as the condition for a SO workflow.
Then, any SO that goes into the WF you'd have a Set Field action to change that field. I might be oversimplifying it in my head.
s
OK, I get that. I think I was confused about how the setup of the Workflow effects the first state.
d
Sorry, just saw your initial reply to yourself, where you basically said what i said. šŸ˜‰
s
So I have my saved search, but it is not showing up in the list of saved search condition. Is there a special setting I need to turn on?
All good!
d
it's a transaction saved search with Type = Sales Order, yes? and the workflow is Transaction, SO as well?
s
ohhh no, the saved search is an item search. Because I am searching for all of the items.
I guess those two need to match?
d
yep, needs to be transaction search
s
Okay I need to think through this a bit more. Learning about all of these fun netsuite constraints 😃
One more question. In the set field value action, I want to set the value based on the item. So different items, different values. Would I write that in the condition section?
d
How many different variations are there?
s
4
But should be scalable
d
You should be able to do that, but it's a bit trickier. • change the search to incorporate the other items, basically: IF SO contains Item A, B, C, D, etc, then appear in results • First thing to do in your state is create a Sublist Action Group for the items. • Then within that Sublist Action Group, create multiple Set Field Value actions for each Item.
s
Ahh, sublists. So like putting each item through a switch statement in JS.
d
haha if you say so...i'm no engineer. i only dabble when i need to troubleshoot. šŸ˜‰
s
That is super helpful. Thanks!
d
YW, and good luck!