Remove a specific post after a task is completed
Close the loop on a completed CRM task by removing a related post when your instruction says it is no longer needed.
Trigger
Task Created or Completed
Triggers when a Task is created or when its status changes to Completed in Salesforce. Supports optional filtering by task Status or Subject.
Action
Delete a previously published Ayrshare post
Tool to delete an ayrshare post. use when you need to remove a published or scheduled post by its ayrshare post id, after confirming the correct id. note: instagram and tiktok published posts cannot be deleted via api; set `mark manual deleted=true` or remove manually.
Why this helps
A social post can stay scheduled after the Salesforce follow-up that made it relevant is already complete.
- Tie social cleanup to an existing Salesforce task event.
- Require the correct Ayrshare post ID to identify the item for removal.
- Reduce the chance of leaving a time-sensitive post scheduled after follow-up.
Setup
Build it in a few focused steps.
- 1Connect Salesforce and Ayrshare once in the Notis portal.
- 2Create an automation in Automations, New Automation, and name it for post cleanup.
- 3Tell Notis when a completed task means a specific Ayrshare post should be deleted, and ensure the task data or your instruction supplies the post ID.
- 4Pick the Salesforce Task Created or Completed trigger, with the completion condition described in your instruction, and choose where run reports go.
- 5Test with one real completed task and a confirmed post ID.
Questions about this workflow
Can this delete a post without an Ayrshare post ID?
No. The action requires the specific post ID, so provide it in the task data or another context Notis can access.
Are all published posts deletable through the API?
No. Published Instagram and TikTok posts cannot be deleted via the API. For those, mark manual deleted or remove them manually.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Salesforce to Ayrshare. A trigger fires from one place; an action lands in another.
Salesforce triggers
Ayrshare actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Create Auto Schedule
Tool to create a new auto-post schedule with specified times and optional weekday filters. use when setting up recurring posting plans.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Delete a previously published Ayrshare post
Tool to delete an ayrshare post. use when you need to remove a published or scheduled post by its ayrshare post id, after confirming the correct id. note: instagram and tiktok published posts cannot be deleted via api; set `mark manual deleted=true` or remove manually.
Account Created or Updated
Triggers when an Account is created or updated in Salesforce. Uses LastModifiedDate high-watermark to capture both creations and updates.
Get Post History
Tool to retrieve ayrshare post history with metrics. use when you need to fetch and filter past posts by date, status, or record count.
Contact Updated
Triggers when an existing Salesforce Contact record is modified. Emits changed fields alongside relevant timestamps.
Set Auto Schedule
Tool to set up an auto-post schedule with specified times and optional weekday filters. use when scheduling posts around a recurring pattern.
Record Updated (Generic SObject)
Triggers when monitored fields change on any Salesforce SObject. You specify the SObject type and which field values should be returned in the payload. The trigger uses SystemModstamp to detect changes regardless of which specific field changed.
New Contact Trigger
Triggers when a new Contact is Created in Salesforce.
New Lead Trigger
Triggers when a new Lead is created in Salesforce.
New or Updated Opportunity
Triggers when a Salesforce Opportunity is created or updated.
Connect any two apps with Notis in the middle.
Salesforce and Ayrshare, or any other combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Ayrshare.