URL: /DMSearch/ExecuteDynAss

Method: POST

Descrizione

Questo metodo risolve le Dynamic Association di un profilo, ritornando i profili collegati.

Formato richieste

Legenda:
Parametro obbligatorio
Parametro opzionale
{
    'sessionID': SID,
    'ObjectId': 'object id'
    'DynAss': 'dynamic association'
}

Formato risposte

{
    'result':
    {
        "HasError": false,
        "Error": "",
        "Fields":
        [
                {
                      "Id": 57,
                      "Name": "field name",
                      "Label": "field label",
                      "ExternalId": "field external id",
                      "FieldType": 1,
                      "DbFieldName": "C57",
                      "LanguageId": -1
                },
                {...},
                {...}
        ],
        "Profiles":
        [
            {
                    /* system properties */
                    "DomainId": 5,
                    "ClassTypeId": 37,
                    "ObjectStateId": 14,
                    "ObjectId": "1469cf94-02d0-490b-972b-097d2a974f66",
                    "UserId": -1,
                    "Version": 0,
                    "LastUpdate": "/Date(1456807493750)/",
                    "Domain": "domainName",
                    "ClassType": "classTypeString",
                    "ObjectState": "objectStateString",
                    "Domain_ExternalId": "domainExternalId",
                    "ClassType_ExternalId": "classExternalId",
                    "ObjectState_ExternalId": "stateExternalId",
                    "InsertDt": "/Date(1455704333533)/",
                    "LanguageId": 2,

                    /* additional fields as name-value pairs */
                    "C57": "value of C57",
                    "C58": "value of C58",
                    "C59": "value of C59",
                    ...
            },
            {...},
            {...}
        ],
        "Languages":
        [
            {
                "Id": 3,
                "Name": "Italiano",
                "Code": "IT"
            },
            {...},
            {...}
        ]
    }
}

Note

  • La proprietà Languages descrive la lista dei linguaggi gestiti da DM;
  • La proprietà Fields descrive i campi aggiuntivi della classe documentale. In questa proprietà si possono trovare id, nome, tipo, lingua e DbFieldName del campo;
    • Il DbFieldName è la stringa con cui verrà identificato il campo nella descrizione dei profili;
    • Il LanguageId serve per i campi di tipo MultiLanguage. Per questi campi, il LanguageId indica la lingua del campo. Il languageId si riferisce a uno dei LanguageIds descritti nella proprietà Languages della risposta dell'API;
  • La proprietà Profiles descrive i profili veri e propri. Qui si possono trovare tutte le proprietà di sistema oltre ai campi aggiuntivi, descritti in fields ed identificati dal loro DbFieldName
  • FieldType identifica il tipo del campo e può essere uno dei seguenti valori:
    • 0: Int
    • 1: String
    • 2: Date
    • 3: DateTime
    • 4: Decimal
    • 5: ByteArray
    • 6: MultiLanguage
    • 7: Boolean
    • 8: Guid