Custom object field token based on edge object | Community
Skip to main content
Diego_Lineros2
Level 5
July 22, 2024
Solved

Custom object field token based on edge object

  • July 22, 2024
  • 1 reply
  • 1617 views

Hello,

 

I have a Many to Many setup, this is not the real case but imagine I have my CO bridge as email and Course. Then I have an edge CO with Course and availability.

Email |<--> | Email -- Course |<--> |Course --Availability|

 

I want to send an email to people who has course availability = yes , which is not a problem from the smart list perspective, but I want to say in the email which course. The problem is that the Edge CO is not available in the scripting to apply the logic, is this possible somehow or a very long shot ?

 

Dear email

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Set up a static {{my.token}} like so:

#set( $edges = [ { "edgeField1" : "value", "edgeField2" : "value" }, { "edgeField1" : "value", "edgeField2" : "value" } ] )

 

Then you can read the junction objects at runtime and look up in the array of edge objects to get the edge props.

1 reply

SanfordWhiteman
Level 10
July 22, 2024

Sorry, no. You can’t access the edge object. What we sometimes do is inject the edge objects (if there aren’t too many of them) as JSON in {{my.tokens}} and then read from there.

Diego_Lineros2
Level 5
July 23, 2024

Interesting, I actually don't have many. Do you have more information about injecting the edge objects as JSON?

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
July 23, 2024

Set up a static {{my.token}} like so:

#set( $edges = [ { "edgeField1" : "value", "edgeField2" : "value" }, { "edgeField1" : "value", "edgeField2" : "value" } ] )

 

Then you can read the junction objects at runtime and look up in the array of edge objects to get the edge props.