web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

VBA code for sending email for site Maintenance

(0) ShareShare
ReportReport
Posted on by 161

I was trying to add VBA code for sending email to notify our team each time when we create a new site. 

Anyone can assist me by giving the code .

Thanks SITE-MAINTENANCE-REPORT.png

*This post is locked for comments

I have the same question (1)
  • Verified answer
    Mick Egan Profile Picture
    3,561 on at

    I would consider creating a stored procedure that sends the email, and the vba passes the "Site ID" to the stored procedure when the User selects the "Send Email" button.

    You would use the SQL Mail Profile in your stored procedure.

    This way you can run all the normal connection vba code to call the sp.

    You could even do this in a trigger on the IV40700 table, thereby the user doesn't need to push the button, making it automatic.

    Mick

  • Suggested answer
    Rashid C Profile Picture
    161 on at

    Thanks for your reply .. I have used Trigger on IV40700. Solved my issue.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Dan Liebl Profile Picture

Dan Liebl 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans