Using the ServiceNow IDE I cannot get Now.include to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 06:36 AM
As you can see its getting the red squiggle and the error is:
"Property 'include' does not exist on type 'typeof Now'."
I got Now.include from the docs: https://www.servicenow.com/docs/bundle/yokohama-application-development/page/build/servicenow-sdk/re...
I've tried to find if there is an import I'm missing somewhere but cannot find it even searching through the types.
I am on a PDI.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2025 02:33 AM
No love on this?
I was using the latest version of the SDK 3.0.2 which should have included the newly added Now.include function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2025 09:15 AM - edited 06-11-2025 10:58 AM
Hi James,
Do you know if either of these sys_properties are configured on your instance:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 12:15 AM
Okay seems something was up with that workspace. I created a new one and i got it to work.
The old one still doesn't work even though it has the same dependencies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 04:31 PM
Glad the new workspace is working normally.
Can you open the `settings.json` for the broken workspace and share it? (assuming there's no secrets in it of course). You can also access it from the Gear Icon -> Settings and you can access the JSON file by clicking this thing in the top right.
That's very weird that one workspace would work fine and another wouldn't. Is it possible some feature was turned off in the workspace settings?