getReference

    ServiceNow

    Signature

    HelpernodeHelper
    Signature

    (tableName: String, key: String, value: String)

    Description


    Helps to get a value of type reference.

    Introduced in5.0.17

    Example use

    Sync the Request field in a Request Item 


    requestItem.request = nodeHelper.getReference("sc_request", "number", "REQ0000001")?.sys_id

    Signature

    HelpernodeHelper
    Signature

    (nodeHelper.getReference( entityType: String, fieldName: String, fieldValue: String )

    Description

    Helps to get a value of type reference.

    Introduced in0.5.0

    Example use

    Sync any field of the Salesforce object. In this case we sync the User object and get reference of the Sender Email field from this object.

    replica.email = nodeHelper.getReference( Account, OwnerId, entity.OwnerId).SenderEmail


    Salesforce

    Signature

    HelpernodeHelper
    Signature

    (nodeHelper.getReference( entityType: String, fieldName: String, fieldValue: String )

    Description

    Helps to get a value of type reference.

    Introduced in0.5.0

    Example use

    Sync any field of the Salesforce object. In this case we sync the User object and get reference of the Sender Email field from this object.


    replica.email = nodeHelper.getReference( Account, OwnerId, entity.OwnerId).SenderEmail