Skip to content
+1-888-319-3663

COMMUNITY FORUM

WCF Runmap with variable not setting

Patrick asked 6 months ago
Hi,
I have been trying to run a map through the WCF Rest service endpoint “runmap/var/{mapid}” and it doesn’t seem to change the global variable.
Currently the map data source uses a global variable to filter through the where clause. A default is set for this global variable for this map but it seems it constantly being replace with an empty string. I’ve tried just running the map through the “runmap/{mapid}” as well hoping it will just pull the global variable’s default value but it also returns an empty string. Not sure if I’m doing something wrong.
 
The global variable is GBL_ITEMNMBR with a default value of Test123
The map datasource query:
Select * from IV00102 where¬†ITEMNMBR = ‘GBL_ITEMNMBR’
 
The XML that is passed to the “runmap/var/{mapid}” endpoint :
<ArrayOfVariableOfstringstring xmlns=”http://schemas.datacontract.org/2004/07/eOne.SmartConnect.Engine” xmlns:i=”http://www.w3.org/2001/XMLSchema-instance”>
<VariableOfstringstring>
<Key>GBL_ITEMNMBR</Key>
<Value>Test123</Value>
</VariableOfstringstring>
</ArrayOfVariableOfstringstring>
 
Any help would be appreciated

If you would like to submit an answer or comment, please sign in to the eOne portal.