Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Assign values to a complex object Variable

edited Apr 10, 2020 4:54PM in Visual Builder 6 comments

Summary

Assign Values of subfield of a complex object fail

Content

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)

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!