Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 release wave 1 Discover the latest updates and new features to Dynamics 365 planned through September 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 Timeline
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
i want to send email using job queue please give any suggestion to do this.
Just use the SMTP Mail codeunit (ID = 400) on your scheduled job. This codeunit contains all the methods you need.
You can refer to this link and follow step by step:
If you find this answer helpful, Click Yes to Verify the answer to share with community members.
You can follow my blog post
thank you for your reply i have follow above link even though i did nt get please suggest me to solve this.
What did you not get ? you'll have to customize as per your requirement.
Thank you for your reply i want to send a report for customer outstanding using job queue i did all step even though i did not get.
this is my code unit , i have called this code unit in job queue even though i did not get any email from job queue, my SMTP test mail is working good there is not problem with my SMTP mail , i am having problem in job queue please do help to solve this issue.
Thank you in Advance
Is Job Queue working? Are you sure that you don't have problem with NAS configuration? Have you tested this?
This is the syntax
SMTPMail.CreateMessage("From Name", "From Address", "To Address","Subject Line", '', "HTMl formatted");
It looks like you have missed the To address in your code. Recheck and let me know if you face any issue
Thank you for your reply I don't have NAS configuration please tell is there any alternative for NAS but i need to send a mail automatically please give suggestion on this.
So, the situation is that you can send the email by running the codeunit and not via the job queue? Please set up the NAS section configuration on your service tier. Refer to this link:
Thank you very much for reply i followed you above link but getting my status error please tell me any solution to solve this
this is my code unit
this is my job queue
and this is my NAS service
Set your NAS with these settings:
Startup Argument: JOBQUEUE
Startup Codeunit: 450
Startup Method: leave it blank
Thank you very much for your valuable reply finally i got a solution.
Once again thank you
Glad to know that :) Please marked as solved. Thanks.
unfortunately i can not mark it as suggested answer sorry for that i don't have any option to do that ,
I also want to use Auto email function using Job queue in Business Central SaaS. I have tried the SMTP function that we are using in NAV but seem it doesn't support in BC SaaS. I'm getting and error while trying to run the Job queue thru the codeunit.
Any suggestions how to setup Auto email using Job queue in Business Central SaaS would be highlya appropriated
Thanks in advance.
With SMTP Email Setup you can apply the configuration directly from your Office 365 account.
For more informations:
Business Applications communities