Expand my Community achievements bar.

SOLVED

Can we add Current timestamp dynamically in mapping set

Avatar

Level 5

Hi All,

 

We are using parquet file format and in mapping set I am trying to insert current timestamp into one of the attributes.

Tried below Mapping configuration

 

 

 "sourceType""ATTRIBUTE",
          "source""current_timestamp()",
          "destination""_XXXXX.systemTime"
      }
 
"sourceType""ATTRIBUTE",
          "source""{{now()}}",
          "destination""_XXXXX.systemTime"
      }
 
Timestamp is not ingested. any help will be appreciated!!
1 Accepted Solution

Avatar

Correct answer by
Level 5

it worked with below 

"sourceType""EXPRESSION",
          "source""{{now()}}",
          "destination""_XXXXX.systemTime"
      }
 
Thanks for your inputs

View solution in original post

6 Replies

Avatar

Community Advisor

Hi @Indra 

 

you may want to check out the "date and time functions" section in the documentation 

 

https://experienceleague.adobe.com/en/docs/experience-platform/data-prep/functions

 

IMG_9312.jpeg

 

 

 

Cheers from Switzerland!


Avatar

Level 5

Tried, not working 

Avatar

Community Advisor

Hi @Indra 

just tried to reproduce this by a datastream mapping with now() to prop9 in the datastream mapping configuration.

 

bjoern__koth_1-1736400996697.png

 

In my assurance session, I can see the timestamp being mapped

 

bjoern__koth_0-1736400948696.png

 

Waiting for the data to show in AA, but I am fairly certain that this should work at least on that side.

 

Wondering whether why it should be any different in your mapping.

Else, I would reach out to support about this

Cheers from Switzerland!


Avatar

Level 5

I am trying to set current date in mapping set and using API to set this.

 

foundation/conversion/mappingSets

Avatar

Correct answer by
Level 5

it worked with below 

"sourceType""EXPRESSION",
          "source""{{now()}}",
          "destination""_XXXXX.systemTime"
      }
 
Thanks for your inputs

Avatar

Administrator

@Indra Did you find the suggestions helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!



Kautuk Sahni