You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

opportunitiesOnBeforeSaveEvent() is not giving OptyNumber in the response

in Sales 7 comments

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",     

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!