Code Blocks Break in Portal View but works on UI16ProblemThe customer is experiencing an issue where using custom code block is working fine on UI16 but not in portal The logic is to display a button inside of the activity stream that was saved. Code used on the UI16 is custom javascript/Ajax Root CauseThe root cause of the issue is that JavaScript injection will not work on the portal, and both UI16 and Portal use different frameworks. It is not expected to have the code working on UI16 and the Service Portal simultaneously due to these framework differences.Steps to ResolveTo resolve this issue, the customer needs to rewrite or adapt the logic to use portal-compatible code. The portal uses Portal widgets or Angular controllers, and the customer must ensure that the code is compatible with these frameworks.