Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
We tried connecting the Optimizely Forms to submit to a Leads database in D365.
If all of the form fields are mapping to D365 simple fields such as Single-line of text (text, email, phone, URL) or Option sets, the form submits successfully.
However, if we map a form element to a Lookup field, the form submit throws the following error:
Full stack trace here:
The problem was due to the special handling required for saving values of Lookup fields in D365.
Instead of just this:
Lookup field values has to be set using `EntityReference` specifying the name of the parent lookup object
The D365 SDK used in the connector can also be used to check the type of field, e.g. LookupAttributeMetadata, and the target lookup entity name.
In all honesty, we found a fix for this issue by replacing the implementation of `IMSDynamicsService.SaveEntity()` method.
However, I think this should be fixed on the package level moving forward.