DI Jint: Difference between revisions
From Apps for Creatio
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
# getGUID - This is used where you have the "Name" value and need the Guid ID. You would use this for an integration where Id's would not map but you could map the Names. | # getGUID - This is used where you have the "Name" value and need the Guid ID. You would use this for an integration where Id's would not map but you could map the Names. | ||
- Parameters (a) COLLECTION (b) FILTER | - Parameters (a) COLLECTION (b) FILTER | ||
<nowiki> </nowiki>- returns GUID value | <nowiki> </nowiki>- returns GUID value | ||
Line 8: | Line 9: | ||
# getLookup - This is used where you query a collection but need the Name value so a person can read this rather than the Guid value. | |||
- Parameters (a) COLLECTION (b) GUID | - Parameters (a) COLLECTION (b) GUID | ||
<nowiki> </nowiki>- returns NAME field value from COLLECTION | <nowiki> </nowiki>- returns NAME field value from COLLECTION | ||
<nowiki> </nowiki>EG | <nowiki> </nowiki>EG | ||
<nowiki> </nowiki> >var _accInName = var _accInName = di.getLookup("OpportunityStage","c2067b11-0ee0-df11-971b-001d60e938c6"); | <nowiki> </nowiki> >var _accInName = var _accInName = di.getLookup("OpportunityStage","c2067b11-0ee0-df11-971b-001d60e938c6"); |
Revision as of 06:48, 9 May 2025
There are specific commands in the Javascript Engine (JINT) relating to Creatio Only.
- getGUID - This is used where you have the "Name" value and need the Guid ID. You would use this for an integration where Id's would not map but you could map the Names.
- Parameters (a) COLLECTION (b) FILTER - returns GUID value EG >var _accInGuid = di.getGUID("AccountIndustry","Business Services"); # getLookup - This is used where you query a collection but need the Name value so a person can read this rather than the Guid value. - Parameters (a) COLLECTION (b) GUID <nowiki> - returns NAME field value from COLLECTION EG >var _accInName = var _accInName = di.getLookup("OpportunityStage","c2067b11-0ee0-df11-971b-001d60e938c6");