Forum Discussion
Sorry to raise this up again, but this is the only example I could find that might be the same thing I’m running into.
Can someone explain to me why a field with local-date-time is coming in as a json with a Timestamp key as shown below? Then when I try to build an expression to parse out only what I need, the result is correct, but running preview continually returns “null”. Or if null-safe access is off it will give me an error like it can’t evaluate .Timestamp.
Hi Mellisa,
Good day, I think there is no method .toString for Date object type, you can try Date.parse($LAST_DDD.timestamp).toLocaleDateString({‘format’:‘yyyy-MM-dd’})
Thanks,
EmEm
If the dynamic nature of the pipeline parameter depends on the consumer/caller of that pipeline, then you could try something like when such pipeline is created as a task - say if it is an API task in the form of Ultra task. The consumer of that task should passed the needed value that will override what's there in the pipeline-parameter or task parameter. That's one possible way having a dynamic pipeline parameter. Otherwise, it takes what's is defined in the pipeline parameter - that's what I have seen when I work with pipelines.
- Aleksandar_A2 years agoContributor III
Hello rahulmvaidya,
You can try with the following expression in a Mapper Snap:
{[_target_column_name]:$value}
Also, you can refer to the sample attached pipeline below.
Please let me know if this helps you!
Regards,
Aleksandar!