Uploading CRM Extensions not working. Requires "fetch" that can't be there.
Closed this issue · 1 comments
Description and Context
Uploading CRM UI Extension examples won't pass the build tests anymore.
`hs project upload --account=demo
Failed to upload crm-card project files to demo (20714910)
[ERROR] The post in account 20714910 was bad. The JSON in the file '/app/extensions/example-card.json' doesn't match the associated scheme. Correct and/or add values to all relevant fields and try again.
- $.data.fetch: is missing but it is required`
If I put "fetch" to the card.json as requested, the card will try to fetch layout from that "crm-card" appFunction endpoint and that is not the case we want to achieve when creating react extensions.
"fetch": { "targetFunction": "crm-card", "objectTypes": [ { "name": "deals", "propertiesToSend": ["dealname"] } ] }
Tried this with versions 4.1.7 and 5.0.1.
Steps to reproduce
- git clone https://github.com/HubSpot/ui-extensions-examples.git
- cd ui-extensions-examples/contact-duplicate
- hs project upload (+ name and location selection as normally)
PS. I'm not sure if this is a cli problem or more of a server-side issue. Please advise where this should be directed if it does not belong here. And please let me know if I have misunderstood this issue.
These React based UI extensions seems to require beta opt-in.
Maybe this could be said in the error message.