{"title":"Notification.Recall() Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/notification/notification-recall-method/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/notification/notification-recall-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/notification/notification-recall-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Recall a sent notification.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Syntax","slug":"syntax","at":88,"chars":52},{"level":2,"title":"Parameters","slug":"parameters","at":140,"chars":109},{"level":2,"title":"Return Value","slug":"return-value","at":249,"chars":413},{"level":2,"title":"Remarks","slug":"remarks","at":662,"chars":217},{"level":2,"title":"Example","slug":"example","at":879,"chars":628},{"level":2,"title":"Related information","slug":"related-information","at":1507,"chars":140}],"text":"> Version: _Available or changed with runtime version 1.0._\nRecall a sent notification.\n## Syntax\n```al\n[Ok := ]  Notification.Recall()\n```\n## Parameters\nNotification\nType: notification-data-type\nAn instance of the notification-data-type data type.\n## Return Value\n*[Optional] Ok*\nType: ../boolean/boolean-data-type\ntrue if it succeeds in sending a recall request to the client; otherwise false. The same notification can be recalled more than once, without failing. Also, a notification can be recalled successfully even if it hasn't been sent. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.\n## Remarks\nA typical reason that the RECALL method returns false is a failure in the communication with the client. Another reason could be that the code tries to recall a notification for which there is no instance.\n## Example\nThe following code creates a notification and sends it if NewBalance is greater than the credit limit. If it is lower than the credit limit, it recalls the notification.\n```al\nMyNotification.ID := '00000000-0000-0000-0000-000000000001';\nIF NewBalance > Rec. \"Credit Limit\" then begin\n  MyNotification.Message := 'The customer''s current balance exceeds their credit limit.';\n  MyNotification.Scope := NotificationScope::LocalScope;\n  MyNotification.AddAction('Fix it.', 50001, 'FixCustomerCreditLimit');\n  MyNotification.SetData('CustomerNo.', Rec.\"No.\");\n  MyNotification.Send;\nend else\n  MyNotification.Recall;\n```\n## Related information\nnotification-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}