Problems with passing ISO8601 as KM variable to shell script

Trying to pass an ISO8601 formated date "DueDate" into shell script. But the code is rendered wrong resulting in a return of error from the api pull. The $KMVAR_DueDate is placed between two sets of "'" and works for other variables and parameters. But it doesn't work with the ISO8601 date in the assignment[due_at] parameter.

The result is successful if I place the date directly into the parameter. Hence, -d 'assignment[due_at]=2020-04-10T03:59:00Z' works. Could anyone help me to troubleshoot what's wrong with my use of $KMVAR_DueDate?

I'm a shell script novice myself, but it looks like to me your syntax is wrong:

image

The most important problem is that you have the entire phrase between single quotes, which prevents shell expansion of any variable, including KM.

Second, you have the KM variable in curly brackets which should NOT be there.

See Using KM Variables in a Shell Script action.

Thank you JMichaelTX! This works with an input variable to the shell script: -d "assignment[due_at]=$(</dev/stdin) "\

The final shell script action looks like this:

image