We added for Lead entity custom field with type OptionSet to store gender. Available value options of field are Male and Female.
Now we need to transform gender value from Lead to Contact in workflow qualification action. With actions we can successfully transform all Lead entity’s fields except fields with OptionSet type.
We try to perform transform with this workflow action:1234567891011121314151617...- @create_entity: # create Contact based on Leadclass: OroCRM\Bundle\ContactBundle\Entity\Contactattribute: $lead.contactdata:namePrefix: $lead.namePrefixfirstName: $lead.firstNamemiddleName: $lead.middleNamelastName: $lead.lastNamenameSuffix: $lead.nameSuffixjobTitle: $lead.jobTitledescription: $lead.namebirthday: $lead.birthdaygender: $lead.gender...
After performing transition via interface we see that all fields successfully transformed from Lead to Contact except gender field. Value of gender in Contact entity keeps empty.
Please help us. What is the right way to perform transform fields with OptionSet type?
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.