Cannot use Date field in SharePoitn 2013 List Item Reference

  • 2 June 2014
  • 1 reply
  • 1 view

Badge

I want to use the date field in a line rule, to decide whether to skip a chunk of the process.

 

I started by putting it directly in a line rule, with the first variable as ToDateTime(ItemReference.DateTimeField), but I kept getting an error about system.object[] must implement IConvertible.  Then I tried to use the Data event to just move the value to a data field that I could then manipulate, but I get the same basic error "Object must implement Iconvertible".

 

Whatever is being returned is obviously not a simple date time value (no idea why this would be but anyway), so is there no way to work with an item reference in code?  Can I not somehow access the field in a code event then I can convert it however is required?


1 reply

Badge +6

Hi AdamP,


 


When setting up the line rule is there any inline function created? If so there could be a issue with the inline function.


 


Kind Regards,


 


Yannick

Reply