Skip to main content
Answered

Programmatically Create a Contact Record Associated with a Customer Record

editSubscribe (0) ShareShare
ReportReport
Posted on by 522
Using BC 365 SaaS v23, and have Marketing Setup for new customers having a business relation to automatically create new contacts. So if I go into the BC 365 SaaS web UI and create a new customer record then I indeed see the new contact record created that's linked to that new customer record. All good there.
 
What I'm looking to do is implement this same mechanism through an AL codeunit. I already have working AL codeunit procedures that create a new contact record, as well as a new customer record. Of course there is no relation between them. But is there an AL codeunit procedure I can invoke in the base app that will automatically observe the same behavior mentioned in the web UI scenario above? 
Categories: