DI Jint: Difference between revisions
From Apps for Creatio
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
<nowiki> </nowiki>- returns GUID value | <nowiki> </nowiki>- returns GUID value | ||
<nowiki> </nowiki>EG | <nowiki> </nowiki>EG | ||
<nowiki> </nowiki> >di.getGUID('AccountIndustry','name eq 'Business Services<nowiki>''</nowiki>); | <nowiki> </nowiki> >var _accInGuid = di.getGUID('AccountIndustry','name eq 'Business Services<nowiki>''</nowiki>); | ||
# getLookup | # getLookup | ||
- Parameters (a) COLLECTION (b) GUID | |||
<nowiki> </nowiki>- returns NAME field value from COLLECTION | |||
<nowiki> </nowiki>EG | |||
<nowiki> </nowiki> >var _accInGuid = di.getLookup('AccountIndustry','Id eq '11111111-1111-1111-1111-1111111111111<nowiki>''</nowiki>); |
Revision as of 08:06, 17 April 2025
There are specific commands in the Javascript Engine (JINT) relating to Creatio Only.
- getGUID
- Parameters (a) COLLECTION (b) FILTER - returns GUID value EG >var _accInGuid = di.getGUID('AccountIndustry','name eq 'Business Services'');
- getLookup
- Parameters (a) COLLECTION (b) GUID - returns NAME field value from COLLECTION EG >var _accInGuid = di.getLookup('AccountIndustry','Id eq '11111111-1111-1111-1111-1111111111111'');