How To Create Custom Smart Shape

Hello Team,

We are planning to create a reusable functionality process as a smart shape, so that wherever needed we can use the smart shape in flow for achieving the business easily..

We are not able to find any document (or) link which will show how to create custom smart shape in pega.

If anyone knows how to create custom smart shape, could you please share the steps (or) document..

Thanks In Advance..

Hi @Gunasekaran_Baskaran,

We have the pyExtendedAPIs navigation rule available as an extension for the addition of custom smart shapes.

Where you need to add one item and include on-click actions as the run script with the below values.

Here, We need to pass our custom utility name in the place of svfCreatePDF,

2nd script details are function name “ViewerManager.executeAction” and value is script:{name:\u0022addNode\u0022,type:\u0022Utility\u0022,args:{apiName:\u0022pzAttachContent\u0022}}

This will add a custom smart shape to the flow.

Regards,

K Chandra Prakash.

@KAMINENICHANDRAP

Thanks for your response. I have tried the same what you have mentioned in comments, but getting exception..

Attached screen-shot for reference..

Hi @Gunasekaran_Baskaran,

Could you please mention the second function in quotes?

“ViewerManager.executeAction”

Regards,

K Chandra Prakash.

@KAMINENICHANDRAP

Thanks much for your help.. It worked…

@Gunasekaran_Baskaran

@Damien

Thanks…