AnsweredAssumed Answered

Service Catalog: Update date/time field with the saveRequestForm webservice method

Question asked by gilry01 Employee on May 15, 2015
Latest reply on Aug 19, 2015 by gilry01

Hello team,

I'm trying to update a date/time field in a form using webservices calling this method. I'm able to update text fields without a problem but no luck getting a date/time field to actually change.

Values returned from the API:

 

               <form xsi:type="ns2:FormElement">

                  <ID xsi:type="soapenc:string">ID_EndDate</ID>

                  <label xsi:type="soapenc:string">End Date</label>

                  <labelValue xsi:type="soapenc:string" xsi:nil="true"/>

                  <type xsi:type="xsd:int">14</type>

                  <value xsi:type="soapenc:string">06/12/2015 16:00:00</value>

               </form>

               <form xsi:type="ns2:FormElement">

                  <ID xsi:type="soapenc:string">ID_EndDate_fdms$$</ID>

                  <label xsi:type="soapenc:string">ID_EndDate_fdms$$</label>

                  <labelValue xsi:type="soapenc:string" xsi:nil="true"/>

                  <type xsi:type="xsd:int">0</type>

                  <value xsi:type="soapenc:string">1434124800000</value>

               </form>

 

In the formValuesData tag of the webservice I've tried these to change it:

 

<formValuesData xsi:type="xsd:string">ID_EndDate:5/11/2015 13:00</formValuesData>

<formValuesData xsi:type="xsd:string">ID_EndDate:'5/11/2015 13:00'</formValuesData>

<formValuesData xsi:type="xsd:string">ID_EndDate:"5/11/2015 13:00"</formValuesData>

<formValuesData xsi:type="xsd:string">ID_EndDate:1431450000000</formValuesData>

Outcomes