Hello. I have two entities: Service and Transaction. They have links to each other. Service.transaction and Transaction.service. In Service's formula I need to create a new Transaction with empty fields and set Transaction.service to Service itself. I have a logic in Transaction's formula to fill in fields using a Service object in Transaction.service. I did it with this code:
It creates a new Transaction object and adds a link to its Service, but Transaction's formula doesn't calculate after creating a Transaction with record\create('Transaction') and all fields remain empty. After manually recalculating the new Transaction the fields are filled in. Is there any way to recalculate records formula with code?
Code:
$newTransactionid = record\create('Transaction'); transactionId = $newTransactionid;
Comment