Solved

Set default value for a list using BPA

  • 11 January 2024
  • 2 replies
  • 118 views

Userlevel 1
Badge +3

I’m trying to set a default value for the Supplier Invoice Consideration list on the Inventory Part Page using BPA.

 

 

The BPA is able to set the note to Ignore Invoice Price, but is not able to put that value in the Supplier Invoice consideration

 

When adding execution.setVariable('InvoiceConsideration', 'Ignore Invoice Price');

and the variable in the ExportValue Section I get the following error 

 

InventoryPart/Form (server error)
Error while serializing contents.

 

see file (serializingBPA)

 

 

the field is present in the REST CALL response : 

….

    "TechnicalCoordinatorId": null,
    "InvoiceConsideration@odata.type": "#IfsApp.InventoryPartHandling.InvoiceConsideration",
    "InvoiceConsideration": null,
    "MaxActualCostUpdate@odata.type": "#Decimal",
    "MaxActualCostUpdate": null,

….

see file (defaultPartResponse.txt)

 

Thnak’s in advance for your help

icon

Best answer by kamnlk 11 January 2024, 11:43

View original

2 replies

Userlevel 3
Badge +5

In here InvoiceConsideration is an Enum value, so you need to use the correct key value to get the desired behavior.

 

 from the api docs you can get that value 

 

and in the workflow designer

 

Userlevel 1
Badge +3

That solved it for me thank’s

 

In here InvoiceConsideration is an Enum value, so you need to use the correct key value to get the desired behavior.

 

 from the api docs you can get that value 

 

and in the workflow designer

 

 

Reply