Issues with custom widget

Issues with custom widget

Hi all,
I'm developing a custom widget in service desk plus cloud and encounter some problems listed below.

1. For plugin-manifest.json, what's the difference between 'personal' and 'org'? If I want to let all the users to have the widget I created, I think I should use 'org'. But `zet pack` keeps complaining.
my plugin-manifest.json
  1. {
    "service": "SDP",
    "type": "org",
    "widgets": [
    {
    "name": "Case ID Widget",
    "description": "Display Case ID from UDF field and test connection",
    "path_url": "/app/widget.html",
    "show_widget_header_in_dashboard": true,
    "icons": {
    "30x30": "/app/img/SDP.png"
    },
    "locations": [
    "request.detail.rightpanel"
    ],
    "inputs": [
    {
    "name": "regionUrl",
    "value": "${vision_one_connector_test_visiononebaseurl}"
    }
    ]
    }
    ]
    }
my package.json
  1. {
    "name": "zoho-app",
    "version": "0.0.1",
    "private": true,
    "scripts": {
    "start": "node server/index.js"
    },
    "dependencies": {
    "body-parser": "^1.14.2",
    "errorhandler": "^1.4.2",
    "express": "^4.13.3",
    "morgan": "^1.6.1",
    "serve-index": "^1.9.0",
    "chalk": "^1.1.3",
    "i18next": "^10.0.7",
    "portfinder": "^1.0.25"
    }
    }
error message
  1. zet pack

  2. PluginManifest file validation :- 

  3.  ==> The "type" property can be either 'personal' or 'org'.

2. How do I get the extension variable inside the custom widget?
I changed value of `type` from `org` to `personal` for testing. But still can't get the extension variables  inside the custom widget. Other fields are the same as fields listed in the plugin-manifest.json in first question.

3. How do I get connections inside the custom widget?
I tried this just as the docs said here:

  1. {
    "service": "SDP",
    "type": "personal",
    "widgets": [
    {
    "name": "Case ID Widget",
    "description": "Display Case ID from UDF field and connect to Vision One API",
    "path_url": "/app/widget.html",
    "show_widget_header_in_dashboard": true,
    "icons": {
    "30x30": "/app/img/SDP.png"
    },
    "locations": [
    "request.detail.rightpanel"
    ]
    }
    ],
    "connections": [
    {
    "connectionLinkName": "tm_visionone_api",
    "connectionName": "TM_VisionOne_API",
    "serviceName": "bryantestconnection",
    "userAccess": true,
    "isUserDefinedService": true,
    "sharedBy": "906511789"
    }
    ]
    }

But got the error when saved.



Thanks in advance!