I know it’s a long shot but maybe it is possible.
Currently my app generates an email with a PDF attachment. This PDF is an order with order items and details which i’ll be sending to a factory to order those items/products. Some items are in stock in my warehouse. Is it possible when the PDF is generated to make an API call to my stock database and based on IF condition to exclude the items in my stock?
EX: <<Start: [ITEMS]>> <<If: [CONDITION BASED ON API CALL RESULT VALUE] >> <<[ITEM]>> <><>