Scheduled Shipment Detection
Every 3 minutes, the flow polls Dynamics 365 Business Central for newly created sales shipments, ensuring every outbound delivery is captured promptly and nothing is missed.
About this template
Automated EDI 856 Advance Ship Notice Generation & SFTP Delivery
Keep exploring
Every repetitive process between your ERP, CRM, and business apps has a template. Find yours, customize it, and go live today.
Customize the flow
Every module in this template is fully customisable. Add triggers, swap actions, or extend the logic using appse ai's no-code visual builder.
No triggers for Microsoftteams.
Inside the flow
appse ai runs this workflow end to end for Microsoftteams — automatically, every single day. Here is exactly what happens when this template runs.
Every 3 minutes, the flow polls Dynamics 365 Business Central for newly created sales shipments, ensuring every outbound delivery is captured promptly and nothing is missed.
For each new shipment, the complete posted shipment record - including the package tracking number - is fetched from Business Central to ensure all dispatch details are available for ASN generation.
The flow checks for a valid tracking number - a critical gate for EDI 856 generation. The flow branches based on whether tracking is present or missing.
If a tracking number exists, OpenAI GPT-4.1 generates a fully compliant X12 EDI 856 Advance Ship Notice - with all required envelope segments (ISA, GS, ST, SE, GE, IEA), BAK, and REF segments - returned in base64-encoded format.
If no tracking number is found, an alert is immediately sent to a Microsoft Teams channel - naming the delivery number and customer - and explicitly flagging the chargeback risk to enable fast remediation.
The AI-generated EDI document is parsed, decoded from base64, validated for structure, and finalized as a clean X12 856 document with a 997 acknowledgment envelope.
The completed EDI 856 file is uploaded to a designated SFTP server path organized by shipment number - delivering the Advance Ship Notice to the trading partner's EDI network.
Discover how appse ai has helped businesses automate processes and achieve growth through our users' success stories.