
Hello,
I am using the outlook add-in for Microsoft business central (on premises) to create a vendor purchase invoice. I am trying to utilize the "Suggested Line Items" feature which reads the email body and grabs the item details and creates lines from those details. Currently, It is only mapping 'Item Name', 'Item Description' and 'quantity' and it is ignoring rest of the details. For my scenario, getting the 'item unit price' is very crucial which is missing out in the Suggested line items.
What I want to know is if the suggested line item actually fetches the unit price or its just the three headers i.e item name, description and quantity?
and if it fetches the unit price, what type of email body template should I use?
I just can't seem to figure out how the text is being parsed here. The add-in documentation wasn't very helpful on this topic.
A little help would be appreciated.
Thank you.
Hello,
There is a fair amount of logic which parses and determines which items to promote as suggested lines in AL, part of based application:
OfficeLineGeneration.Codeunit.al
You or your partner might consider subscribing to the OnBeforeCreateLinesBasedOnQuantityReferences event and control better which text is promoted to which items.
Thank you.