- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 10:33 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 10:38 PM
Hello @Naman Srivastav ,
You can give a try to the script below and see how it works for you.
(function(engine) {
engine.rootNode.visit(function(node) {
if (
node.getTypeName() === "STRING" &&
node.getParent() &&
node.getParent().getTypeName() === "CALL" &&
node.getParent().getFirstChild() &&
node.getParent().getFirstChild().getTypeName() === "NAME" &&
node.getParent().getFirstChild().getNameIdentifier() === "gs.getMessage" &&
node.getValue() === 'yyyy-MM-dd'
) {
engine.finding.incrementWithNode(node.getParent());
}
});
})(engine);
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks,
Aniket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 02:20 AM
Hello @Naman Srivastav ,
Glad that my response was helpful to resolve your query😉.
Can you please mark my solution as helpful and accept my solution as well and close the thread this will help future readers as well.
Thanks & Regards,
Aniket