Skip to content

Instantly share code, notes, and snippets.

@dcinzona
Created December 10, 2021 04:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcinzona/921f52b821436903c6e08f1c05c684dd to your computer and use it in GitHub Desktop.
Save dcinzona/921f52b821436903c6e08f1c05c684dd to your computer and use it in GitHub Desktop.
- plugin: snowfakery.standard_plugins.Salesforce.SOQLDataset
- plugin: snowfakery.standard_plugins.Salesforce.SalesforceQuery
- macro: account
fields:
__user:
SOQLDataset.shuffle:
#SalesforceQuery.random_record:
fields: Id, LastName
from: User
where: IsActive = true
OwnerId: ${{__user.Id}}
Name: ${{__user.LastName}}
- plugin: snowfakery.standard_plugins.Salesforce.SOQLDataset
- plugin: snowfakery.standard_plugins.Salesforce.SalesforceQuery
- include_file: account.macro.yml
- object: Account
include: account
fields:
__user:
SOQLDataset.shuffle:
#SalesforceQuery.random_record:
fields: Id
from: User
where: IsActive = true LIMIT 10
OwnerId: ${{__user.Id}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment