Personalized Community is here!
Quickly customize your community to find the content you seek.
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
2022 Release Wave 1 PlanDynamics 365 release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.
2022 release wave 1 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
Does anyone know how to create a new record of notification by programming?
What table should you create the record ?If i look on pages, the part is a system part of notications id.Thanks for help.
Refer Standard Codeunit 454 "Job Queue - Send Notification".
This Codeunit creates Notification when you schedule posting of your Documents (Sales, Purchase) in Background.
Hope this helps.
I suppose you need Notification Entry table (msdn.microsoft.com/.../dn951728(v=nav.90).aspx ) and Sent Notification Entry table
Theoretically, you are not limited to create new records in those tables in the same way as for the other tables, but can you tell what is the reason that you want to do this by programming?
I need on the table NC header to create a notification everytime the user generate a new non conformal product.
here is my piece of code that works like a charm into a codeunit
LenChar := STRLEN(_Note);_RecRef.GETTABLE(pNCHeader);
NewID := _RecRef.ADDLINK(GETURL(CLIENTTYPE::Current, COMPANYNAME, OBJECTTYPE::Page, PAGE::"NC Header", pNCHeader));
SystemUTF8Encoder := SystemUTF8Encoder.UTF8Encoding;SystemByteArray := SystemUTF8Encoder.GetBytes(_Note);
x := SystemByteArray.Length DIV 128;IF x > 1 THENy := SystemByteArray.Length - 128 * (x - 1)ELSEy := SystemByteArray.Length;c1 := y;OStream.WRITE(c1);IF x > 0 THEN BEGINc2 := x;OStream.WRITE(c2);END;FOR i := 0 TO SystemByteArray.Length - 1 DO BEGINc1 := SystemByteArray.GetValue(i);OStream.WRITE(c1);END;
RecordLink.Type := RecordLink.Type::Note;RecordLink.Notify := _Notify;RecordLink."To User ID" := USERID;
RecordLink.Created := CURRENTDATETIME;RecordLink.Company:=COMPANYNAME;
the parameters are
Var Name DataType Subtype LengthNo pNCHeader Record NC Header No _Descritption Text 250No _Note Text 127No _Notify Boolean No _USERID Code 20
the local variables are
Name DataType Subtype LengthLenChar Integer NewID Integer RecordLink Record Record Link OStream OutStream _RecRef RecordRef SystemUTF8Encoder DotNet System.Text.UTF8Encoding.'mscorlib, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c561934e089' SystemByteArray DotNet System.Array.'mscorlib, Version=126.96.36.199, Culture=neutral, PublicKeyToken=b77a5c561934e089' c1 Char c2 Char x Integer y Integer i Integer
The hard part for me was to add text into the Note field because it is a blob field so I need to use the dot net library of the 4.5 framework and to stream the text.
J'espéré que ce code t'aidera autrement donne moi to enveloppe electronique et moi j'irai t'envoier une fob donc to pourra essaier le code.
Thank you for your answers.
Pieror, I will try your method. I would come back to you.
Alexander, I want to make this to prevent the "assigned user" of a sales order and also trace an action on the order.
Business Applications communities