URL: /DMSearch/GetProfileByObjectId

Method: POST

Descrizione

Questo metodo ritorna un profilo, dato il suo Object ID.

Formato richieste

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

Formato risposte

{
    'result':
    {
        "HasError": false,
        "Error": "",
        "Profiles":
        [
            {
                "ObjectId": "2b660eda-4a47-4649-959e-553475e37b7a",
                "LastUpdate": "/Date(1456141307690)/",
                "ObjectStateId": 24,
                "Version": 0,
                "UserId": 154,
                "DomainId": 11,
                "ClassTypeId": 155,
                "LanguageId": null,
                "ObjectState": "testState",
                "Domain": "testDomain",
                "ClassType": "testClassType",
                "InsertDt": "/Date(1456141307690)/",
                "Protocol": null,
                "ObjectState_ExternalId": "stateExtId",
                "Domain_ExternalId": "domainExtId",
                "ClassType_ExternalId": "classTypeExtId",
                "Fields":
                [
                    {
                        "Value": "test",
                        "MaxSize": null,
                        "Id": 887,
                        "Name": "testName",
                        "Description": null,
                        "ExternalId": "testExtId",
                        "GenericValue": "test",
                        "AllowNull": false,
                        "FieldType": 1
                    },
                    {...},
                    {...}
                ]
            }
        ]
    }
}

Note

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