# Comparing fields in Hubspot

**URL:** <https://community.hubspot.com/t/comparing-fields-in-hubspot/87464>\
**Category:** CRM\
**Tags:** object\
**Created:** [August 14, 2023, 10:45pm UTC](https://community.hubspot.com/t/comparing-fields-in-hubspot/87464 "2023-08-14T22:45:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RHolstein4](https://avatars.discourse-cdn.com/v4/letter/r/8797f3/32.png) [@RHolstein4](https://community.hubspot.com/u/RHolstein4)\
**Post date:** [August 14, 2023, 10:45pm UTC](https://community.hubspot.com/t/comparing-fields-in-hubspot/87464/1 "2023-08-14T22:45:04Z")

</div>

I am trying to compare up to three fields in a deal object. I’ve seen some workarounds using Ops Hub but still need some guidance.

Any ideas on how I can compare multiple fields and if they don’t match send a notification?

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [August 15, 2023, 4:18am UTC](https://community.hubspot.com/t/comparing-fields-in-hubspot/87464/2 "2023-08-15T04:18:15Z")

</div>

Hi @RHolstein4,

This would indeed require a custom code action in a deal-based workflow: [Workflows | Custom Code Actions - HubSpot docs](https://developers.hubspot.com/docs/api/workflows/custom-code-actions)

Where exactly are you getting stuck?

If you don’t have access to a developer, working with ChatGPT can work if you specify whether you’d like code in Node.js or Python, which properties the code action should take as input and what you’re expecting as output.

Best regards!
