GET {clientId}/CustomFields/Numeric?Id={Id}&locale={locale}
This method will retrieve all Custom Numeric Fields defined by the client, unless you specify a Numeric Id, which will return only that Custom Field. Optionally you can include a locale to filter the results by a specific locale.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
clientId |
This is your organization’s MyPreferences Account Id. |
string |
Required |
Id |
Optional custom Numeric field Id. If specified, only the custom Numeric field with this Id will be returned. |
integer |
Default value is 0 |
locale |
Optional locale. If specified, only custom numeric fields associated with the locale are returned. |
string |
Body Parameters
None.
Response Information
Response Codes
HTTP Status Code | Text | Description |
---|---|---|
200 | OK | The request was successfully processed. |
400 | Bad Request | The request was invalid and cannot be processed. This may be a result of a malformed request. You must update the request before trying again. |
401 | Unauthorized | Authentication credentials are missing or incorrect. You must verify your ClientId, UserId, and Authorization Scheme before trying again. |
403 | Forbidden | The authentication credentials were insufficient to grant access to the requested resource. In most cases, your user may not have the appropriate permissions to access the requested resource. Verify User Group permissions for your user before trying again. |
500 | Internal Server Error | The server encountered an unexpected condition that prevented it from fulfilling the request. Notify PossibleNOW Support if it’s a continuous occurrence. |
Resource Description
CustomFieldNumericListName | Description | Type | Additional information |
---|---|---|---|
NumericFields |
A collection of Meta data describing the requirements for collecting numeric data in a custom field. |
Collection of CustomFieldNumeric |
Response Formats
application/json, text/json, application/json-patch+json
Sample:
{ "NumericFields": [ { "Id": 1, "Edited": { "CreateDate": "sample string 1", "CreatedBy": "sample string 2", "ModifiedDate": "sample string 3", "ModifiedBy": "sample string 4" }, "MinValue": 2.1, "MaxValue": 3.1, "DecimalPlaces": 4, "DefaultValue": 1.1, "FieldMask": "sample string 5", "Name": "sample string 6", "LocalizedDisplayNames": [ { "Locale": "sample string 1", "DisplayName": "sample string 2" }, { "Locale": "sample string 1", "DisplayName": "sample string 2" } ], "Description": "sample string 7", "UpdateRuleId": 1, "DisplayOrder": 8, "IsReadOnly": true, "IsRequired": true, "IsActive": true }, { "Id": 1, "Edited": { "CreateDate": "sample string 1", "CreatedBy": "sample string 2", "ModifiedDate": "sample string 3", "ModifiedBy": "sample string 4" }, "MinValue": 2.1, "MaxValue": 3.1, "DecimalPlaces": 4, "DefaultValue": 1.1, "FieldMask": "sample string 5", "Name": "sample string 6", "LocalizedDisplayNames": [ { "Locale": "sample string 1", "DisplayName": "sample string 2" }, { "Locale": "sample string 1", "DisplayName": "sample string 2" } ], "Description": "sample string 7", "UpdateRuleId": 1, "DisplayOrder": 8, "IsReadOnly": true, "IsRequired": true, "IsActive": true } ] }
application/xml, text/xml
Sample:
<CustomFieldNumericList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProfileServices.REST.Models"> <NumericFields> <CustomFieldNumeric> <Description>sample string 7</Description> <DisplayOrder>8</DisplayOrder> <IsActive>true</IsActive> <IsReadOnly>true</IsReadOnly> <IsRequired>true</IsRequired> <LocalizedDisplayNames> <LocalizedDisplayName> <DisplayName>sample string 2</DisplayName> <Locale>sample string 1</Locale> </LocalizedDisplayName> <LocalizedDisplayName> <DisplayName>sample string 2</DisplayName> <Locale>sample string 1</Locale> </LocalizedDisplayName> </LocalizedDisplayNames> <Name>sample string 6</Name> <UpdateRuleId>Always</UpdateRuleId> <DecimalPlaces>4</DecimalPlaces> <DefaultValue>1.1</DefaultValue> <FieldMask>sample string 5</FieldMask> <MaxValue>3.1</MaxValue> <MinValue>2.1</MinValue> <Edited> <CreateDate>sample string 1</CreateDate> <CreatedBy>sample string 2</CreatedBy> <ModifiedBy>sample string 4</ModifiedBy> <ModifiedDate>sample string 3</ModifiedDate> </Edited> <Id>1</Id> </CustomFieldNumeric> <CustomFieldNumeric> <Description>sample string 7</Description> <DisplayOrder>8</DisplayOrder> <IsActive>true</IsActive> <IsReadOnly>true</IsReadOnly> <IsRequired>true</IsRequired> <LocalizedDisplayNames> <LocalizedDisplayName> <DisplayName>sample string 2</DisplayName> <Locale>sample string 1</Locale> </LocalizedDisplayName> <LocalizedDisplayName> <DisplayName>sample string 2</DisplayName> <Locale>sample string 1</Locale> </LocalizedDisplayName> </LocalizedDisplayNames> <Name>sample string 6</Name> <UpdateRuleId>Always</UpdateRuleId> <DecimalPlaces>4</DecimalPlaces> <DefaultValue>1.1</DefaultValue> <FieldMask>sample string 5</FieldMask> <MaxValue>3.1</MaxValue> <MinValue>2.1</MinValue> <Edited> <CreateDate>sample string 1</CreateDate> <CreatedBy>sample string 2</CreatedBy> <ModifiedBy>sample string 4</ModifiedBy> <ModifiedDate>sample string 3</ModifiedDate> </Edited> <Id>1</Id> </CustomFieldNumeric> </NumericFields> </CustomFieldNumericList>