Skip to main content
Jordan Wight (Accenture) a posé une question dans #Apex
I have a custom field on a custom object with a default picklist value. When I create a record via the UI, the default value is respected. But when apex creates the record, the default value is not respected, and the field remains blank. I am not using record types. It is not a controlling or dependent picklist. 
3 réponses
  1. 22 avr. 2016, 08:32

    I found out it is working in the sandbox because someone created a workflow to set it. But the workflow shouldn't be necessary if there is a default value.

    I don't know if there is a trigger which could empty the value, if there is no other ideas then I would have to pay a developer to check on this, and it might be easier just to use the workflow to set it.

0/9000