DiscoveryFunctions - createRelationshipIfNotExists(GlideRecord parent, GlideRecord child, String descriptor)

Creates a relationship between the specified parent and child if none already exists.

Table 1. Parameters
Name Type Description
parent GlideRecord The parent virtual machine
child GlideRecord The child virtual machine
descriptor String The relationship descriptor
Table 2. Returns
Type Description
String The sys_id of the relationship if found or created; otherwise, returns null or undefined.