Skip to content

New Scripts: SetWithDuplicates - #45952

Open
mandarnaik016 wants to merge 3 commits into
demisto:contrib/mandarnaik016_SetWithDuplicatesfrom
mandarnaik016:SetWithDuplicates
Open

mandarnaik016 wants to merge 3 commits into
demisto:contrib/mandarnaik016_SetWithDuplicatesfrom
mandarnaik016:SetWithDuplicates

Conversation

@mandarnaik016

@mandarnaik016 mandarnaik016 commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Status

  • Ready

Description

Set a value in context under the key, allowing for duplicate values to be retained.

The !Set command does not append duplicate values to a list, even when append=true is specified.
For example, if a list contains 9 values, including duplicate or similar values, executing !Set within a playbook or sub-playbook updates the key with only the unique values. As a result, the resulting list may lose duplicate entries, even though the expected behavior is to preserve all 9 values.

default_set Fig. Set



set_with_duplicates Fig. SetWithDuplicates

Must have

  • Documentation
    relates: link to the issue

@content-bot content-bot added Contribution Thank you! Contributions are always welcome! External PR Community Support Level Indicates that the contribution is for Community supported pack labels Sep 18, 2026
@content-bot
content-bot changed the base branch from master to contrib/mandarnaik016_SetWithDuplicates September 18, 2026 10:36
@content-bot

Copy link
Copy Markdown
Contributor

Thank you for your contribution. Your generosity and caring are unrivaled! Make sure to register your contribution by filling the Contribution Registration form, so our content wizard @kamalq97 will know the proposed changes are ready to be reviewed.
For your convenience, here is a link to the contributions SLAs document.

@content-bot

Copy link
Copy Markdown
Contributor

Hi @mandarnaik016, thanks for contributing to the XSOAR marketplace. To receive credit for your generous contribution please follow this link.

@content-bot

Copy link
Copy Markdown
Contributor

🤖 AI-Powered Code Review Available

Hi @kamalq97, you can leverage AI-powered code review to assist with this PR!

Available Commands:

  • @marketplace-ai-reviewer start review - Initiate a full AI code review
  • @marketplace-ai-reviewer re-review - Incremental review for new commits

@content-bot content-bot added Community Contribution Form Filled Whether contribution form filled or not. labels Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Support Level Indicates that the contribution is for Community supported pack Community Contribution Form Filled Whether contribution form filled or not. Contribution Thank you! Contributions are always welcome! External PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants