files/en-us/web/api/sharedstorageselecturloperation/run/index.md
{{APIRef("Shared Storage API")}}{{deprecated_header}}
The run() method of the {{domxref("SharedStorageSelectURLOperation")}} interface defines the structure to which the run() method defined inside a URL Selection output gate operation should conform.
run(urls, data)
urls
url
reportingMetadata {{optional_inline}}
"click" : "my-reports/report1.html". The URLs act as destinations for reports submitted with a destination of type "shared-storage-select-url", typically submitted via a {{domxref("Fence.reportEvent()")}} or {{domxref("Fence.setReportEventDataForAutomaticBeacons()")}} method call.data
A {{jsxref("Promise")}} that fulfills with a number defining the array index of the URL selected by the operation.
See the main {{domxref("SharedStorageSelectURLOperation")}} page for an example.
{{Specifications}}
{{Compat}}