Assign values to a complex object Variable
Summary
Assign Values of subfield of a complex object failContent
I created an email object as page variables and I try to assing values using some page variables as bellow :
{
"message": {
"Body1": {
"content": "{{ $page.variables.Email_Body }}",
"contentType": "Text"
},
"subject": "{{ $page.variables.Subject }}",
"toRecipients": [
{
"emailAddress": {
"address": "{{ \"$page.variables.Emailid\" }}"
}
}
]
},
"saveToSentItems": true
}
I've got this error
[VB (ERROR), /vb/stateManagement/page]: TypeError: Cannot read property 'emailAddress' of undefined
at eval (eval at createFromString (expression.js:78), <anonymous>:3:464)
at Function.evaluateImmediate_CallReadThenEndDependencyDetection (oj3rdpartybundle.js:2336)
at Function.evaluateImmediate_CallReadWithDependencyDetection (oj3rdpartybundle.js:2293)
at Function.evaluateImmediate (oj3rdpartybundle.js:2258)
at computedObservable (oj3rdpartybundle.js:2037)