Convert 'System.Object[]' to type 'Microsoft.Dynamics.Ax.Xpp.XppObjectBase' in X++
Casting is impossible - these types aren't compatible.
But a conversion is possible. For example, if you have System.Object[] containing strings, you can iterate them and put them to List class in F&O. The exact solution depends on what you're doing, which you didn't tell us.
Also, XppObjectBase is an abstract class that you can't use as such, but it's a parent of all native X++ classes. You'll need to use a a non-abstract class instead of XppObjectBase.
Convert 'System.Object[]' to type 'Microsoft.Dynamics.Ax.Xpp.XppObjectBase' in X++
I have not tried to convert it as I don't know how to do it. All I have is a System.Object[] which I need to convert into Microsoft.Dynamics.Ax.Xpp.XppObjectBase.
There is an third-party API that returns that object but i need it to be converted into Microsoft.Dynamics.Ax.Xpp.XppObjectBase.
Convert 'System.Object[]' to type 'Microsoft.Dynamics.Ax.Xpp.XppObjectBase' in X++
Hi, Have you already tried converting? If so, can you provide more information? Such as screenshots or code. You can explain it in more detail so that other experienced people can help you. Best Regards, Hana
Convert 'System.Object[]' to type 'Microsoft.Dynamics.Ax.Xpp.XppObjectBase' in X++
Hi Shahzaib,
can you please share the code where you are trying to do this conversion?
Thanks,
Layan Jweihan
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.