Skip to main content
Question

How to make a projection function parameter optional?


Forum|alt.badge.img+10

I have a projection function which looks like below.

function GetInvoiceList List<Structure(ListInvoiceResponse)> {
   parameter CompanyId Text;
   parameter ContactPersonId Text;
   parameter CustId Text;
   parameter InvoiceId Text {
      required = [false];
   }
   parameter FromDate Date;
   parameter ToDate Date;
   parameter PageSize Integer;
   parameter PageNumber Integer;
}

As you can see InvoiceId has required marked as false. However, when I deploy this function, API explorer documentation still shows InvoiceId as required parameter.

 

How do I make a paremeter optional?

hhy38
Superhero (Customer)
Forum|alt.badge.img+16
  • Superhero (Customer)
  • January 22, 2025

Did you find the solution? I am faced with the same problem.


Forum|alt.badge.img+10
  • Sidekick (Customer)
  • February 4, 2025

Not yet. You have to specify param value, or just blank value.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings