You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ The button can be made available to users via a quick action powered by the `jsB
8
8
9
9
### The syntax
10
10
11
-
This is the fun part. The syntax is quite permissive, with some restrictions, which I will cover below. I haven't, obviously, explored all possible scenarios and the information may still be incomplete. Please raise a PR if you come across something I haven't covered.
11
+
This is the fun part. The syntax is quite permissive, with some restrictions, which I will cover below. I haven't, obviously, explored all possible scenarios and the information may still be incomplete. Please raise an issue if you come across something I haven't covered.
* Note how the syntax is linear for SOQL and DML. Coupled with JavaScript's support for manipulating arrays, this makes it easier to manipulate data, even compared to Apex in several instances.
46
+
* SOQL and DML statements must be enclosed in `||`. Semi-colon can be inside or outside the `||`
47
+
* Upsert and Update statements must be qualified with the SObjectType thus `|| insert Account(accts) ||;`
48
+
* SOQL statements are parsed using template literals. Any arguments should follow the appropriate syntax `${argument}`
49
+
* SOQL and DML statements may not be wrapped in a function.
50
+
51
+
### Known Limitations
52
+
53
+
* Single-line comments are not supported.
54
+
* Haven't tested DML with date, datetime, boolean, geolocation and other compound fields. I will update this section as I do so.
55
+
* Explicit use of async/await, Promises and Generators is not supported, atm.
56
+
* DML on Files, Attachments, Documents, etc. is not supported
44
57
45
58
### Developers: Extending to more than one button per SObject Type
0 commit comments