Keith Weaver
08/24/2022, 4:58 PMrecord.attach({
record:{
type: record.Type.CONTACT,
id: contactId
},
to:{
type: record.Type.VENDOR,
id: context.request.parameters.custpage_venid,
attributes: {
role: '-10'}
}
I am trying to attach a contact record to a vendor and assign primary contact role to it. This is what I am trying and it is not working. Any thoughts?battk
08/24/2022, 5:16 PMbattk
08/24/2022, 5:16 PMKeith Weaver
08/24/2022, 5:40 PMKeith Weaver
08/24/2022, 5:54 PMto:
to be an object of only type
and id
key value pairs
record.attach({
record:{
type: record.Type.CONTACT,
id: contactId
},
to:{
type: record.Type.VENDOR,
id: context.request.parameters.custpage_venid
},
attributes: {
role: -10}
})