Id showing instead of name

  • 1
  • Problem
  • Updated 1 year ago
  • Solved
  • (Edited)
I have created a record and saved the record.  I now want to use actions to reference a another object. I am using a collapsible wrapper action 
{{{$Model.TempEngagement.data.0.Temp_Engagement_Location__r.Zip_Postal__r.MLS_Name__r.Id}}}
Photo of Bill Fox

Bill Fox

  • 7,954 Points 5k badge 2x thumb

Posted 1 year ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
The last part of your reference is MLS_Name_r.Id.
I think you want MLS_Name_r.Name
Photo of Bill Fox

Bill Fox

  • 7,954 Points 5k badge 2x thumb
I tried that and it does put the correct name in field but when I try to save it says
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Ohhh... I see what you are doing now... try two actions in the action sequence. The first action updates MLS_Name_r.Id and the second action updates the same field to MLS_Name_r.Name. I think that will work based on a use case I had a long time ago so I may not be remembering it correctly.
Photo of Bill Fox

Bill Fox

  • 7,954 Points 5k badge 2x thumb
Same results.
Photo of Bill Fox

Bill Fox

  • 7,954 Points 5k badge 2x thumb
Here is what works  {{{$Model.TempEngagement.data.0.Temp_Engagement_Location__r.Zip_Postal__r.MLS_Name__c}}}

Leave off the Id and use __c instead of __r