Add MtlQueue with Data Directive BPM

I’m looking for a way to add Material Queue records based on table changes. The closest I can find is this post by Chris https://www.epiusers.help/t/materialqueue-via-code/38886. I created a Data Directive BPM on PartBinInfo table as the trigger to add a record in MtlQueue table with Execute Custom Code. Can this be done?

Yes, I have a DD on JobMtl when engineering adds material to a job to add a MtlQueue record, so their
added material is delivered quickly.

Hi Greg,

Will you be able to provide more insights on this? Maybe if you can please share code or your approach on this. I am currently working on this to trigger it by a checkbox at JobMtl table. If it is set to true, it should get sent to material queue.

Thanks in advance.!