03-03-2016 06:04 AM
Hi all,
I try to call Mediasense API via getSession with condition "isConference", but I receive result "The fieldName parameter is invalid".
I don't know how to solve this. Below is my code:
{
"requestParameters": [{
"fieldName": "isConference",
"fieldConditions": [{
"fieldOperator": "between",
"fieldValues": ["true"]
}],
"paramConnector": "AND"
}, {
"fieldName": "sessionState",
"fieldConditions": [{
"fieldOperator": "equals",
"fieldValues": ["CLOSED_NORMAL"]
}]
}],
"pageParameters": {
"offset": 0,
"limit": 1000
}
}
Thank you for help
Trinnachart
Solved! Go to Solution.
03-24-2016 05:14 PM
Hi Trinnachart,
"isConference" isn't a valid input parameter for the MediaSense getSessions API, thus it's failing at your end.
As mentioned in the guide, "isConference" is an Output string in this API.
Please have a look at the developer guide to see valid input parameters. I am pasting MS 11.0 guide. Please have a look at the guide for your respective release.
Let me know in case of any queries.
Thanks
Nitin Singh
MediaSense Support
03-21-2016 11:28 AM
If the issue is the pageParameters, you JSON looks correct. The default is 1,000, so you might try it without providing the paging parameters.
03-21-2016 07:56 PM
Thank you ewindgat, but I want to search result that is "isConference" calls.
03-22-2016 08:07 AM
I noticed for isConference, you used between as the operator. I believe isConference is a Boolean, and you might try equals.
03-24-2016 10:16 AM
Hi ewindgat,
I used
{
"requestParameters": [{
"fieldName": "isConference",
"fieldConditions": [{
"fieldOperator": "equals",
"fieldValues": ["true"]
}],
"paramConnector": "AND"
}, {
"fieldName": "sessionState",
"fieldConditions": [{
"fieldOperator": "equals",
"fieldValues": ["CLOSED_NORMAL"]
}]
}],
"pageParameters": {
"offset": 0,
"limit": 1000
}
}
and I got result "The fieldName parameter is Invalid".
03-24-2016 10:47 AM
It looks like the fieldvalues can only be strings. Booleans are not accepted.
03-24-2016 05:14 PM
Hi Trinnachart,
"isConference" isn't a valid input parameter for the MediaSense getSessions API, thus it's failing at your end.
As mentioned in the guide, "isConference" is an Output string in this API.
Please have a look at the developer guide to see valid input parameters. I am pasting MS 11.0 guide. Please have a look at the guide for your respective release.
Let me know in case of any queries.
Thanks
Nitin Singh
MediaSense Support
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide