Print

Rejestr_io_GetAndSaveKRSExtract

This function fetches the file of extract of the specific organization from the Polish public register 'KRS’ via 'rejestr.io’ API and saves the file as an attachment on the selected case.

Syntax:

Rejestr_io_GetAndSaveKRSExtract("Organization id","Attachment name",["Field name"],["Case id"])

Arguments:

  • organizationId – (String) the identificator of the organization (’NIP’ number or 'KRS’ id), more details on official 'rejestr.io’ API docs: https://rejestr.io/api.

Return Value:

Returns ID of newly created attachment or error description from API/AMODIT

Type: String

Examples:

Rejestr_io_GetAndSaveKRSExtract("123","extractOrg123");

This will download the extract of company with id '123′ from API and then, the file is saved as attachment with name 'extractOrg123.pdf’ into the list of documents on the current case.

Rejestr_io_GetAndSaveKRSExtract("123","extractOrg123","extractField");

The extract is fetched from API and save directly as attachment into the field called 'extractField’ on the current case (NOT into the list of documents).

Rejestr_io_GetAndSaveKRSExtract("123","extractOrg123","extractField",100);

The extract is fetched from API and saved as attachment into specified field on the selected case. The case is indicated by id '100′.

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