<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://accelerator.crmtogether.com/index.php?action=history&amp;feed=atom&amp;title=DI_Jint</id>
	<title>DI Jint - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://accelerator.crmtogether.com/index.php?action=history&amp;feed=atom&amp;title=DI_Jint"/>
	<link rel="alternate" type="text/html" href="https://accelerator.crmtogether.com/index.php?title=DI_Jint&amp;action=history"/>
	<updated>2026-05-19T06:45:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://accelerator.crmtogether.com/index.php?title=DI_Jint&amp;diff=2821&amp;oldid=prev</id>
		<title>Sagecrmw: Created page with &quot;There are specific commands in the Javascript Engine (JINT) relating to SageCRM Only.  getID - This is used where you have the &quot;Name&quot; value and need the ID. You would use this for an integration where Id&#039;s would not map but you could map the Names. Only one result is returned so this depends on the Name value being unique. Otherwise use querydb.   - Parameters (a) COLLECTION (b) FILTER   - returns ID value    EG   &gt;var _compId = di.getID(&#039;Company&#039;, &#039;Union Computer&#039;);   2...&quot;</title>
		<link rel="alternate" type="text/html" href="https://accelerator.crmtogether.com/index.php?title=DI_Jint&amp;diff=2821&amp;oldid=prev"/>
		<updated>2026-03-02T11:26:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;There are specific commands in the Javascript Engine (JINT) relating to SageCRM Only.  getID - This is used where you have the &amp;quot;Name&amp;quot; value and need the ID. You would use this for an integration where Id&amp;#039;s would not map but you could map the Names. Only one result is returned so this depends on the Name value being unique. Otherwise use querydb.   - Parameters (a) COLLECTION (b) FILTER   - returns ID value    EG   &amp;gt;var _compId = di.getID(&amp;#039;Company&amp;#039;, &amp;#039;Union Computer&amp;#039;);   2...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There are specific commands in the Javascript Engine (JINT) relating to SageCRM Only.&lt;br /&gt;
&lt;br /&gt;
getID - This is used where you have the &amp;quot;Name&amp;quot; value and need the ID. You would use this for an integration where Id&amp;#039;s would not map but you could map the Names. Only one result is returned so this depends on the Name value being unique. Otherwise use querydb.&lt;br /&gt;
&lt;br /&gt;
 - Parameters (a) COLLECTION (b) FILTER&lt;br /&gt;
  - returns ID value&lt;br /&gt;
  &lt;br /&gt;
EG&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;var _compId = di.getID(&amp;#039;Company&amp;#039;, &amp;#039;Union Computer&amp;#039;);&lt;br /&gt;
 &lt;br /&gt;
2. getLookupCode - In Sage CRM some fields are lookups/selects and they use codes and translations, to get the translation value from given code.&lt;br /&gt;
&lt;br /&gt;
 - Parameters (a) COLLECTION (b) SOURCE_FIELD (c) SOURCE_CODE&lt;br /&gt;
  - returns translation value from COLLECTION&lt;br /&gt;
  &lt;br /&gt;
EG&lt;br /&gt;
&lt;br /&gt;
 &amp;gt;var val=di.getlookupcode(&amp;quot;Company&amp;quot;, &amp;quot;Comp_Sector&amp;quot;,&amp;quot;Construction&amp;quot;)&lt;/div&gt;</summary>
		<author><name>Sagecrmw</name></author>
	</entry>
</feed>