Formula field not working on REST model

  • 1
  • Problem
  • Updated 3 years ago
  • Solved
I have a formula field called 'to' on a REST model with an Insert (POST) action.
The formula is just merge syntax to access the value of another field:
{{$Model.PrayerNet_Defaults.data.0.PrayerNet_Email__c}}

The data I'm requesting exists in the model. From the console:
skuid.$M('PrayerNet_Defaults').getFirstRow()
Object
Id: "a0O1a000003EWZHEA4"
Id15: "a0O1a000003EWZH"
PrayerNet_Email__c: "admin@compasscare.info"
PrayerNet__c: true
Use_Three_Tensions_Model__c: true
attributes: Object
__proto__: Object

But the formula field is not returning anything.

'to' isn't in the list of fields in the model.

Any idea what's happening here?
What should I look for?
Is there a different way to get the value into the model?
I tried to just set the default value with merge syntax instead of using a formula, but that didn't seem to work, either.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Why are you not using "Field from another model" conditions to populate the parameter of your POST model. This is what I do...
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Nice. I was making it way too hard.