Forum Discussion
Supratim
5 years agoContributor III
@kayla.akey I think you have to use snap type as JSONPATH like that
propertyBuilder.describe(INPUT_DATE_STR,“Date field to convert,it should be as a string”).required().expression(SnapProperty.DecoratorType.ACCEPTS_SCHEMA). expression(SnapProperty.DecoratorType.ENABLED_EXPRESSION).type(SnapType.JSONPATH).add();
and have to use INPUT_DATE_STR_EXP_PROP.eval(document) inside Process method.
@dmiller Example given in snap developer portal is very good but it will be great if you can add few more information and use cases there. Thanks.