Examples of using Starfish Class Functions In Javascript: Difference between revisions

From Starfish ETL
Jump to navigation Jump to search
(Created page with "This code was used to lookup a value inside of SugarCRM using the Sugar REST connector. <source lang="javascript"> function scriptedField() { var res = ""; res = vals["Branc...")
(No difference)

Revision as of 22:10, 2 May 2018

This code was used to lookup a value inside of SugarCRM using the Sugar REST connector.

function scriptedField() {
	var res = "";
	res = vals["Branch Name"];
	res = SmartLookup("TA6_Branch","id","[{\"name\":\"" + res + "\"}]");
	return res;
}