I can get a GI with a single parameter to work with OData 4 using the following URL structure:
https://[instance]/t/[tenant]/api/OData/MyGI_WithParameters(Param1='value1')
However, when I try a GI that takes multiple parameters, I either get 403 or 404 errors. Here is the Metadata for each parameter as reported by OData
<Function Name="AI-CustomerGI">
<Parameter Name="CustomerIDGT" Type="Edm.String" />
<Parameter Name="DateGT" Type="Edm.DateTimeOffset" />
<Parameter Name="Employee" Type="Edm.String" />
<Parameter Name="FilterByClass" Type="Edm.Boolean" />
<Parameter Name="FilterByState" Type="Edm.Boolean" />
<Parameter Name="FilterBySalesperson" Type="Edm.Boolean" />
<ReturnType Type="Collection(GenericInquiry.AICustomerGI)" Nullable="false" />
</Function>
CustomerIDGT is a starting customer number
DateGT is a starting date (modified date)
Employee should be the AcctCD of the employee’s BAccount record.
You would think that the format would be :
https://[instance]/t/[tenant]/api/OData/MyGI_WithParameters(Param1='value1',Param2=’value2’)
But I can’t seem to get it to work.
Anyone else try something like this?