I'm attempting to adapt code that was written to use the SMTP Mail code unit to now use the EmailMessage and Email code units. Previously I'd used a field in the SMTP Mail Setup table to pull the "From" address for the new message. however, I'm receiving notice in VSCode that this will be removed in later versions. On both the SMTP Mail Code unit and the SMTP Mail Setup table. My issue is that when querying the Email Account table for the "From" address I get no rows returned. When I navigate to the table directly it's blank but if I open the page (8887) for email accounts I have two accounts listed. Any reason why I cannot access this directly from the table? I noticed the Email Accounts table is a system application table but I'm referencing other system app tables in other code with no issue. Any help is appreciated. Thank you!

Report
All responses (
Answers (