Q: 2
An Adobe Commerce Developer has written an importer and exporter for a custom entity. The client
is using this to modify the exported data and then re-importing the file to batch update the entities.
There is a text attribute, which contains information related to imagery in JSON form, media_gallery.
This is not a field that the client wants to change, but the software they are using to edit the exported
data seems to be modifying it and not allowing it to import correctly.
How would the developer prevent this?
A) Specify a serializer class for the attribute using the $_transformAttrs class property array for both
the exporter and importer so it gets converted:
B) Strip the attribute from the imported file by adding it to the s_strippedAttrs class property array:
C) Prevent it from being exported by adding it to the $_disat>iedAttrs class property array:

B) Strip the attribute from the imported file by adding it to the s_strippedAttrs class property array:
C) Prevent it from being exported by adding it to the $_disat>iedAttrs class property array:

Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.