POST v1/sales-orders/{id}/custom-fields

Saves the custom fields for the specified id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Provide id to save custom fields for.

integer

Required

Body Parameters

Collection of CustomField
NameDescriptionTypeAdditional information
Id

Id of custom field.

integer

Required

Name

Name of the custom field.

string

Read Only

FieldType

Defines custom field data type.

IdNamePair

Read Only

SourceId

Data source of the custom field when the field type is Custom List or Existing List. Example: If the field type is Existing List, SourceId = 4 means the data source of the field is Employees.

integer

Read Only

Value

Represents the value of Custom Field

string

None.

ValueText

Represents the text value of the custom field. Example: If the field type is Existing List and the source is Employee (SourceId = 4) then ValueText will be the employee's name.

string

None.

IsRequired

Defines if the custom field is a required field.

boolean

Read Only

Request Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "name": "sample string 2",
    "fieldType": {
      "id": 1,
      "name": "sample string 2"
    },
    "sourceId": 3,
    "value": "sample string 4",
    "valueText": "sample string 5",
    "isRequired": true
  },
  {
    "id": 1,
    "name": "sample string 2",
    "fieldType": {
      "id": 1,
      "name": "sample string 2"
    },
    "sourceId": 3,
    "value": "sample string 4",
    "valueText": "sample string 5",
    "isRequired": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomField xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAPI.Models.Core">
  <CustomField>
    <FieldType xmlns:d3p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models">
      <d3p1:_x003C_Id_x003E_k__BackingField>1</d3p1:_x003C_Id_x003E_k__BackingField>
      <d3p1:_x003C_Name_x003E_k__BackingField>sample string 2</d3p1:_x003C_Name_x003E_k__BackingField>
    </FieldType>
    <Id>1</Id>
    <IsRequired>true</IsRequired>
    <Name>sample string 2</Name>
    <SourceId>3</SourceId>
    <Value>sample string 4</Value>
    <ValueText>sample string 5</ValueText>
  </CustomField>
  <CustomField>
    <FieldType xmlns:d3p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models">
      <d3p1:_x003C_Id_x003E_k__BackingField>1</d3p1:_x003C_Id_x003E_k__BackingField>
      <d3p1:_x003C_Name_x003E_k__BackingField>sample string 2</d3p1:_x003C_Name_x003E_k__BackingField>
    </FieldType>
    <Id>1</Id>
    <IsRequired>true</IsRequired>
    <Name>sample string 2</Name>
    <SourceId>3</SourceId>
    <Value>sample string 4</Value>
    <ValueText>sample string 5</ValueText>
  </CustomField>
</ArrayOfCustomField>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.