donaldtran
03/23/2022, 12:51 AMshipcarrier
to carrier
within salesorder
on loaded records .
In the UI/Database/Saved Search, the field is still shipcarrier
.
the return values have not changed (still ups
and nonups
)Mark C
03/23/2022, 7:58 PMMark C
03/23/2022, 8:01 PMdonaldtran
03/23/2022, 11:50 PMshipcarrier
is FedEx (aka nonups
) and it changes the shipping method to Standard Overnight based off criteria. This code broke and our automation failed.
So I ran code line-by-line in my console until I found out that .getValue('shipcarrier')
returned undefined
instead of ''
. Then I found the Field Explorer Plug-in shows`carrier` while the UI / DB / Saved Search shows shipcarrier
.
This really reinforces the fact that Loaded Records are not exactly the same as the DB/Search.donaldtran
03/23/2022, 11:52 PMsource
ive found that source only has a value when data is present. And that value cannot be changed. But you can source that file.
So we have salesorders created via a different source
and then on our invoice we have a field called "Source of Created From" so we know if the salesorder was created via Web Services, CSV, etc.donaldtran
03/24/2022, 12:03 AMsource
?Mark C
03/24/2022, 3:25 PMMark C
03/24/2022, 3:26 PMMark C
03/24/2022, 3:34 PMdonaldtran
03/24/2022, 9:22 PMMark C
03/25/2022, 6:46 PM