Skip to main content
Question

How to make a projection function parameter optional?

  • April 14, 2023
  • 2 replies
  • 94 views

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?

2 replies

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
  • Author
  • Sidekick (Customer)
  • February 4, 2025

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