<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic can't add artifact field with message parameter in Splunk SOAR</title>
    <link>https://community.splunk.com/t5/Splunk-SOAR/can-t-add-artifact-field-with-message-parameter/m-p/680662#M1444</link>
    <description>&lt;P&gt;hello all!&lt;/P&gt;&lt;P&gt;I am trying to add&amp;nbsp; field to an artifact with "update artifact" action (phantom app).&lt;/P&gt;&lt;P&gt;i am trying to add a 'message parameter' in the 'value' at the cef_json field:&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;{"new_field": {0}}&lt;/P&gt;&lt;P&gt;but unfortunately I get "key_error" and the action failed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can I solve it?&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2024 08:56:08 GMT</pubDate>
    <dc:creator>meshorer</dc:creator>
    <dc:date>2024-03-14T08:56:08Z</dc:date>
    <item>
      <title>can't add artifact field with message parameter</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/can-t-add-artifact-field-with-message-parameter/m-p/680662#M1444</link>
      <description>&lt;P&gt;hello all!&lt;/P&gt;&lt;P&gt;I am trying to add&amp;nbsp; field to an artifact with "update artifact" action (phantom app).&lt;/P&gt;&lt;P&gt;i am trying to add a 'message parameter' in the 'value' at the cef_json field:&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;{"new_field": {0}}&lt;/P&gt;&lt;P&gt;but unfortunately I get "key_error" and the action failed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can I solve it?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 08:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/can-t-add-artifact-field-with-message-parameter/m-p/680662#M1444</guid>
      <dc:creator>meshorer</dc:creator>
      <dc:date>2024-03-14T08:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: can't add artifact field with message parameter</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/can-t-add-artifact-field-with-message-parameter/m-p/680663#M1445</link>
      <description>&lt;P class="lia-align-left"&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/261760"&gt;@meshorer&lt;/a&gt;&amp;nbsp; when using the format input or format block for JSON you need to use double { &amp;amp; } and encase the value in " such as the below (which I just tested):&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;SPAN&gt;{{"new_field": "{0}"}}&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Note that you don't need to double the {&amp;amp;} on the {0} as it's a replacement element but the actual JSON elements will need escaping in this way, even if you had nested JSON like the below:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{{"new_field": {{"sub_field": "{0}"}}}}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;SPAN&gt;-- Hope this helps! If so please mark as a solution for future SOARers. Happy SOARing! --&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 09:05:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/can-t-add-artifact-field-with-message-parameter/m-p/680663#M1445</guid>
      <dc:creator>phanTom</dc:creator>
      <dc:date>2024-03-14T09:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: can't add artifact field with message parameter</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/can-t-add-artifact-field-with-message-parameter/m-p/680666#M1446</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222170"&gt;@phanTom&lt;/a&gt;&amp;nbsp;thak you so much!&lt;/P&gt;&lt;P&gt;could you also tell me how to add two fields in the same action?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 09:19:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/can-t-add-artifact-field-with-message-parameter/m-p/680666#M1446</guid>
      <dc:creator>meshorer</dc:creator>
      <dc:date>2024-03-14T09:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: can't add artifact field with message parameter</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/can-t-add-artifact-field-with-message-parameter/m-p/680667#M1447</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/261760"&gt;@meshorer&lt;/a&gt;&amp;nbsp;just add more keys &amp;amp; values to the JSON string&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{{"new_field1": "{0}", "new_field2": "{1}"}}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 09:22:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/can-t-add-artifact-field-with-message-parameter/m-p/680667#M1447</guid>
      <dc:creator>phanTom</dc:creator>
      <dc:date>2024-03-14T09:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: can't add artifact field with message parameter</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/can-t-add-artifact-field-with-message-parameter/m-p/680668#M1448</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222170"&gt;@phanTom&lt;/a&gt;&amp;nbsp; yeah I got confused with the escaped "{} ".&lt;/P&gt;&lt;P&gt;you are the best!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 09:25:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/can-t-add-artifact-field-with-message-parameter/m-p/680668#M1448</guid>
      <dc:creator>meshorer</dc:creator>
      <dc:date>2024-03-14T09:25:53Z</dc:date>
    </item>
  </channel>
</rss>

