I am working on setting up a data action to Schedule a callback.
Required fields: Queue ID, Number and Time.
Optional - Script ID , Remote Name , Priority and ACD Skill.
Testing with all fields filled out works.
Errors pop up for each of the optional fields is left empty.
Error - states: 7. Resolve request body template: Substitution values invalid in action config. Reference ${input.ACDSkill} evaluated to null when attempting to render at BodyTemplate[line 7, column 16] A common reason for this error is needing to prepend the variable with 'input.' or 'credentials.'
We use strict reference mode in our velocity template processing, so attempting to reference an unset variable would fail by default. However, you can use $!{input.foo} to not have an error if the variable is not set. In your example would something like
"skills" : ""
be valid, or should the skills key/value be removed completely?
I made a couple of tweaks to your second example to get it working.
Added a missing }
[{"id": "${input.ACDSkill}"] -> [{"id": "${input.ACDSkill}"}]
Removed the trailing , here:
],
and instead put commas at the front of the RemoteName and Script lines to make sure that the object doesn't have an invalid trailing comma.
Unexpected character ('}' (code 125)): was expecting double-quote to start field name at [Source: REDACTED (StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION disabled); line: 4, column: 9]
#if(${input.Priority})"priority:"${input.Priority}",#end - is what I added.
For caller ID, looking to capture the remote column in interactions. what shows up in picture of caller.
right now when i get a success it just says - no name provided.