Skip to main content
Solved

Create Customer Order Header Workflow

  • December 26, 2024
  • 7 replies
  • 128 views

Forum|alt.badge.img+10

i’m probably missing something.

 

Trying to make a simple call to CustomerOrderHandling to creat the customer order Header.

tried it with simple quotes and without ‘ 

Always having error

 

 

When trying the same this with postman my order is created

any Idea please?

 

 

Best answer by kamnlk

Alternatively, you can also use the supported date format directly with the api task too, In that way you dont need to use a script task to do additional processing

 

Workflow supports below date formats.

  • dd/MM/yyyy (22/09/2023)
  • yyyy-MM-dd (2023-09-21)

supported datetime formats

  • yyyy-MM-dd-HH.mm.ss (2023-09-21-07.04.39)
  • yyyy-MM-dd-HH.mm.ss.SSSSSSS (2023-09-22-08.04.39.0000000)

 

eg:

 

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

7 replies

MWitczak
Hero (Customer)
Forum|alt.badge.img+10
  • Hero (Customer)
  • 60 replies
  • December 26, 2024

We got around this by assigning the date field to a variable in a script:

 

TodayDate and WantedDate in our workflow.

 

We also have a system defined .bpmn that was helpful (DatesExample).  If you have that in your Workflows, it may be of some use as well?


Forum|alt.badge.img+10
  • Hero (Partner)
  • 187 replies
  • December 26, 2024

@IFSRUNINNOVAL its your wanted delivery date.

first remove it from your call if possible to see if it works.
 

Then play with the date formats but best luck will be to just use yyyy-mm-dd

 

otherwise some casting will be required. ​@Lahirumala de Mel 


Forum|alt.badge.img+10
  • Author
  • Hero (Customer)
  • 120 replies
  • December 27, 2024

The ValueOf has done it for me thank’s.

It’s weird how using the rest api we do not need to pass the date as timestamp but via workflow we should pass the date as timestamp ​@Lahirumala de Mel 

 

@MWitczak your workflow was to create customerOrder please?

 

I’m trying to creat the line.

In postman is ok, but in the workflow, should i put the body as entity parameters or nested entity parameters please?

 

 

 


Forum|alt.badge.img+10
  • Author
  • Hero (Customer)
  • 120 replies
  • December 27, 2024

I was able to creat the line but the workflow asked me to define the LineNo.


Forum|alt.badge.img+10
  • Author
  • Hero (Customer)
  • 120 replies
  • December 27, 2024

 

 

 


Forum|alt.badge.img+9
  • Hero (Employee)
  • 121 replies
  • Answer
  • January 1, 2025

Alternatively, you can also use the supported date format directly with the api task too, In that way you dont need to use a script task to do additional processing

 

Workflow supports below date formats.

  • dd/MM/yyyy (22/09/2023)
  • yyyy-MM-dd (2023-09-21)

supported datetime formats

  • yyyy-MM-dd-HH.mm.ss (2023-09-21-07.04.39)
  • yyyy-MM-dd-HH.mm.ss.SSSSSSS (2023-09-22-08.04.39.0000000)

 

eg:

 


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

thank’s ​@kamnlk i’ll try it


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