Skip to main content
Solved

Set default value for a list using BPA


Forum|alt.badge.img+10

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

Best answer by kamnlk

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

 

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+9
  • Hero (Employee)
  • 117 replies
  • Answer
  • January 11, 2024

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

 


Forum|alt.badge.img+10
  • Author
  • Hero (Customer)
  • 118 replies
  • January 11, 2024

That solved it for me thank’s

 

kamnlk wrote:

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


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