I'm a developer, not a support person. We don't provide free support that implies writing code. We just released the new version, we are busy. We've been helping too much for free, our support is constantly overwhelmed. Maybe someone else could help.
Code:
$opportunityAccountId = record\attribute('Opportunity', opportunityId, 'accountId'); if ( opportunityId && (!$opportunityAccountId || $opportunityAccountId != accountId) ) { recordService\throwBadRequest( 'Forbiden you can not link an opportunity to this record which is not linked to any account'); } if (accountId || $opportunityAccountId) { $billingContactAccountId = record\attribute('Contact', billingContactId, 'accountId'); if ( !$billingContactAccountId || $billingContactAccountId != accountId || $billingContactAccountId != $opportunityAccountId ) { recordService\throwBadRequest( 'Sorry you can not link a billing contact who is not linked to current selected account'); } $shippingContactAccountId = record\attribute('Contact', shippingContactId, 'accountId'); if ( !$shippingContactAccountId || $shippingContactAccountId != accountId || $shippingContactAccountId != $opportunityAccountId ) { recordService\throwBadRequest( 'Sorry you can not link a shipping contact who is not linked to current selected account'); } }
Leave a comment: