Skip to content

Instantly share code, notes, and snippets.

@Jiyvn
Jiyvn / ReuseRequest.js
Created October 12, 2023 04:01 — forked from prashantagarwal/ReuseRequest.js
Script to fetch and reuse a request from a different collection
function executeReferencedRequest({ collectionUId, requestUId, requestName, apiKey }, callback) {
var _ = require('lodash');
let message;
if (!apiKey) {
message = "Pleas generate an API key and add it in your collection level variables"
}
if (!collectionUId) {
message = "Please enter the UId of the collection from which you want to resuse a request or script"