i have to make a child database with a relationship but i dont know how to make it

Enovella23
Tera Contributor

in the script the use a similar script for depends on used by business service it looks like this:

gs.getProperty("relationship.dependson.usedby")

but i need one to runs on runs to server i try something like this 

gs.getProperty("relationship.runson.run");

but this is not working, someone have make something similar?

 

1 ACCEPTED SOLUTION

Hi Evonella, 

I thought maybe a demonstration may help on the above so hope this video helps.

https://youtu.be/QLQHzARFqJ4

Please mark this as helpful if it helps your question. 

Regards,
Wind

View solution in original post

Supporting this question on the Now community to help define the difference between property and a record in a table (Ci Relationship Type) https://www.servicenow.com/community/sam-forum/i-have-to-make-a-child-database-with-a-relationship-but-i-dont/m-p/2895963#M13928
6 REPLIES 6

Hi Evonella,

 

Yes because you need to create the property to contain the sys id, that is why it is returning null.

 

The relationship exists in a table , you are not gliderecording into that table 

 

so you need to store the sys if of that record in that property if you are trying to copy the above code functionality

 

hope that makes sense. 

 

Kind Regards,

Wind

Hi Evonella, 

I thought maybe a demonstration may help on the above so hope this video helps.

https://youtu.be/QLQHzARFqJ4

Please mark this as helpful if it helps your question. 

Regards,
Wind

Supporting this question on the Now community to help define the difference between property and a record in a table (Ci Relationship Type) https://www.servicenow.com/community/sam-forum/i-have-to-make-a-child-database-with-a-relationship-but-i-dont/m-p/2895963#M13928