Skip to main content

I’m trying to apply a disocunt on a customer order using workflow and i’m having trouble implementing this.

I have identify the API to call

I need first to creat the objkey then populate it the update the parent.

 Creating the Objkey  : 

 

Creation : OK

I populate the object : 



​​​​​​

 

In the trace file, IFS didn’t use DiscountNo : 

 

When executing without it, ifs ask to add it to the nested entity which i did.

When executing i get the following error : 

 

 

I do understand that i can’t add two discounts one as an ammount and the other as a percentage, but there is no discount in percentage in my call. i don’t get it.

 

to replicate via aurena : 

 

 

 

Thank’s in advance for any help 

From the information provided i can guess that the variable “DiscountAmount” is somehow created prior to the API CustOrderLineDiscountSet create operation. And this variable is inferred into the create the API task.

You can create a script task to remove that variable prior to the API task using the following way

 

There is also another option to disable this variable inferred behavior in API task by Only Explicit Parameters argument in the API task. 

 

 


thank you ​@kamnlk 


Reply