I'm not sure if its the best category, I couldn't find appropriate one.
Hello,
I created a client-script to open a popup -> allow user to select value -> populate all filtered rows with this value. The issue is that I can't get value from popup back to the script.
In the script I have set up the communication via postMessage and addEventListener and it works fine on the script -> pop-up way but pop-up -> script communication doesn't work.
*ss from client script that should catch the message. Pop-up is opened after the listener is added globally
*part from pop-up that should send the value back. The log is returned in the console and pop-up closes.
I have checked the script multiple times form JS point it should look without problems so I think there is something about how it works with in Power Platform that I don't understand, my idea is that after opening the pop-up the script is 'running' and ends before message gets posted so the part after that dont' run.