Hi, I created a new CCT extension. Custom record, ...
# suitecommerce
t
Hi, I created a new CCT extension. Custom record, custom content type and extension are done and activated. Once I drag and drop the element to a zone, it does a background call to https://<account>-sb1.app.netsuite.com/api/cms/v2/contenttypes/7/form?c=&lt;account&gt;_SB1&amp;site_id=2 which return an unexpected error:
Copy code
{
  "errors": [
    {
      "message": "An unexpected error occurred."
    }
  ]
}
Any ideas what I am missing? I followed the guide https://developers.suitecommerce.com/develop-a-custom-content-type-as-an-extension.html, double and tripple checked IDs, namespaces, filenames, ...
Ok, my problem was a field in the custom record.
n
Maybe share the problem / how you resolved it to assist others in the future?
t
I had a field in the custom record which should store the content of the CCT. It was created a multiselect with "CMS Content". The idea for that was to create a new content area where multiple elements could be dropped in. This results in said error. I changed the field to rich text and it went away. There is no need in having multiple sub-elements, this was a misunderstanding... I should have thought about that earlier. You know, you get distracted, put the project aside for a couple of days and then you forgot stupid things you tried like that. At leats this time I can't blame NetSuite/Suitecommerce Advanced πŸ™‚
πŸ’― 1
n
I hear you buddy, it's awful being an imperfect human instead of a robot ☺️ Thanks for the update and sharing.