Unable to Set Path Variable while sending Request

I need to set(update) query parameter via Script and I am unable to update it even with the Global Variable, Please help me out.

After reading several other relevant posts , Also tried dragging Global Variable but still it is not working.

Hi @kahmed,

Set the default value of tenantId to “” and make the type String

Then try this. . .

WS.sendRequest(findTestObject("Object Repository/your_object", (["tenantId" : "your_Value"])))

Hope that helps. . . :slight_smile:

Thank you Arnel,

Solved it by Following script :
if (tenantId != null) {
request = ((findTestObject(url, [(‘tenantId’) : tenantId])) as RequestObject)

Also by passing ‘tenanentId’ parameter in a Method.