Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Suggested answer

Not getting Alert notification

(2) ShareShare
ReportReport
Posted on by 1,940
Hi Experts,
 
I have created an alert rule on Purchase Order field Approval Status==Approved. But not getting nether notification nor email.
 
I would like to know what steps I am missing. Test email is sent and received.
 
Your prompt action needed.
 
 
 
 
 
Thanks,
Faiz
  • faiz7049 Profile Picture
    faiz7049 1,940 on at
    Not getting Alert notification
    Hi Experts,
     
    I tried but not find where is there issue. So I am trying to debug the class VersioningPurchaseOrder. There is method setDocumentState() as shown below. Debugging on hitting when Purchase order submitted (DocumentState=Draft and InReview). I want to get DocumentSate=Approval then I can extend method and write business logic.
      protected void setDocumentState(VersioningDocumentState _versioningState)
      {
          ttsbegin;
    
          if (this.isChangeRequestInReviewForDraftPurchaseOrder(purchTable, _versioningState))
          {
              this.updatePurchaseOrderHeaderDistribution();
          }
    
          purchTable.selectForUpdate(true);
          purchTable.DocumentState = _versioningState;
    
          if (purchTable)
          {
              // Update the drop shipment status
              if ( purchTable.MCRDropShipment
                  && (purchTable.DocumentState == VersioningDocumentState::Approved || purchTable.DocumentState == VersioningDocumentState::Confirmed)
                  && (changedRecord.TableId != tableNum(PurchLine)) ) // Line update should be handled in the PurchLineType update method. Lines are exluded here to avoid record update conflicts.
              {
                  MCRDropShipStatusUpdate::updateDropShipStatus(purchTable);
              }
    
              if (!this.parmSkipUpdatePurchTable())
              {
                  using (var purchTableSkipBusinessLogicContext = PurchTableSkipBusinessLogicContext::construct())
                  {
                      purchTableSkipBusinessLogicContext.parmSkipUpdate(true);
                      purchTable.update();
                  }
    
                  this.updatePurchaseOrderHeaderDistribution();
    
                  // If the buffer is shown in a form, we have to reread it to avoid version conflict
    
                  if (FormDataUtil::getFormDataSource(purchTable))
                  {
                      FormDataUtil::getFormDataSource(purchTable).reread();
                  }
              }
              else
              {
                  this.updatePurchaseOrderHeaderDistribution();
              }
          }
     
  • faiz7049 Profile Picture
    faiz7049 1,940 on at
    Not getting Alert notification
    Hi Amine & Danny,
     
    As you see my Event is "is set to:". Should I have to go System Administrator > Periodic Tasks > Alerts > Change base alerts or Due date alerts and run with batch group since this event is "is set to:".
     
     

    I also set "send externally".

    ​​​​​​​
     
    I am getting email only that batch job in completed.
     
  • Suggested answer
    Danny Bilodeau Profile Picture
    Danny Bilodeau 4,291 Super User 2024 Season 1 on at
    Not getting Alert notification
    Hi Faiz,
    Try with the "Send Externally" Boolean set at "Yes", to exclude that as a possibility:
     
     
    Also, as Mohamed suggested, these alerts are not in real-time.  You may need to have the Change Base alert batch job recurrence increased so that it runs more frequently. 
     
     
      
     
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 10,964 Super User 2024 Season 2 on at
    Not getting Alert notification
     
    hope the following helps
     
    Best regards,
    Mohamed Amine MAHMOUDI

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,791 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,488 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans