Query Dataset and Salesforce Guide
There seems to be no clear answer to querying the dataset. What does the URL look like? I don’t want to generate data, I want to query a phone number or a number field and return the record row. Can...
View ArticleSumming up a field from the innermost JSON node and displaying the total in...
How do we modify the formula if we have to sum up the values at 3 levels. Tried something like serviceline.productgroup.map {|l| l[‘amount’]}.sum and serviceline.productgroup.map {|l||l|...
View ArticlePOST generation of SQL insert format returns error?
When using a POST to the generate endpoint (eg: https://api.mockaroo.com/api/generate.sql?key=ABCDEFG&schema=mySchemaName) specifying the SQL type results in an error: {“error”:“undefined method...
View ArticleUploading a schema
Is there a way to upload a schema, using json or something so that I don’t have to manually use the UI for large schemas over and over again?
View ArticleUploading a schema
You have an API available, check it out here- Mockaroo - Random Data Generator and API Mocking Tool | JSON / CSV / SQL / Excel
View ArticleUploading a schema
You have an API available to generate data with options to reference an existing schema or send your schema in the request, check it out here: Mockaroo - Random Data Generator and API Mocking Tool |...
View ArticleError with Elsif statement
Hi everyone, Thanks mockaroo for all you do! I’m getting a syntax error with the following: if catalog_object_id == ‘TR24’ then ‘Tofu Rice’ elsif catalog_object_id == ‘VN15’ then ‘Vermicelli Noodles’...
View ArticleUsing Mockaroo API with Salesforce
Hi All, I know Salesforce isn’t necessarily the topic of conversation here, but I have never used code before and am really struggling with the API feature here and trying to get it to “talk” to...
View ArticleFeature Request: Datefield from and to could be used independently?
When specifying a datetime type, if you don’t enter the from and to dates you get ‘error: invalid date “”’ Being able to specify a date range is nice, but it would be nice if: Not specifying either...
View ArticleRegular expressions not working
I am unable to use regular expressions as field types. Here’s my schema. The RegExp for the discord_id seems to work, but not the one for shop.items.name or shop.items.description.
View ArticleDid Not Connect: Potential Security Issue
Hello! I haven’t used Mockaroo for a little while, and came back today to try some things out. Using the site itself appears fine, but using a generated API endpoint returns a SEC ERROR UNKNOWN ISSUER...
View ArticleUsing git to store Mockaroo code
Is anyone using git to manage their Mockaroo code (schema.json etc…)? Are you using API’s somehow to integrate between Mockaroo and git?
View ArticleDetermine the value in one field based on the value from another field (both...
Anyone knows how to determine the value in one field based on the value from another field, and infact, both of these fields are using Custom List. For instance, each meal from a restaurant has a...
View ArticleNeed to create a dependent list
Hello Members I wanted to create a dependent list with multiple values like , if my column 1 is “Laptops” then Column 2 should be one of random (HP,ASUS,DELL,Apple) If it is “Console” , column 2...
View ArticleJson with Data and Error
hi I want to genarate response like this { "data": [ { "user": "Hunt", "success": 18, "failure": 12, }, { "user": "Juliette", "success": 9, "failure": 14, } ] } what should I do current response [ {...
View ArticleJson with Data and Error
You can’t put your entire dataset in a single object (unless its very small), but you can nest fields in an array by doing something like this: Mockaroo - Random Data Generator and API Mocking Tool |...
View ArticleFeature Request: Datefield from and to could be used independently?
I guess the question here would be what does it truly mean to have no restriction? Would a date 2 billion years in the past or future be acceptable? I don’t think there is a sensible default here, so...
View ArticleCannot Run 'if condition'
if take_away_item ==‘1’ then 1*total_items end here is the formula, but the generated data always show: error: Field ‘take_away_item’ not found (I have created that field alrdy) if __bread...
View ArticleMy first row is getting ignored when providing dataset when trying to...
Does anyone know why my first is row is getting skipped or getting ignored when trying to generate my SQL query using my dataset ???
View Article