# Suggestions for Workflow issue

**URL:** <https://community.hubspot.com/t/suggestions-for-workflow-issue/70112>\
**Category:** CMS Development\
**Created:** [November 28, 2022, 8:04pm UTC](https://community.hubspot.com/t/suggestions-for-workflow-issue/70112 "2022-11-28T20:04:40Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmcmillan99](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tmcmillan99/32/93181_2.png) [@tmcmillan99](https://community.hubspot.com/u/tmcmillan99)\
**Post date:** [November 28, 2022, 8:04pm UTC](https://community.hubspot.com/t/suggestions-for-workflow-issue/70112/1 "2022-11-28T20:04:40Z")

</div>

I am looking for some ideas on how to solve an issue we’re experiencing with a workflow. If the enrollment criteria is met, the first step in the workflow creates a new record in a custom object for that particular contact. The workflow will then copy several contact properties that were updated from Salesforce. The copy steps will update the new record in the custom object with the latest values of those contact properties. However, the issue is that if that contact already has existing records in the custom object, the copy process will also step on those existing records.

I am not sure how to prevent the existing records from getting stepped on. Do we need a different approach to the workflow?

Any suggestions would be greatly appreciated.

Thanks,

Terry McMillan

---

<div class="post-metadata">

**Author:** ![weiliang\_lee](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/weiliang_lee/32/81774_2.png) [@weiliang\_lee](https://community.hubspot.com/u/weiliang_lee)\
**Post date:** [November 29, 2022, 6:18am UTC](https://community.hubspot.com/t/suggestions-for-workflow-issue/70112/2 "2022-11-29T06:18:43Z")

</div>

Hi,

It seems that you could use the If/Then branch action. From here you could set a filter that checks if “your custom object’s property is unknown” - which then leads to your step of copying the contract property over.

 ![weiliang_lee_0-1669702673649.png](https://d2qpr2jzcazej7.cloudfront.net/original/1X/e9b458793b1662c18f26c3ec28ca944f17f1c902.png)

Cheers

WL

---

<div class="post-metadata">

**Author:** ![deepikaverma](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/deepikaverma/32/671_2.png) [@deepikaverma](https://community.hubspot.com/u/deepikaverma)\
**Post date:** [November 30, 2022, 11:52am UTC](https://community.hubspot.com/t/suggestions-for-workflow-issue/70112/3 "2022-11-30T11:52:45Z")

</div>

Hi @tmcmillan99  
As you have mentioned that you are creating new record in custom objects, so how the property values on that custom ojecect can be preoccupied as its a new record.  
Please correct me if I have wrongly interpretated your request.  
Thanks!

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 29, 2022, 6:59pm UTC](https://community.hubspot.com/t/suggestions-for-workflow-issue/70112/4 "2022-11-29T18:59:50Z")

</div>

Hi, @tmcmillan99 👋 Thanks for the great question. Workflow options are always an interesting challenge.

Thanks for the suggestion [@weiliang\_lee](https://community.hubspot.com/t5/user/viewprofilepage/user-id/155264). I appreciate the simplicity. One related follow-up question for @tmcmillan99 — if the first property checked using an if/then branch _is known,_ is it safe to assume **all** are known? Or would it need to _always_ check against _each of the_ properties it needs to copy _every time_?

I ask because if one property is known, is it safe to assume all are known? This would require only one branch.

Hey, @deepikaverma @danmoyle, do you have any additional light to shine here?

Thank you very much! — Jaycee

---

<div class="post-metadata">

**Author:** ![tmcmillan99](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tmcmillan99/32/93181_2.png) [@tmcmillan99](https://community.hubspot.com/u/tmcmillan99)\
**Post date:** [November 29, 2022, 7:47pm UTC](https://community.hubspot.com/t/suggestions-for-workflow-issue/70112/5 "2022-11-29T19:47:53Z")

</div>

[@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) [@weiliang\_lee](https://community.hubspot.com/t5/user/viewprofilepage/user-id/155264)

Thanks for the suggestion. I had originally thought about the if/then branch and added a checkbox to the custom object in order to show a record as “processed”. The idea was to only copy to the custom object if the checkbox is not checked or is “not processed”. However, when I go to set up the if branch, none of the custom object properties are available to use.

Is that a possible custom object settings issue?

Thanks,

Terry

---

<div class="post-metadata">

**Author:** ![weiliang\_lee](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/weiliang_lee/32/81774_2.png) [@weiliang\_lee](https://community.hubspot.com/u/weiliang_lee)\
**Post date:** [November 30, 2022, 4:19am UTC](https://community.hubspot.com/t/suggestions-for-workflow-issue/70112/6 "2022-11-30T04:19:37Z")

</div>

Hi @tmcmillan99

Help me understand a little more about the flow:

- Your enrol criteria is based on a Contact being created from SFDC right?
- Then you would have a matching Custom Object, in which you copy the values of those properties over from the Contact object.

I don’t quite get the use case - what is purpose of your Custom Object? Perhaps if we look at your original intention, we could put our heads together to find out if this approach is the best way.

Cheers  
WL

---

<div class="post-metadata">

**Author:** ![danmoyle](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/danmoyle/32/91166_2.png) [@danmoyle](https://community.hubspot.com/u/danmoyle)\
**Post date:** [November 30, 2022, 1:50pm UTC](https://community.hubspot.com/t/suggestions-for-workflow-issue/70112/7 "2022-11-30T13:50:46Z")

</div>

Hi Terry. I saw [this on LinkedIn](https://www.linkedin.com/feed/update/urn:li:activity:7003388241873674240/) recently and wonder if some branching logic might help.

 ![workflow-copy-properties.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/e/fed3f76d4b735ddfe882c6416cfb5b83e43c8c69.jpeg)

That may spark an idea for you.

---

<div class="post-metadata">

**Author:** ![tmcmillan99](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tmcmillan99/32/93181_2.png) [@tmcmillan99](https://community.hubspot.com/u/tmcmillan99)\
**Post date:** [November 30, 2022, 2:59pm UTC](https://community.hubspot.com/t/suggestions-for-workflow-issue/70112/8 "2022-11-30T14:59:58Z")

</div>

[@weiliang\_lee](https://community.hubspot.com/t5/user/viewprofilepage/user-id/155264) @danmoyle @deepikaverma

First of all, thanks for the willingness to help out and offer suggestions. I truly appreciate it.

Let me give some background on the process so that you can have a better understanding of how it works.

Contact (new or existing) fills out a test questionaire answering various questions with a an answer of 1-10. The contact info and test answers are then updated to Salesforces where calculations are conducted and a score is determined for 5 categories. The scores are then updated back to Hubspot for that contact. The custom object is meant to store all of the scores for a contact each time they take the test. The scores in the custom object are displayed in charts on a dashboard website page that the contact can log into. The dashboard will only show the scores for the contact logged in and contains other information as well.

The workflow was created to copy those test scores (contact properties) to the custom object each time they are updated from Salesforce. The workflow works correctly when the contact is taking the test for the first time. However, if the contact already has existing scores in the custom object, the workflow will step on them when copying the latest scores in.

The If/then branch seems like the logical solution where we could have some sort of data validation before executing the copy steps. However, it doesn’t appear that I can validate against the custom object. See attached screenshot of my options-

 ![tmcmillan99_0-1669819926333.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/c/0c8f1ecc8670e525a8bf5986c4ae8d55f60604af.png)

As I mentioned previously, the first step in the workflow, if the enrollment criteria is met, is creating a new record for the contact in the custom object. The new record has “0” for the 5 test scores which would then get stepped on with the real scores by the copy steps.

Thanks,

Terry

---

<div class="post-metadata">

**Author:** ![deepikaverma](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/deepikaverma/32/671_2.png) [@deepikaverma](https://community.hubspot.com/u/deepikaverma)\
**Post date:** [December 1, 2022, 12:50pm UTC](https://community.hubspot.com/t/suggestions-for-workflow-issue/70112/9 "2022-12-01T12:50:37Z")

</div>

Hi @tmcmillan99  
To make if then condition successful, make a custom object based wf and then perform that copy step. It will work.  
I hope it helps!  
Thanks!

---

<div class="post-metadata">

**Author:** ![tmcmillan99](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tmcmillan99/32/93181_2.png) [@tmcmillan99](https://community.hubspot.com/u/tmcmillan99)\
**Post date:** [December 1, 2022, 3:03pm UTC](https://community.hubspot.com/t/suggestions-for-workflow-issue/70112/10 "2022-12-01T15:03:32Z")

</div>

Hey @deepikaverma

Thanks for the suggestion. I started a workflow based on the custom object, however, when I start building it out, I am not able to access the contact properties for the copy steps. It will only allow me to copy from properties in the custom object. Maybe I am not setting it up correctly initially. I will review it again.

Thanks,

Terry
