When a PandaDoc proposal sent from a HubSpot deal is signed, moves the deal to Closed Won and tells its owner in Slack.

UsesHubSpotPandaDocSlack

Close HubSpot deals when PandaDoc proposals are signed

A signed proposal is a won deal, but someone still has to go and update HubSpot. This does it the moment the last person signs in PandaDoc: it finds the HubSpot deal the document was sent from and moves it to Closed Won.

The deal's owner then gets a Slack message with the deal name, the amount and a link to the signed proposal. Documents that weren't sent from a HubSpot deal, such as an NDA, are left alone.

PandaDocPandaDocWhen a document is fully signed. Save it as proposal.When a document is fully signed. Save it as proposal.
PandaDocFind the deal the proposal was sent fromGet details of PandaDoc document proposal. Save it as proposal_details.PandaDoc
Is the proposal linked to a HubSpot deal?If proposal_details.hubspot_deal_id is blank
Yes
Finish the run: This document was not sent from a HubSpot deal, so there is no deal to close.Finish the run: This document was not sent from a HubSpot deal, so there is no deal to close.
No
HubSpotMark the deal Closed WonMove proposal_details.hubspot_deal_id. Save it as won_deal.HubSpot
Does the deal have an owner?If won_deal.owner_email isn't blank
Yes
SlackTell the deal owner in SlackSend a direct message to won_deal.owner_email. Save it as owner_told.:tada: The proposal was signed and your deal *won_deal.properties.dealname* is now Closed Won. Amount: won_deal.amount_display Signed proposal: proposal.urlSlack
No
No steps