Pega - Sections Interview Questions and Answers
1.What is the best practice of creating sections in Work class or Data Class?
Create sections in Data classes and use them into work class by using different page reference.
•One disadvantage with this approach is, we need to make sure that the reference page must be created on clipboard by the time sections loads.
2.How to include a flow action into section?
This is by default not possible. But we can achieve this by using an OOTB section "pxLocalAction"
![1664137636644.png 1664137636644.png](https://alljobsinfo.net/data/attachments/0/50-6e557a051a141abc99bd6baf518581bf.jpg)
![1664137647279.png 1664137647279.png](https://alljobsinfo.net/data/attachments/0/51-33395f0d0e4e14ddf1039237ffc14317.jpg)
![1664137665569.png 1664137665569.png](https://alljobsinfo.net/data/attachments/0/52-0cc71d9eccad16b574a8a8ab8da7f4f7.jpg)
![1664137678718.png 1664137678718.png](https://alljobsinfo.net/data/attachments/0/53-ea2a044ba02167ac49130ecb15a0aeab.jpg)
Save.
Run the flow
![1664137695820.png 1664137695820.png](https://alljobsinfo.net/data/attachments/0/54-4dd74b12fa7dae1a190810cd44e03641.jpg)
![1664137733621.png 1664137733621.png](https://alljobsinfo.net/data/attachments/0/55-f6c0ac3afe28d2215beef8f47bda2aae.jpg)