0

In below query inside filter if i specify the direct value it works fine,

ConnectApi.LiteralJson result = Wave.QueryBuilder.load('0Fb0v0000000vtbCAA', '0Fc0v000001QGWOCA4')
.filter('Field == \"created\"').foreach(projs).execute('q');

But i want to dynamically pass the value to the filter. Below code i am replacing the value with some variable and try to use that. but it does not return any results,

String value = 'created';

ConnectApi.LiteralJson result = Wave.QueryBuilder.load('0Fb0v0000000vtbCAA', '0Fc0v000001QGWOCA4')
.filter('Field == \"+value+\"').foreach(projs).execute('q');

Any issue with this code?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.