Skip to main content
Question

By setting up an Action Flow to create and send a CSV, I don't want to display the timestamp within the CSV. The "formatDate" function does not work. Does anyone know, why this is happening?

  • March 13, 2024
  • 8 replies
  • 31 views

julia.oppen11
Level 5

imageimage

8 replies

julia.bauer
Level 9
Forum|alt.badge.img+6
  • Level 9
  • March 13, 2024

Hey Julia,

 

I would add this formula to your query module beforehand: LEFT(TABLE.COLUMN, 10) and then only use the formatDate(Confirmed for; DD.MM.YYYY) in the CSV module.

 

Hope this solves your issue.

 

BR

Julia


julia.oppen11
Level 5

Hi Juilia,

 

thank you for your answer. When trying this, I get the following ERROR massage:

 

image 

BR

Julia


Sverre Klein
Level 10
Forum|alt.badge.img+14

Hi @julia.oppen11,

 

To extend on @julia.bauer's solution, the LEFT operator only works with columns of type STRING. In that sense, you must first cast the datetime column to string using TO_STRING.

 

Here is some documentation TO_STRING (celonis.com)

 

Hope this will help you!

 

Kind regards,

Sverre Klein


julia.oppen11
Level 5

Hi Sverre,

 

the problem is, that I need the type Timestamp, as the date I will show in the CSV in the end, need to be the ROUND_MONTH and this is not possible with the type String.

 

BR,

Julia


matt.witty13
Level 10

Within the Create CSV module, what is the data type you're sending?

imageIf you're sending this as a date, Excel will read the timestamp in. If you send as text, it'll send in whatever format you put together.

 

I'd also recommend putting together a "Set Variable"/"Set Multiple Variables" module before the CSV setting the date format and then passing the formatted date into the CSV. I've found it runs smoother that way.

image


julia.oppen11
Level 5

Hi Matt,

 

I do not have the possibility to select a TYpe within the CSV module:

 

imageI will try to add the "Set Variable"/"Set Multiple Variables" module, but I don't know whether it solves my problem.


dennis.pflug
Level 10

@julia.oppen11 : You can see and change the data type within the Data Structure "SWF_Delivery Reliability by clicking on the three dots ans select "Edit".

 


matt.witty13
Level 10

Hi Matt,

 

I do not have the possibility to select a TYpe within the CSV module:

 

imageI will try to add the "Set Variable"/"Set Multiple Variables" module, but I don't know whether it solves my problem.

Okay where it says Data Structure, click the 3 dots.

image 

You should see 'Edit' and 'Clone'. Click Edit.

 

Edit should bring you to the screen of the format of the different columns.