<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_note_set_object_id</id>
	<title>Truxton note set object id - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_note_set_object_id"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_note_set_object_id&amp;action=history"/>
	<updated>2026-09-09T17:37:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_note_set_object_id&amp;diff=8429&amp;oldid=prev</id>
		<title>Sam at 09:39, 15 April 2024</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_note_set_object_id&amp;diff=8429&amp;oldid=prev"/>
		<updated>2024-04-15T09:39:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 09:39, 15 April 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l13&quot; &gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt;==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The string representation of a [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID.]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The string representation of a [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID.]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This will be stored in the &amp;lt;code&amp;gt;[ObjectID]&amp;lt;/code&amp;gt; column of the &amp;lt;code&amp;gt;[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;InvestigationNote&lt;/del&gt;]&amp;lt;/code&amp;gt; table.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This will be stored in the &amp;lt;code&amp;gt;[ObjectID]&amp;lt;/code&amp;gt; column of the &amp;lt;code&amp;gt;[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;InvestigatorNote&lt;/ins&gt;]&amp;lt;/code&amp;gt; table.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The value should come from the &amp;lt;code&amp;gt;[ID]&amp;lt;/code&amp;gt; column of many tables in the database.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The value should come from the &amp;lt;code&amp;gt;[ID]&amp;lt;/code&amp;gt; column of many tables in the database.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_note_set_object_id&amp;diff=8422&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;This attaches the note to an object in Truxton. This, combined with &lt;code&gt;truxton_note_set_object_type()&lt;/code&gt; allows Truxton to associate a note with anything.  =Syntax=...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_note_set_object_id&amp;diff=8422&amp;oldid=prev"/>
		<updated>2024-04-15T09:29:06Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This attaches the note to an object in Truxton. This, combined with &amp;lt;code&amp;gt;&lt;a href=&quot;/Truxton_note_set_object_type&quot; title=&quot;Truxton note set object type&quot;&gt;truxton_note_set_object_type&lt;/a&gt;()&amp;lt;/code&amp;gt; allows Truxton to associate a note with anything.  =Syntax=...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This attaches the note to an object in Truxton.&lt;br /&gt;
This, combined with &amp;lt;code&amp;gt;[[truxton_note_set_object_type]]()&amp;lt;/code&amp;gt; allows Truxton to associate a note with anything.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
void truxton_note_set_object_id( uint64_t note_handle, char const * id );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;note_handle&amp;lt;/code&amp;gt;==&lt;br /&gt;
This handle comes from calling &amp;lt;code&amp;gt;[[truxton_note_create]]()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt;==&lt;br /&gt;
The string representation of a [https://en.wikipedia.org/wiki/Universally_unique_identifier GUID.]&lt;br /&gt;
This will be stored in the &amp;lt;code&amp;gt;[ObjectID]&amp;lt;/code&amp;gt; column of the &amp;lt;code&amp;gt;[InvestigationNote]&amp;lt;/code&amp;gt; table.&lt;br /&gt;
The value should come from the &amp;lt;code&amp;gt;[ID]&amp;lt;/code&amp;gt; column of many tables in the database.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;7&amp;quot;&amp;gt;&lt;br /&gt;
void create_note( void )&lt;br /&gt;
{&lt;br /&gt;
   uint64_t truxton = truxton_create();&lt;br /&gt;
&lt;br /&gt;
   uint64_t note = truxton_note_create( truxton_handle );&lt;br /&gt;
&lt;br /&gt;
   truxton_note_set_object_id( note, &amp;quot;65feb292-7995-137d-77cb-3ed80000000a&amp;quot; );&lt;br /&gt;
   truxton_note_set_investigation_id( note, &amp;quot;01da7796-a010-3685-0000-018902cb3b22&amp;quot; );&lt;br /&gt;
   truxton_note_set_text( note, &amp;quot;This is an interesting file.&amp;quot; );&lt;br /&gt;
   truxton_note_set_object_type( note, OBJECT_TYPE_FILE );&lt;br /&gt;
&lt;br /&gt;
   if ( truxton_note_save( note ) == 0 )&lt;br /&gt;
   {&lt;br /&gt;
      printf( &amp;quot;Cannot save investigation note to the database.\n&amp;quot; );&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   truxton_note_destroy( note );&lt;br /&gt;
   truxton_destroy( truxton );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>