Updating Netsuite Price

Comments

8 comments

  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Hi Geoff,

     

    Are you calculating your new base price within your saved search? If so, you could just add a criteria to check if your calculation is different from the base price. Here is an example, with the red lines indicating where your formula would be.

    1
  • Geoff Manning

    Thanks for the reply!

    Unfortunately the way we are calculating it adds some complexity. We have another dataflow that updates the "surplus classification" (as we call it) to an A, B, C, D, etc based on how overstocked we are. The saved search that the dataflow in question is doing is taking that letter value in a case statement and discounting it by varying percentages. 

    Only way I can see omitting items that haven't changed within the saved search itself would be to duplicate the case statement to the criteria into a formula and modify it to compare the potential new prices to the existing prices within each case argument. 

    0
  • Bas van Ditzhuijzen Strategic Partner NetSuite Integration Whiz Salesforce Integration Whiz
    Partner Implementation Certification
    Great Answer
    Answer Pro
    Engaged
    Celigo University Level 4: Legendary

    Although counter-intuitive, I would always update the price, even if it is the same as the previous one.

    There is no performance-gain to be had by doing an extra database query to look up the current value before an update, and NetSuite doesnt register a change if you set a field to the same value it already has. (it doesnt go in the log or call fieldValueChanged methods etc..)

    1
  • Geoff Manning

    Ahhh I never even thought of it that way, but yeah it would be the same expense either way. So I either restrict the initial data set from Netsuite that needs to be acted on, or I just update everything. 

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    I think you would just have to copy your formula into that criteria clause like this. But like Bas van Ditzhuijzen stated, even having the lookup part would utilize your NetSuite concurrency. If that's what you're trying to limit, then you would have to filter the search on the front end like I suggested. You could also add an output filter on your NetSuite export.

    1
  • Geoff Manning

    Perfect, thanks Tyler and Bas

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Here is an example of an output filter:

    1
  • Geoff Manning

    The output filter worked perfectly. Thank!

    1

Please sign in to leave a comment.