@nstacktk There is an example below. I hope it will help you. BEGIN ifsapp.command_sys.mail(sender_ => 'IFSAPP', from_ => 'IFSAPP', to_list_ => 'hasanyucel34@gmail.com', subject_ => 'Test Mail', text_ => 'HTML <b>TEST</b> Mail! <br><br> Lorem Ipsum <br><br> Hasan Hüseyin YÜCEL', attach_ => '', mail_sender_ => 'NEW_MAIL_SENDER1' );END; That all works, thank you so much!
Hi @nstacktk You can use HTML in the body. Just set the Content-Type of your Mail Sender. And you can give permission to users. Don’t forget to add the “ifsapp.” prefix before APIs and Views. Hi @hhy38 ,Thanks for your reply. My only issue is that we have a “DEFAULT_MAIL_SENDER” set and this does not seem to get overridden when I run the script. Is there a way around that without removing the default?
It should work with ERROR_SYS.APPL_GENERAL(LogicalUnit, Error_Text). Thank you, I tried that with “Error_SYS.Appl_General('ReceiptInventoryLocation','No Expiry Date Entered');”The same error still occurs EDIT: Got it working with “ERROR_SYS.APPL_GENERAL('ReceiptInventoryLocation','EED1: No Expiry Date Entered');” after I reviewed this link - https://docs.ifs.com/techdocs/22r1/060_development/050_development_tools/002_developer_studio/030_reference/300_pl_sql_editor/600_annotations/120_error_sys_tags/
Hi @nstacktk, I think you’ll need to create the Custom Event against the LU ReceiptInventoryLocation, and Table RECEIPT_INVENTORY_LOCATION_TAB. But, when writing the validation, you’ll have to fetch the Expiration Date using the method, IFSAPP.Inventory_Part_In_Stock_API.Get_Expiration_Date(contract, part_no, configuration_id, location_no, lot_batch_no, serial_no, eng_chg_level, waiv_dev_rej_no, activity_seq) Because Expiration Date is not saved against above SQL Table as a separate Column. However, such validation will only work when you press the ‘OK’ button in Receipt dialog. Anyway, can you tell me what exact validation/check you are trying to perform using the Expiration Date, so that I can give you a more specific answer than this? Sametime, If you just want to make it (I.e. Expiration Date) Mandatory, you can simply add a ‘Minimum Durability Days’ value against your Inventory Part (Use a None Zero value of your choice and system will Calculate a Default Expiration Date based on
Already have an account? Login
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.