Menu
Feedback
Start here

Known issues

Known issues
'ObterTotalDePontos' function does not work inside the Automatic Field
Master Data
ID:
Backlog
Published on12/10/2018
Last updated on12/22/2022
1 min read

Summary

The function ObterTotalDePontos used inside "Calculated Fields" does not work as expected and gives the following error message: he name 'campoScore' does not exist in the current context

Simulation

  1. Access MasterData and create an automatic field

  2. Create a simple function that uses ObterTotalDePontos. Ex:

    if ( ObterTotalDePontos(campoScore) > 0 ) { return 1; } else { return 0; }

  3. Error: The name 'campoScore' does not exist in the current context

Workaround

Depending on the what the account is attempting to do, a solution could be as simple as implementing an external middleware to calculate the fields and handle condition flow alongside MasterData's triggers.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback