The eDoreczenia_ReceiveMessage() function downloads the entire message from the e-Doręczenia system (PURDE/PUH service) and fulfills the current case with the message content (ie. a message text, attachments and evidences). The message is marked as READ in the e-Doręczenia system.


eDoreczenia_ReceiveMessage(mailboxId, messageId);

Function arguments

  • mailboxId – (String) an identifier of the mailbox from which the message will be received. The mailbox has to be registered in AMODIT with unique id.
  • messageId – (String) an identifier of the message to be received from e-Doręczenia.

Return value

The eDoreczenia_ReceiveMessage() function returns Object.
This complex object contains the following properties:

  • Success – returns True, if the operation succeeds;
  • CombinedErrorMessage – returns a description of the error in case of the operation failure;
  • AllEvidencesNum, ProcessedEvidencesNum, IgnoredEvidencesNum and UnprocessedEvidencesNum – all these four properties inform about processing of evidences connected with the received message.


Example 1

In this example the eDoreczenia_ReceiveMessage() function will receive the selected message from the chosen e-Delivery mailbox, which is registered in AMODIT as 'TestMailbox1′. The message to be received is selected by an ID taken from the value in field 'MessageId’ on the case. A result of the function execution returned as complex object allows to check an operation status (property: Success) and optionally obtains an error message (property: CombinedErrorMessage).

result = eDoreczenia_ReceiveMessage(_mailboxId, _messageId);
if (!result.Success)
  ShowMessage(1, result.CombinedErrorMessage);


Czy artykuł był pomocny?
0 na 5 gwiazdek
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
How Can We Improve This Article?