Is there a way to identify what action started QCP Calculator Plugin script in Salesforce CPQ?

This post was flagged by the community and is temporarily hidden.

Hi,

This forum is used primarily for balena-related topics. From the description it’s not immediately clear that this is a topic that we can address. If this is a balena question, can you please specify, which balena OS version you’re running and which application/block you’re running? Also which hardware platform are you using?

The biggest difference between the two is the location that the script executes. When the user is in Edit Lines, then the QCP runs in the browser confined to Salesforce CPQ When it executes due to a trigger, it runs in Heroku. Perhaps you can check to see if window is defined or not.

I’m unable to test to see if this works, but you could try something like