opportunitiesOnBeforeSaveEvent() is not giving OptyNumber in the response
Summary:
I am trying to use the opportunitiesOnBeforeSaveEvent() in the opportunities layout in Redwood Sales(CX-Sales). The use case that I am trying to use here is when an opportunity is created I want to capture the OptyNumber from the response object and use that for another API call that is lets say for adding Attachments. Below is the sample response event object.
let createObj = { "row": { "CurrencyCode": "USD", "PrimaryOrganizationId": "********7012", "Name": "Test_opty_02", "TargetPartyId": "********7012", "SalesMethodId": "********7012", "SalesStageId": "********7012", "WinProb": 20, "EffectiveDate": "2024-09-16" }, "currentRow": { "@context": { "resource": "opportunities" }, "CurrencyCode": "USD", "PrimaryOrganizationId": "********7012", "Name": "Test_opty_02", "TargetPartyId": "********7012", "SalesMethodId": "********7012", "SalesStageId": "********7012",