# Which API to use to trigger Workflow within Dotnet Core

**URL:** <https://community.hubspot.com/t/which-api-to-use-to-trigger-workflow-within-dotnet-core/31140>\
**Category:** APIs & Integrations\
**Tags:** workflows\
**Created:** [February 2, 2021, 2:42pm UTC](https://community.hubspot.com/t/which-api-to-use-to-trigger-workflow-within-dotnet-core/31140 "2021-02-02T14:42:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RLV2525](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rlv2525/32/97609_2.png) [@RLV2525](https://community.hubspot.com/u/RLV2525)\
**Post date:** [February 2, 2021, 2:42pm UTC](https://community.hubspot.com/t/which-api-to-use-to-trigger-workflow-within-dotnet-core/31140/1 "2021-02-02T14:42:06Z")

</div>

Hi everyone,  
I have a product that runs on Dotnet Core and has, right now, in-built features that prospects have to confirm first if they want to use it. Currently, if they click on it, they will be confronted with a pop-up and a notification will be send to our Sales team.  
However, I read that I can integrate an API in our product so that when a prospect selects a feature that they want to use that they automatically come in a workflow and could receive a mail and/or more information. This way I can keep our Sales inbox clean, but I’m struggling to figure out which API is the best for this.  
Can someone help me on this?  
Thanks!

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [February 3, 2021, 6:24pm UTC](https://community.hubspot.com/t/which-api-to-use-to-trigger-workflow-within-dotnet-core/31140/2 "2021-02-03T18:24:58Z")

</div>

Hey @RLV2525

Welcome to the Community!

My initial thought on this would be to update a contact property with the [CRM Objects endpoint](https://developers.hubspot.com/docs/api/crm/contacts) which would trigger a workflow and start your automation. The [workflow](https://knowledge.hubspot.com/workflows/get-started-with-workflows) portion could be handled in UI.

@Kevin-C , @Bryantworks what do you think?

---

<div class="post-metadata">

**Author:** ![Bryantworks](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bryantworks/32/94963_2.png) [@Bryantworks](https://community.hubspot.com/u/Bryantworks)\
**Post date:** [February 5, 2021, 1:54am UTC](https://community.hubspot.com/t/which-api-to-use-to-trigger-workflow-within-dotnet-core/31140/3 "2021-02-05T01:54:08Z")

</div>

Hey @RLV2525,

I’ll echo @dennisedson suggestion here. I use the CRM Objects endpoint to force trigger workflows all the time, it’s very reliable for this. You do end up creating several “flags” though.

---

<div class="post-metadata">

**Author:** ![RLV2525](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rlv2525/32/97609_2.png) [@RLV2525](https://community.hubspot.com/u/RLV2525)\
**Post date:** [February 5, 2021, 8:09am UTC](https://community.hubspot.com/t/which-api-to-use-to-trigger-workflow-within-dotnet-core/31140/4 "2021-02-05T08:09:05Z")

</div>

Hi Chris & Dennis,  
Thanks for your quick replies!  
I will try to use the CRM Objects and see how it works. However, what do you mean by “flags”?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Bryantworks](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bryantworks/32/94963_2.png) [@Bryantworks](https://community.hubspot.com/u/Bryantworks)\
**Post date:** [February 5, 2021, 3:58pm UTC](https://community.hubspot.com/t/which-api-to-use-to-trigger-workflow-within-dotnet-core/31140/5 "2021-02-05T15:58:51Z")

</div>

Hey @RLV2525, by flags I’m meaning custom properties. You might need to create properties when a user takes action to “flag” that user in HubSpot with a property moving from “true” from “false” for example.
