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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Email PO when uploading using eConnect

(0) ShareShare
ReportReport
Posted on by 226

Hi,

I'm working on PO upload using eConnect. The POs do not require any approval. I was wondering if there is a way to make GP email the PO immediately as soon as it is uploaded via eConnect. If possible, please provide code (preferrably in VB.net but C# is also fine).

Thanks!

Categories:
I have the same question (0)
  • Suggested answer
    Derek Albaugh Profile Picture
    Microsoft Employee on at

    I've never heard of emailing from eConnect, but I suppose it is possible to post some type of code in the POST procedure following the eConnect procedures being called and/or some type of customization calling script.

    We'll see what the Community can come up with.......

    Thanks

  • Richard Wheeler Profile Picture
    75,852 Moderator on at

    I would create an Operator under SQL Server Agent in SQL and use Database Mail to set up an email account and create a SQL script to look for new POs. I set up email alerts to for the activity, sy00800,sy00801 and dex locks and sessions tables. eMails get sent to myself and the clients GP admins. This way they can be proactive is seeking out potential problems.

    Here is a portion of those scripts:

    IF EXISTS (SELECT TOP 1 [USERID],[CMPNYNAM],[LOGINDAT] FROM [dbo].[ACTIVITY])

    SET @CURRENTACTIVITY = 1

    IF @CURRENTACTIVITY = 1

    BEGIN

    -- Generate user activity email

    EXEC msdb.dbo.sp_send_dbmail

    @profile_name = 'COMPANY eMail',

    @recipients = 'donaldduck@cartoon.com;mickeymouse@cartoon.com',

    @query = 'USE DYNAMICS;

    GO

    SELECT [USERID],[CMPNYNAM],[LOGINDAT] FROM [dbo].[ACTIVITY] ORDER BY USERID

    GO',

    @subject = '**** ERROR - Current Activity ****',

    @body='Current users logged into GP',

    @attach_query_result_as_file = 1;

    END

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 616

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 460 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 331 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans