This message was deleted.
# suitetalkapi
s
This message was deleted.
b
does the request follow all the guidelines in Fields in SOAP Web Services
v
here is the sample request body
Copy code
<purchaseRequisitionItem xsi:type='tranPurch:PurchaseRequisitionItem'>
<item xsi:type='platformCore:RecordRef' internalId='722'/>
<description xsi:type='xsd:string'>Test ACS 2</description>
<estimatedRate xsi:type='xsd:double'>500.00</estimatedRate>
<estimatedAmount xsi:type='xsd:double'>500.00</estimatedAmount>
<options xsi:type='platformCore:CustomFieldList'>
<customField scriptId='custcol_location' xsi:type='platformCore:SelectCustomFieldRef'>
<value internalId='6' xsi:type='platformCore:ListOrRecordRef'/>
</customField>
b
that doesnt look correct
options are for item options
make sure that custom fields are supported first
if in doubt, do a get on an existing purchase requisition with custom columns
v
Hello, sorry for the noob question. what do you mean by custom fields are supported first?
b
not all records support custom fields
when they are supported, they are usually in a customFieldList element, not an options element
v
I was able to get the record but the field is not showing. the custom field is populated on the UI
b
thats evidence that custom fields are not supported for purchaseRequisitionItems
v
hmmm.. that's weird. i tried on another account and I was to populate the custom field using this request i'm not sure if this issue is account specific
Copy code
<itemList xsi:type='tranPurch:PurchaseRequisitionItemList'>
                    <purchaseRequisitionItem xsi:type='tranPurch:PurchaseRequisitionItem'>
                        <item xsi:type='platformCore:RecordRef' internalId='4'/>
                        <quantity xsi:type='xsd:double'>2</quantity>
                        <options xsi:type='platformCore:CustomFieldList'>
                            <customField scriptId='custcol5' xsi:type='platformCore:SelectCustomFieldRef'>
                                <value internalId='1' xsi:type='platformCore:ListOrRecordRef'/>
                            </customField>
                        </options>
                    </purchaseRequisitionItem>
                </itemList>
b
is that custom field actually an item option?
if the field is not an item option, then you want to make sure your request follows the 8 guidelines from the help i linked earlier
v
how do I know if a field is an Item option.apologies if im asking a lot questions