When creating a board from a template, the api will provide a response before all items from template have been added to the board.
I am attempting to automate the creation of a board, and follow up with adding a few files to a particular item on the board. I’m having trouble with this task as the Id for the item I need to add files to is different for each board (as far as I know this is out of my control), and the item I need to add files to isn’t always included in the response from creating the board, or in a follow up request to get all items on the board.
I am make these requests through c#, but I have verified that this is also the case through Postman to make sure I wasn’t making a mistake in my logic.
Is there a way to make the request to create the board complete after ALL items have been added to the board to ensure I will always have the item ID needed to add files?
Additional notes:
I am making the request to create the board, then doing some other logic to download the data for these files from Sharepoint, then making a subsequent request to list all items in the board, so there are ~2-4 seconds between these requests.
Through postman using the following query:
mutation ($folder_id: ID!, $template_id: ID!, $board_name: String!) {
create_board (folder_id: $folder_id, template_id: $template_id, board_name: $board_name, board_kind: public) {
id
items_page {
items {
id
name
}
}
}
}
The number items returned in the response ranges from 0 - 10, and this board has ~20 items on it from the template. I have also tested with changing the limit parameter for items_page, but it has no effect.