Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 12 additions & 14 deletions messages/graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,22 @@ Run any valid GraphQL statement via the /graphql [API](https://developer.salesfo

- Runs a mutation to create an Account, with an `example.txt` file, containing

```text
mutation AccountExample{
uiapi {
AccountCreate(input: {
Account: {
Name: "Trailblazer Express"
}
}) {
Record {
Id
Name {
value
mutation AccountExample{
uiapi {
AccountCreate(input: {
Account: {
Name: "Trailblazer Express"
}
}) {
Record {
Id
Name {
value
}
}
}
}
}
}
```

<%= config.bin %> <%= command.id %> --body example.txt

Expand Down
10 changes: 4 additions & 6 deletions messages/rest.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ Make an authenticated HTTP request to Salesforce REST API and print the response

- or with a file 'info.json' containing

```json
{
"Name": "Demo",
"ShippingCity": "Boise"
}
```
{
"Name": "Demo",
"ShippingCity": "Boise"
}

<%= config.bin %> <%= command.id %> 'sobjects/account' --body info.json --method POST

Expand Down