cancel
Showing results for 
Search instead for 
Did you mean: 

Operation Reporting API - Default Filter for Full Access

TheAnji
Explorer
0 Kudos
143

Hi,

We are having issues with Filter, Could you please help.

Requirement is we should be able to filter by UniqueNames, but optional. if we don't provide UniqueNames, other date filter should be applied.

Question:

Is it must to maintain "UniqueNames" in the filter expression when creating View Template?

if not, how to use filter for Unique Names.

if yes, how to provide default value in viewtemplate which should pull everything (Like "*" in SELECT Statement)

Example syntax:

       {
            "name": "UniqueName",
            "field": "UniqueName",
            "op": "=",
            "defaultValue": "*"
        }  

 

Thank you.

View Entire Topic
Yurip
Explorer
0 Kudos

It seems you need to have a filter expression based on unique names, or
a pair of date filters (that is, a FROM filter and a TO filter, specifying a date range of at most 31 days)

I hope this link will be helpful.
https://help.sap.com/docs/ariba-apis/operational-reporting-api-for-procurement/view-template-structu...

BChandra3
Newcomer
0 Kudos

.

TheAnji
Explorer
0 Kudos
Thank you for response. I have created Filter Expression for Unique Names. I want this to be optional. If I don't pass Unique Name filter, Its not returning any data because of Unique Names Fiter expression, I have given "=" as * which is not valid.