Assign a Default Buyer when New Part it's created

Team,

I want when a new part will be create I want a assign by plant BuyerID.

For this I create a BPM on Part.Update with this:

Condition:
The ttPartPlant.Plant field of the changed row is equal to the “CO” expresion

this condition works fine.

But the problem it’s here on the Set Field don’t work:

Set the ttPartPlant.BuyerID field of the changed row to the “ypena” expression

Any help on that

Have you tried using a data directive on PartPlant.BuyerID?

1 Like

Try an In-Transaction Data Directive on the PartPlant table, and use “set the BuyerID field of the added row”.

To get a method to work you’d have to go post because the part plant record is getting created separately and maybe even after. Either way you’d have to write a custom action or get elaborate with calling Bo elements (just don’t, ever). I’d go the route the others have suggested with a data directive.