1

can i use grouping to eliminate duplication on the returned values using REST API ?or is there any other way the remove\delete duplicated values using REST?

1

1 Answer 1

1

Use Search API trimduplicates

    var searchApi='/_api/search/query?querytext=%27ContentType:"CT Name"
    var selectedParameter='&trimduplicates=true&selectproperties=%27,Title,Path%27';
    var searchQuery=_spPageContextInfo.siteAbsoluteUrl+searchApi+' %27'+selectedParameter;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.