I have a custom field on the customer record that ...
# suiteflow
j
I have a custom field on the customer record that sources the sales rep. I do this so that the field can be visible on the vendor record. We have a lot of customer/vendor relationship records. There is a workflow that sets this field on after submit. The problem is when users save the vendor record, the value goes away because there is no "sales rep" value on vendors. I have tried filtering out vendors from the workflow step without any luck. Any insight?
j
“I do this so that the field can be visible on the vendor record” I’m not sure what you mean by this statement. Where is it “visible” on the vendor record?
j
The field is also turned on for vendor records. We make a lot of our customers vendors so that we can pay them. This field will allow us to see who is the sales rep associated with that customer even when the user is looking at their vendor record.
j
then this statement doesn’t make sense
the value goes away because there is no "sales rep" value on vendor
you just said the field WAS on vendor
what record type is the workflow running on?
j
It shows up when the customer record is saved but then if you edit and save the vendor record, it overrides to blank. Sorry, a bit confusing from me.
The workflow is on customer records only.
j
so why is it running on vendor then?
I don’t get what method is unsetting the value….
j
Great question but it is. Probably because they're linked accounts.
j
Sounds like you need to tweak the WF somehow to check if it’s a vendor
j
Yeah, I tried that. All my customer workflows run on these particular vendors since they're also technically customers.
j
hmmmm
j
hmmmm is right. i've been staring at this problem for too long.
it seems so simple in theory.
j
I wonder if it can be achieved by UserEvent instead? Maybe that does a better job of only running on the record type you want.
j
I'll try that and see what happens. shouldn't be too complicated of a script. just a few lines.
j
the question really boils down to “how do I have something only run on Customer when the record is both Customer and Vendor”
j
Exactly. And SuiteAnswers has not been too helpful. I'll let you know how the script goes. Fingers crossed.
j
SA is never helpful
also, hi, btw
j
😄 Hi!
Initial tests are proving successful! Thanks Jen!