I have a question regarding the workflow extension api. I hit this api endpoint https://api.hubapi.com/automationextensions/v2/definitions?hapikey={apiKey}&applicationId={appId} with correct parameters. The result is a workflow extension action which I can add to workflows but instead of one field I get duplicate fields. The json body is similar to one of the samples in the documentation.
POST https://api.hubapi.com/automationextensions/v1/definitions?hapikey=<<hapikey>>&applicationId=<<app ID>>
The hapikey and application_id can be retrieved from your App via your Developer Portal. It's important to remember that this is your Developer Hapikey, info of which can be found here.
Once this was submitted, I received a successful response and the extension was added to my portal where this App had been installed.
If you've mirrored this process but still encountered the duplication issue, please do pass along the body of the request and the Portal where this duplication is being seen and we can take a look for you.
Thanks for this data - I can see that you posted this with your Hapikey included, in order to protect your account, you will want to remove this when posting to the forum as this is publically accessible. I've gone ahead and removed that for you now.
In relation to the issue itself, i've tested this out for you now in my portal and can see that the extension is created when checking on a workflow action in my portal.
Are you currently referring to the duplication seen in the request response? As I tested this on my side using your code, I was returned the following:
For some reason I am unable to delete any version. They are marked as deleted but still when I try to create an action with the same name I get an error that it already exists. Also it is not removed from the UI.
The isssue is not resolved. We are trying the same and getting the fieldMetaData getting duplicated. Can you tell how do we resolve that issue? We are following the exact steps in the document.
Would you be able to message me directly with your Portal ID for where you're seeing this extension still being shown and the latest request body used to delete the extension?