Question

Is there any function to get the property type of the property like date or datetime or text etc in Data Transform

Is there any function to get the property type of the properties like date or datetime or text etc in Data Transform. I have a requirement to check if the property is Date then i have to follow the some logic etc.

***Edited by Moderator: Lochan to update platform capability tags***

Comments

Keep up to date on this post and subscribe to comments

July 19, 2019 - 10:45am

Hello, 

I don't think we have such function. I guess you could do it with native Java but I wouldn't recommend it. 

Can we understand your requirement here?

Pega
July 19, 2019 - 10:49am

Hi,

I'm not sure if you could use these directly in a data transform, but the following methods are available for ClipboardProperty objects via the engine APIs, which you could use in your own function, or in a java step in an activity:

char getType()
Returns the data type of this property.
java.lang.String getTypeName()
Returns the English name of this property's type.

You can find more information in the built in Help under the "?" or "Resources" menu (depending on your version) in the Dev studio, under the "Engine API" option.

Hope this helps!

-Kurt

July 19, 2019 - 11:23am

@MarcLasserre: I am uploading the image. from the pynote string, i want to get the value of property type then if property type is Date then i want to do the format date with dd.MM.yyyy

September 23, 2019 - 6:35am
Response to SridharK7848

Did u get a solution for this?can you please suggest