Hi there!
I'm having a lot of trouble trying to make the firestore connector task work. I have a sub-integration where I receive a JSON for each iteration in a list and I need to write that object into one collection of Firestore.
The connector task config is as follows:
Step 1, region and connection are correctly chosen.
Step 2 - Type: I selected Actions.
Step 3 - I chose the action "firestore.projects.databases.documents.write"
I didn't find the place to put the collection name where the objects must be written.
When I put the integration to run, I get the error:
Hi @erichmonch
I think operation you are looking for is "firestore.projects.databases.documents.createDocument" action instead of "firestore.projects.databases.documents.write". Can you please select that action as shown in screenshot below.
Thanks,
Deepa
Also , regarding where to specify the database in the "firestore.projects.databases.documents.write" , if you look at the schema of the connector task , it has to be specified as path parameters.
``` "Path parameters": {
"type": "object",
"properties": {
"database": {
"type": "string",
"description": "Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`."
}
}
}, ```
Your input to the connector task will be something like this
```
{
"Path parameters": {
"database": "projects/my-project-id/databases/my-database-id"
},
"Headers": {
"x-goog-request-params": "project_id=my-project-id&database_id=my-database-id"
}
} ```
Thanks