Skip to main content
1-Visitor
March 24, 2016
Solved

MKS web services createItem

  • March 24, 2016
  • 1 reply
  • 3542 views

I am new to MKS web services. I am calling the createItem passing the CreateItemType. I get the following error. Could not save item: MKS124147: The following fields which are mandatory in the state Submitted have not been filled in: Description. Please do tell me is you have a sample request for createItem.

    Best answer by LLawton

    I would look at the definition of the type you are trying to create to understand how it's defined and how it works.

    One way is to view the presentation template and look for the "Description" somewhere. Chances are, you have a field with a "Display Name" of Description, but a real name that's different, and that's what you need in your code. My suspicion is that the error message shows the display name.

    1 reply

    1-Visitor
    March 24, 2016

    This error will occur also on command line or in java api, all the same, and all with the same solution which is to add the field that is called out in the error message.

    If you are editing your soap envelope directly then you will want to add one of these:

                <sch:ItemField Name="Description">

                   <sch:longtext null="?">quick brown dog jumping over lazy fox or whatever</sch:shorttext>

                </sch:ItemField>

    1-Visitor
    March 24, 2016

    You could also relax the workflow to not require that field.  To do so is probably not practical in real life, but can be useful for a quick test.

    (Also be mindful of the need to make the contents XML-safe.  If your description field contents include XML then it has to be escaped within your soap envelope.)