Skip to content

Instantly share code, notes, and snippets.

View mike-solomon's full-sized avatar
💭
I don't always tell Dad jokes, but when I do, he laughs.

Mike Solomon mike-solomon

💭
I don't always tell Dad jokes, but when I do, he laughs.
  • Vancouver, WA
View GitHub Profile
@mike-solomon
mike-solomon / sampleField.js
Last active September 20, 2019 22:22
sampleField
// Trigger / action code here
const methodNameToAddFieldBasedOnAbove = async (z, bundle) => {
// projectOnEachLine would be whatever the value is for that entry in
// the project dropdown
if (bundle.inputData.specificKeyYouCareAbout !== projectOnEachLine) {
// Return an empty array to not display the field
return [];
}
{
"@odata.etag": "removed",
"id": "removed",
"createdDateTime": "2019-03-21T20:02:38Z",
"lastModifiedDateTime": "2019-03-21T20:02:38Z",
"changeKey": "removed",
"categories": [],
"parentFolderId": "AQMkADAwATM3ZmYAZS0xZWJiAC04YjY3LTAwAi0wMAoALgAAA-OxI5vmNgdDhCtSRujtT90BAIUvBr0BBudHoyLUg4Vqf3sAAAIBJAAAAA==",
"birthday": null,
"fileAs": "",
{
"@odata.etag": "removed",
"id": "removed",
"createdDateTime": "2019-03-21T20:04:15Z",
"lastModifiedDateTime": "2019-03-21T20:04:15Z",
"changeKey": "removed",
"categories": [],
"parentFolderId": "AQMkADAwATM3ZmYAZS0xZWJiAC04YjY3LTAwAi0wMAoALgAAA-OxI5vmNgdDhCtSRujtT90BAIUvBr0BBudHoyLUg4Vqf3sAAAIBDgAAAA==",
"birthday": null,
"fileAs": "contact 3, test",