Identification Number

 3 Replies
 0 Subscribed to this topic
 45 Subscribed to this forum
Sort:
Author
Messages
Srini Rao
Veteran Member
Posts: 149
Veteran Member

    Hello - When we update IdentificationNumber in EmployeeIdentificationNumber business class, is their a way to send notification group of people?

    Chad Dirst
    Advanced Member
    Posts: 42
    Advanced Member
      Srini, you can create an action extension based on the Update action to either 1.) directly send email from the lpl or 2.) call IPA that sends the email.
      Srini Rao
      Veteran Member
      Posts: 149
      Veteran Member

        Chad - Thanks for quick response. How do I create a email notification in lpl. Here is the lpl code for

        IdentificationScreen lpl

         

        EmployeeIdentificationNumber is a Form
            is primary
            title is "IdentificationNumber"
            Layout
                two column
                    Employee
                        label is "EmploymentID"
                    Employee.Name.PreferredFirstAndLastName
                        no label
                single column
                    effective date
                two column
                    Country
                    IDNumberName
                        no label
                        display only
                single column
                    IdentificationNumber
                        label is "IdentificationNumber"
                    IdentificationNumberDisplay
                        label is "IdentificationNumberDisplay"
                        display only
                visible when (DisplayHijriGregorianCalendar)
                    single column
                        ShowHijriAndGregorianCalendar
                            label is "DisplayBothHijriAndGregorianCalendar"
                visible when (ShowHijriAndGregorianCalendar)
                    two column
                        text of "Hijri"
                    two column
                        IssueDate
                            label is "IssueDate"
                            display as hijri date
                        ExpirationDate
                            label is "ExpirationDate"
                            display as hijri date
                    two column
                        text of "Gregorian"
                    two column
                        IssueDate
                            label is "IssueDate"
                            display as gregorian date
                        ExpirationDate
                            label is "ExpirationDate"
                            display as gregorian date
                visible when (not ShowHijriAndGregorianCalendar)
                    two column
                        IssueDate
                        ExpirationDate
                paragraph
                    NotificationDays
                        label is "SendNotification"
                    text of "DaysPriorToExpirationOfIdentificationNumber"
                single column
                    Pending
                    IDNumberDocument.Title
                        label is "Document"
                    IDNumberDocument.File
                        no label
         

         

        Thanks Again

        Chad Dirst
        Advanced Member
        Posts: 42
        Advanced Member

          Srini, The code you are showing is the form and is not the correct place to make this type of configuration.  As I referenced in my first response the change needs to be made to the Update action.  You can configure the action or create an action extension that defines an exit rule to send the email.  Sample code would be:

           

          Exit Rules

              send email

                  to This can be configuration variable, or email that is found in context (i.e. Employee.EmployeeWorkEmailAddress), or hard code

                  cc optional

                  bcc optional

                  from SeeStatementRelatedTo

                  Contents 

                      This Must be valid Message... following lpl standards