dataTableName = jsonParam['dataTableName']
currentDataTable = None
libraryManager = Application.GetService[LibraryManager]()
success, libraryItem = libraryManager.TryGetItem(jsonParam['informationLink'], LibraryItemType.InformationLink)
if success:
    dataSource = InformationLinkDataSource(libraryItem)

    # there is no InformationLinkDataSource constructor based on the library item and with parameters
    if jsonParam['informationLinkParameters'] is not None:
        ilDescriptor = dataSource.GetInformationLinkDescriptor(libraryItem.Id)
        dataSource = InformationLinkDataSource(ilDescriptor.Identifier, paramList)

    if not Document.Data.Tables.Contains(dataTableName):
        dataTableUniqueName = Document.Data.Tables.CreateUniqueName(dataTableName)
        currentDataTable = Document.Data.Tables.Add(dataTableUniqueName, dataSource)
    else:
        currentDatatable = Document.Data.Tables[dataTableName]
        currentDatatable.ReplaceData(dataSource)
else:
    notify.AddErrorNotification("Error when loading the data table from information link: the information link '" + jsonParam['informationLink'] + "' is not accessible.","","")
