Skip to main content
Solved

URL format for ODataV4 With a GI with multiple parameters

  • June 11, 2025
  • 1 reply
  • 83 views

JKurtz29
Varsity II
Forum|alt.badge.img+1

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?

 

Best answer by JKurtz29

Multiple parameters is not the issue.  That is working.  The issue I am having deals with properly formatting DateTimes for OData parameters.  I will open a new question for that as it’s quite specific.

1 reply

JKurtz29
Varsity II
Forum|alt.badge.img+1
  • Author
  • Varsity II
  • Answer
  • June 11, 2025

Multiple parameters is not the issue.  That is working.  The issue I am having deals with properly formatting DateTimes for OData parameters.  I will open a new question for that as it’s quite specific.