Is there a reason why this does not change the current sale to "Sold"?
eventData = getEventData();
eventData.setOutputValue( "SaleStatus", "2" );
Guess the following is obvious for the gurus here, but mentioning it anyways :-)
I just found a field name and value pair that has the intended effect on setOutputValue(): "SaleEntity.Rating.Id" = "-2".
"SaleEntity.Rating.Id" = "-2"
Also the field name "SaleEntity.CompletedBool" has no effect on the completed checkbox on a sale, but the field name and value pair "SaleEntity.Completed" = "Completed" has the intended effect.
"SaleEntity.Completed" = "Completed"
So, with these changes it works.
One field I don't seem to be able to change via setOutputValue() however, is the "Stalled" checkbox in the sale.
I have tried the following statements, none of them seem to check the "Stalled" checkbox:
eventData.setOutputValue( "SaleStalled", "true" );
eventData.setOutputValue( "SaleStatus", "4" );
eventData.setOutputValue( "SaleEntity.Status", "Stalled" );
Is there a way to change the value of the "Stalled" field when using a "before saving sale" trigger?
One thing I don't see in that list, which I believe should work is :
eventData.setOutputValue( "SaleEntity.Status", "4" );
Hope this helps!
Thanks for you reply.
Unfortunately this does not work either I'm afraid.
LukDette websted bruger cookies. SuperOffice bruger primært cookies til overvågning af trafik på webstedet og optimering af indholdet. Vær venlig at fortsætte med at bruge dette websted, hvis du accepterer vores brug af cookies. Læs mere: Politik om beskyttelse af personlige oplysninger