using {timestamp} and spjs.utility.addItem

Forums Dynamic Forms for SharePoint using {timestamp} and spjs.utility.addItem

Viewing 1 reply thread
  • Author
    Posts
    • #30306
      Jon Whisman
      Participant

      Hello,

      I’m using spjs.utility.addItem and one of the target fields is a date time field.

      I’ve tried a few different methods, but I keep getting error occurred while creating the child item: Invalid date/time value. Is there a parse or formatting I need to do when inserting data into date time fields? I am needing the date, as we are triggering workflow reminders off of a calculated date & time.

      I have tried:

      spjs.dffs.buildValStr(“{timestamp}”)

      as well as:

      spjs.dffs.buildValStr(“{timestamp[MM/dd/yyyy]}”)

    • #30308
      Alexander Bautz
      Keymaster

      When adding an item like this, the format is ISO8601 so you must use this format:

      spjs.dffs.buildValStr("{timestamp[yyyy-MM-ddThh:mm:ssZ]}");

      Alexander

Viewing 1 reply thread
  • You must be logged in to reply to this topic.