Field Scripting Examples
Convert Time Zone
object ScriptedField() { String source = Starfish.OriginData["DATETIMERECEIVED"].ToString(); DateTime dt = Convert.ToDateTime(source); TimeZoneInfo timeInfo = TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time"); return ...
Download File
External Assemblies To download a file in a C# scripted function, you must first go to the .NET Global section (after you choose to create a global script as found HERE), and in the External Assemblies box, enter the ...
Working with MultiSelect Lists
For this example we use SugarCRM, where MultiSelect fields are supplied as a JSON string, i.e. [{"value1","value2"} First, I check to make sure my origin value ('reg') and existing value in Sugar ('existing') are not empty, as either case is easy to ...