Just learning and need some help! - Setting amount from total MRR

Hello all,

I am trying to build the code that will do the following:

If the amount on the deal = 0 and there is total_mrr > 0 on any line item then update the amount with the total of all line items that have total_mrr>0 else do nothing.

Hi @RReiffer,

Thanks for reaching out to the Community!

I wanted to invite our subject matter experts to this conversation.

Hi @Teun, @louischausse, @johnelmer - Do you have any programmable automation tips for @RReiffer ?

Thank you!

Best,

Kristen

I believe I have gotten fairly close. Please look at this post as I have most of my detail in there. It has my code and screen shots so you can see what I am attempting to do. Right now the code runs without error and even my values seem correct (commented console.log lines), however the actual fields in the deal doesn’t update.

https://community.hubspot.com/t5/APIs-Integrations/Issue-with-my-code-not-writing-data-back-to-a-Deal-with-the/td-p/809755