Hi,
I am using LAPI of the Attribute Extensions module v4.2.0 to to look up valid values on Text: ADN Table Key Lookup attributes on existing documents.
Unfortunately, LAPI keeps returning an empty list whilst the web UI shows a collection of valid values (see screenshot).

I am using the following C# code:
LLValue catVersion = new LLValue().setAssocNotSet();LLValue existingNames = new LLValue().setList();LLValue existingValues = new LLValue().setList();LLValue allowableValues = new LLValue().setList(); var attrExt = new LAPI_APIATTREXTENSION(session);var doc = new LAPI_DOCUMENTS(session); var docId = new LLValue().setAssoc();docId.add("ID", 467797); // ID of document var catId = new LLValue().setAssoc();catId.add("ID", 117324); // ID of category assigned to documentcatId.add("Type", LAPI_ATTRIBUTES.CATEGORY_TYPE_LIBRARY); Console.WriteLine("Getting catVersion");doc.GetObjectAttributesEx(docId, catId, catVersion); // Get the category details for the documentConsole.WriteLine("catVersion: " + catVersion); // Outputs details of category attributes of documentConsole.WriteLine(); Console.WriteLine("Getting allowableValues");attrExt.AttrAllowableValues(catVersion, "License", existingNames, existingValues, 1, allowableValues);Console.WriteLine("allowableValues: " + allowableValues); // Outputs {}Console.WriteLine("getStatus: " + session.getStatus()); // Outputs 0Console.WriteLine("getStatusMessage: " + session.getStatusMessage()); // Outputs nothingConsole.WriteLine("getErrMsg: " + session.getErrMsg()); // Outputs nothingConsole.WriteLine("getApiError: " + session.getApiError()); // Outputs nothingConsole.WriteLine(); I have been able to use LAPI_APIDOCEXTENSION.AttrSetCascadingValues to set values of attributes successfully, but no matter what I supply AttrAllowableValues, it returns an empty list.
Any ideas?
Thanks