Skip to main content
Solved

Apply Discount on Customer Order using Workflow

  • December 31, 2024
  • 2 replies
  • 83 views

Forum|alt.badge.img+10

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 

Best answer by kamnlk

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. 

 

 

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 1, 2025

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. 

 

 


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

thank you ​@kamnlk 


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