zapier-platform icon indicating copy to clipboard operation
zapier-platform copied to clipboard

subscribeData information is missing in performUnsubscribe

Open floofydoug opened this issue 5 years ago • 2 comments

Using the Platform UI, there is no way to modify a temporary subscribeData when using the emulated tests.

Here is the parsed response.content from the performSubscribe hook:

{
  "hook": [
    {
      "hookId": "2f9075ca-50f3-4aee-8152-6005719d70f0",
      "created_at": "2019-07-18T21:59:17.219Z",
      "companyId": "125b2f08-0b9d-418d-a013-28633f8b7c89",
      "updated_at": "2019-07-19T02:55:28.582Z",
      "targetUrl": "https://hooks.zapier.com/fake-subscription-url"
    }
  ],
  "success": true
}

I would expect to be able to access this data inside of performUnsubscribe in order to pass the hookId to my DELETE call. But It's not there! I cannot get reference values from using either the code editor OR the form editor.

and here is the output from performUnsubscribe:

{
  "authData": {
    "success": true,
    "userId": ":censored:36:b824e6a29a:",
    "defaultCompanyId": ":censored:36:f99b159ffe:",
    "result": true,
    "password": ":censored:6:b0026d6dfb:",
    "email": ":censored:20:3324b63c56:"
  },
  "subscribeData": {},
  "meta": {
    "isTestingAuth": false,
    "isLoadingSample": false,
    "limit": -1,
    "isPopulatingDedupe": false,
    "isFillingDynamicDropdown": false,
    "page": 0,
    "zap": {}
  },
  "targetUrl": "https://hooks.zapier.com/fake-subscription-url",
  "inputDataRaw": {},
  "inputData": {}
}

Another related issue is that through the documentation it mentions that there is some place to go to RAW mode in the documentation. I don't see that option anywhere on the current UI.

Screen Shot 2019-07-18 at 8 04 38 PM

floofydoug avatar Jul 19 '19 03:07 floofydoug