Arithmetic operations in LTI variable substitutions

carols
Community Explorer

Hi everyone

Can I create an external tool with parameters using LTI variable substitutions with arithmetic operations? 

For example, if we wanted to set a date via LTI substitution, could we set it to something like:

   $Canvas.assignment.dueAt.iso8601 + 86400

(where 86400 is the number of seconds in 24 hrs)

I can't see anything documented on this, and I'm thinking it's probably not possible but I know that sometimes there are unexpected solutions, such as the one pklove‌ was able to help us with on another LTI variable substitution question we had (https://community.canvaslms.com/thread/23903-lti-variable-replacement-as-part-of-a-custom-field )

Thanks for any advice

Carol

Labels (1)
0 Likes