CIF Cloud Addon Customization | Community
Skip to main content
suryapramodhd73
March 16, 2021
Solved

CIF Cloud Addon Customization

  • March 16, 2021
  • 2 replies
  • 1345 views

We are doing an integration with 3rd party Commerce solution. While writing integration layer in Adobe IO we realised that the commerce schema is not working with Magento Schema. Some of the primary keys needs to be converted from Integer to String and some of the fields needs to be updated.

 

On the cloud environment, can we customise the CIF Addon schema. Or do we need to build our own connector with the schema.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by mhaack

Hello, while customisations of the schema are possible and required at many places, like product attributes we recommend not changing fundamental things like the ids. This well break CIF add-on and components as GraphQL has built in type checking.

 

The good news is there will be a generic solution for this soon. Magento Schema (2.4.2+.) introduced a generic UID field which will replace the ID field (which is still there but got already deprecated). See https://devdocs.magento.com/guides/v2.4/release-notes/open-source-2-4-2.html#graphql and https://devdocs.magento.com/guides/v2.4/graphql/queries/category-list.html for some examples. With CIF we already working on full support for uid. This should make your requirement to convert the identifiers obsolete.

 
 

2 replies

mhaack
Adobe Employee
mhaackAdobe EmployeeAccepted solution
Adobe Employee
March 18, 2021

Hello, while customisations of the schema are possible and required at many places, like product attributes we recommend not changing fundamental things like the ids. This well break CIF add-on and components as GraphQL has built in type checking.

 

The good news is there will be a generic solution for this soon. Magento Schema (2.4.2+.) introduced a generic UID field which will replace the ID field (which is still there but got already deprecated). See https://devdocs.magento.com/guides/v2.4/release-notes/open-source-2-4-2.html#graphql and https://devdocs.magento.com/guides/v2.4/graphql/queries/category-list.html for some examples. With CIF we already working on full support for uid. This should make your requirement to convert the identifiers obsolete.

 
 
Nikhil-Kumar
Community Advisor
Community Advisor
March 18, 2021

@suryapramodhd73  -  I believe you are using Node.js as part of Adobe IO to pass the value as part of schema to Magento. You can update the value type while passing to Adobe IO's node js itself.

Thank,
Nikhil Kumar

mhaack
Adobe Employee
Adobe Employee
March 18, 2021
While this will technically be possible it will highly likely break on the AEM side. As CIF Core Components use Java models which are typed.