This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Weather Alerts Script for Google Sheets | |
| * | |
| * This script automatically fetches and updates weather alerts from the National Weather Service | |
| * for a list of ZIP codes in a Google Sheet. | |
| * | |
| * Sheet Layout: | |
| * - Column F: ZIP codes (starting from row 3) | |
| * - Column G: Weather alerts (starting from row 3) | |
| * - Cell G2: Last update timestamp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1x UDM, v1.8.3.2949, minRSSI set, Band Steering: Prefer 5G | |
| 1x US-8-60W, v5.43.18.12487 | |
| 2x BeaconHD, v4.3.21.11325. minRSSI set, Band Steering: Prefer 5G | |
| 1x Flex-Mini, v1.8.3.671 | |
| 1x Unifi Smart Plug, v1.2.1.361 | |
| 1x nanoHD (currently not in use), v4.3.21.11325 | |
| Wifi Networks | |
| Home: 2.4 & 5Ghz, Fast Roaming ON, UAPSD ON, BSS Transition ON, Proxy ARP ON. 2G and 5G minimum data rate control ON | |
| Home-IoT_2G: 2.4Ghz only, UAPSD ON, BSS Transition ON, Proxy ARP ON. 2G minimum data rate control ON |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Object_ext{ | |
| public final Object__c ob; | |
| public String objId {get;set;} | |
| public String referer {get;set;} | |
| public Project_ext(ApexPages.StandardController stdController) { | |
| referer = ApexPages.currentPage().getHeaders().get('Referer'); | |
| System.debug(referer); //Just to check! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script runat="server"> | |
| Platform.Load("Core", "1"); | |
| try { | |
| var prox = new Script.Util.WSProxy(); | |
| var guid = Platform.Function.GUID(); | |
| //Set oldname to CustomerKey of data extension you want to clone. | |
| var oldname = "Sample_Name"; | |
| //Set categoryid to determine the target folder. This can be found by hovering over the folder in the browser window and pulling the number at the end of the status bar. | |
| var categoryid = 12345; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script runat="server"> | |
| Platform.Load("Core","1"); | |
| try { | |
| var prox = new Script.Util.WSProxy(); | |
| var queryAllAccounts = true; | |
| /* Retrieve All List Info */ | |
| var objectType = "List"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %%[ | |
| VAR @Result | |
| ]%% | |
| <script runat="server"> | |
| Platform.Load("Core", "1.1.1"); | |
| try { | |
| var DEtoCopy = DataExtension.Init("Contact_Salesforce"); | |
| var jsonArray = DEtoCopy.Fields.Retrieve(); | |
| for(var i = 0; i < jsonArray.length; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IF( | |
| CurrencyField__c>= 1000000, | |
| TEXT(FLOOR(CurrencyField__c / 1000000)) & ",", | |
| "") & | |
| IF( | |
| CurrencyField__c >= 1000, | |
| RIGHT(TEXT(FLOOR(CurrencyField__c / 1000)), 3) & ",", | |
| "") & | |
| RIGHT(TEXT(FLOOR(CurrencyField__c)), 3) & "." & | |
| IF( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class createTaskFlow{ | |
| @InvocableMethod(label='Create task' description='create tasks') | |
| public static void insertTasks(List<Task> tasks) { | |
| // system.debug('tasks ' + tasks); | |
| // Note this is built for inserting just one task and is not bulkified. | |
| for (task t:tasks){ | |
| task newTask = new task(); | |
| newTask.priority = string.valueof(t.priority); | |
| newTask.status = string.valueof(t.status); | |
| newTask.ownerId = t.ownerId; |