Menu
openingSchedules
Search for OpeningSchedule entities.
Use it in a workflow
- Add a step and choose the Fluent Commerce connector.
- Pick the openingSchedules action (under Opening).
- Fill in the fields below, then reference the result from later steps as
{{openingschedules.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query OpeningSchedules($after: String, $allHours: [Boolean!], $before: String, $createdOn: DateRange, $first: Int, $friEnd: [Int!], $friStart: [Int!], $last: Int, $monEnd: [Int!], $monStart: [Int!], $satEnd: [Int!], $satStart: [Int!], $sunEnd: [Int!], $sunStart: [Int!], $thuEnd: [Int!], $thuStart: [Int!], $tueEnd: [Int!], $tueStart: [Int!], $updatedOn: DateRange, $wedEnd: [Int!], $wedStart: [Int!]) {
openingSchedules(
after: $after
allHours: $allHours
before: $before
createdOn: $createdOn
first: $first
friEnd: $friEnd
friStart: $friStart
last: $last
monEnd: $monEnd
monStart: $monStart
satEnd: $satEnd
satStart: $satStart
sunEnd: $sunEnd
sunStart: $sunStart
thuEnd: $thuEnd
thuStart: $thuStart
tueEnd: $tueEnd
tueStart: $tueStart
updatedOn: $updatedOn
wedEnd: $wedEnd
wedStart: $wedStart
) {
edges {
cursor
node {
allHours
createdOn
friEnd
friStart
id
monEnd
monStart
satEnd
satStart
sunEnd
sunStart
thuEnd
thuStart
tueEnd
tueStart
updatedOn
wedEnd
wedStart
}
}
pageInfo {
hasNextPage
hasPreviousPage
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"after": "string",
"allHours": [
false
],
"before": "string",
"createdOn": {
"from": "string",
"to": "string"
},
"first": 0,
"friEnd": [
0
],
"friStart": [
0
],
"last": 0,
"monEnd": [
0
],
"monStart": [
0
],
"satEnd": [
0
],
"satStart": [
0
]
}
Response
Read the result with {{openingschedules.response.data.data.openingSchedules}}. If the API returns errors, the step fails and they are at {{openingschedules.response.data.errors}}.
Need more? See the Fluent Commerce guide for connection setup and behaviour shared by every action.
Was this page helpful?