Search for Constant Values Instances inside Logic Blocks

Ask: Ability to search for a Constant’s value inside Logic Blocks.
Scenario: We were trying to search for a specific constant value instances inside all of our customer owned logic blocks, similar to how you can search for instances of Lookups, to determine what logic blocks needed updating.
Our Current Solution: I created a PowerShell script that connects to the NW API to get the Logic Block’s JSON. In there, I scan the blocks for our particular target constant.
Example: JSON Action fragment:

"CompareToValue": "ASR",
"CompareToDataType": "Text",
"CompareToValueType": "Constant",

In this case, the script looks up the text ‘“CompareToValue”: “ASR”‘ in all of our logic blocks.

Hey Jeroham!

With Patch 25.2.07, we are rolling out MCP Code Mode, which will enable Ed or any other LLM (see Connecting Claude to Nextworld’s MCP) to create and run scripts like this from inside the platform, which will be more efficient than needing to do an API request for each iteration. Keep an eye out for that and see if it helps you!

Otherwise, you’re right, that is not a supported feature today. If you are a Nextworld customer or partner, you can work with your system administrator to submit an official enhancement request with customer support. Include a link to this post in the support ticket. If you’re not a Nextworld customer, keep an eye on release notes. We’re always making improvements.

2 Likes

Thanks! We are using cache so that API requests calls are only for updated LBs, so it is pretty efficient, but MCP might a good alternative.
I’ll check with our system admin for that request, but I reached out here first since it is just a nice to have for devs and not a business-critical need.

1 Like