n8n-sauvegarde/LinkedIn publication submit...

1 line
4.1 KiB
JSON

{"createdAt":"2024-06-15T20:20:30.174Z","updatedAt":"2024-06-19T20:10:49.400Z","id":"K5H7fF45v9GzQ8Aq","name":"LinkedIn publication submit","active":true,"nodes":[{"parameters":{"rule":{"interval":[{"field":"cronExpression","expression":"45 12 * * 1-6"}]}},"id":"3cd7b4a7-e40a-4dc0-9f7f-374705650d48","name":"Schedule Trigger","type":"n8n-nodes-base.scheduleTrigger","typeVersion":1.2,"position":[-800,660],"notesInFlow":true,"notes":"Déclenche tout les jours 12h45"},{"parameters":{"docId":"pfyRAyDpaei1RyyPQYUqLV","tableId":"Table1","limit":1,"additionalOptions":{"filter":{"filterProperties":[{"field":"LinkedIn","values":"En attente"}]},"sort":{"sortProperties":[{"field":"Date_soumission"}]}}},"id":"a958a90b-315e-4792-a227-f79079fa3a04","name":"GristSearch","type":"n8n-nodes-base.grist","typeVersion":1,"position":[-600,660],"notesInFlow":true,"credentials":{"gristApi":{"id":"FP4qhcxgUb7jbXcL","name":"Grist account"}},"notes":"Recupère articles préparés IA"},{"parameters":{"operation":"update","docId":"pfyRAyDpaei1RyyPQYUqLV","tableId":"Table1","rowId":"={{ $node[\"GristSearch\"].json[\"id\"] }}","fieldsToSend":{"properties":[{"fieldId":"Date_publication_LinkedIn","fieldValue":"={{ $node[\"DateTime\"].json[\"currentDate\"] }}"},{"fieldId":"LinkedIn","fieldValue":"Publié"}]}},"id":"e6ad36ca-3625-46df-a3c4-c3f27f7a5e7c","name":"GristUpdate","type":"n8n-nodes-base.grist","typeVersion":1,"position":[60,660],"notesInFlow":true,"credentials":{"gristApi":{"id":"FP4qhcxgUb7jbXcL","name":"Grist account"}},"notes":"Mettre à jour Sheet"},{"parameters":{"options":{}},"id":"9110a4ea-cb44-4cef-bf71-c505dfccf4cf","name":"DateTime","type":"n8n-nodes-base.dateTime","typeVersion":2,"position":[-420,660],"notesInFlow":true,"notes":"Récupère heure actuelle"},{"parameters":{"person":"aHGv3fiUeq","text":"={{ $node[\"GristSearch\"].json[\"Contenu\"] }}","shareMediaCategory":"IMAGE","additionalFields":{"title":"={{ $node[\"GristSearch\"].json[\"Sujet\"] }}","visibility":"PUBLIC"}},"id":"09a459e2-75d1-4dbd-9a86-a7dbc5fb19d3","name":"LinkedIn","type":"n8n-nodes-base.linkedIn","typeVersion":1,"position":[-100,660],"notesInFlow":true,"credentials":{"linkedInOAuth2Api":{"id":"MPgQTFhMIBnazvCU","name":"LinkedIn account"}},"notes":"Poster article"},{"parameters":{"fromEmail":"nico@ia86.cc","toEmail":"nicolas@palon.fr","subject":"=[N8N-LINKEDIN] Publication {{ $json.id }}: {{ $('GristSearch').item.json.Sujet }}","html":"=<h1>Article {{ $json.id }}: {{ $('GristSearch').item.json.Sujet }}</h1>\n<h2>Informations</h2>\nDate de publication: {{ $node[\"DateTime\"].json[\"currentDate\"] }}\n<h2>Contenu</h2>\n{{ $('GristSearch').item.json.Contenu }} \n{{ $('GristSearch').item.json.Image }} ","options":{"replyTo":"noreply@n8n.ia86.cc"}},"id":"679b497a-97bf-464c-a503-c5e511bab3eb","name":"Send Email","type":"n8n-nodes-base.emailSend","typeVersion":2.1,"position":[220,660],"notesInFlow":true,"credentials":{"smtp":{"id":"d4ZAN48vF9GTpVON","name":"SMTP account"}},"notes":"Notification courriel"},{"parameters":{"url":"={{ $node[\"GristSearch\"].json[\"Image\"] }}","options":{"allowUnauthorizedCerts":true,"redirect":{"redirect":{}},"response":{"response":{"responseFormat":"file"}}}},"id":"cbc49358-334c-4ec0-af63-5ae93ed9f473","name":"HTTP","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[-260,660],"notesInFlow":true,"notes":"Récupération de l'image"}],"connections":{"Schedule Trigger":{"main":[[{"node":"GristSearch","type":"main","index":0}]]},"GristSearch":{"main":[[{"node":"DateTime","type":"main","index":0}]]},"GristUpdate":{"main":[[{"node":"Send Email","type":"main","index":0}]]},"DateTime":{"main":[[{"node":"HTTP","type":"main","index":0}]]},"LinkedIn":{"main":[[{"node":"GristUpdate","type":"main","index":0}]]},"HTTP":{"main":[[{"node":"LinkedIn","type":"main","index":0}]]}},"settings":{"executionOrder":"v1","timezone":"Europe/Paris","saveManualExecutions":true,"callerPolicy":"workflowsFromSameOwner"},"staticData":{"node:Schedule Trigger":{"recurrencyRules":[]}},"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"cdf219ac-4235-40a2-addc-8bdd4e9ebb7c","triggerCount":1,"tags":[]}