Best Way to create a Property Programmatically?

I need a way of creating Properties dynamically - (most probably) using a Pega Activity.

One approach I have tried is to dynamically construct a Page of type 'Rule-Obj-Property' and save it - but I'm not sure that tickles all the right caches / takes proper care of validation etc.




Keep up to date on this post and subscribe to comments

October 18, 2019 - 10:50am


I think I would try to open an existing one as a template and change key details before saving again.

October 27, 2019 - 10:33pm
Response to MarcLasserre_GCS

I have done this method when I had to create 200+ properties in one section for performance PoC. 

October 18, 2019 - 1:38pm

John, you could probably check how properties get created when you add fields under Data Model tab in Case Designer. One of the activities involved is Embed-Fields.pzCreateOrUpdateProperty.