Adding resources in Custom Teams under object Custom_Object_C
We created a Custom Teams object in our Custom object custom_Object_C to leverage OOTB Resource object, Relationship is M:M between the two objects. We are building a requirement, where we can add Custom_Object_C Owner to the customteams via script. But we keep getting errors once we try to execute the script. Attaching the scripts and Error details.
#Oracle Sales Cloud
def vo = newView('Resource')
def vc = vo.createViewCriteria()
def vcr = vc.createRow()
def vci = vcr.ensureCriteriaItem('PartyId')