I tried to use a list of UserSession.
So here is my new Datamodel:
and my new JSON:
{
"ServiceOperation": "Core-2007-12-Session\/setUserSessionState",
"InputType": "Digitops.ListOfUserSession",
"ResponseType": "TcConnector.ServiceResponse",
"ObjectMapping": "",
"OperationInput": {
"pairs": ["$Input\/Digitops.ListOfUserSessions"]
},
"OperationResponse": "$Response\/TcConnector.ResponseData"
}
But I have the same result…
Please help !!!
Looking at the RAC Communication Monitor view, I see the following for this operation:
[Call] TC11.03454.01.ed.00050 Core-2007-12-Session:setUserSessionState (214 bytes)
<?xml version="1.0" encoding="UTF-8"?>
<SetUserSessionStateInput xmlns="http://teamcenter.com/Schemas/Core/2007-12/Session">
<pairs name="bypassFlag" value="1"/>
</SetUserSessionStateInput>
Have you tried setting the value to “1” rather than “true”?
This is the OperationMapping I have used for this:
{
"ServiceOperation": "Core-2007-12-Session\/setUserSessionState",
"InputType": "MyFirstModule.setUserSessionStateInput",
"ResponseType": "",
"ObjectMapping": "",
"OperationInput": {
"pairs": [
{
"name": "$Input\/name",
"value": "$Input\/value"
}
]
},
"OperationResponse": {}
}
Is it working for you?
I have exactly the same things and it doesn’t work:
my Operation mapping:
{
"ServiceOperation": "Core-2007-12-Session\/setUserSessionState",
"InputType": "Digitops.setUserSessionStateInput",
"ResponseType": "TcConnector.ServiceResponse",
"ObjectMapping": "",
"OperationInput": {
"pairs": [{
"name": "$Input\/name",
"value": "$Input\/value"
}]
},
"OperationResponse": "$Response\/TcConnector.ResponseData"
}
My datamodel:
The microflow I use:
But it doesn’t work…
This works for me
{
"ServiceOperation": "Core-2007-12-Session\/setUserSessionState",
"InputType": "MyFirstModule.setUserSessionStateInput",
"ResponseType": "",
"ObjectMapping": "",
"OperationInput": {
"pairs": [
{
"name": "$Input\/name",
"value": "$Input\/value"
}
]
},
"OperationResponse": {}
}