Is it possible to change the Fedex reference number on item fulfillment packages automatically?

I’m filing this under SuiteScript, but I’m starting to suspect it may not be possible within SuiteScript… but here goes:

I’m trying to create an automation that will automatically add data to the  reference1FedEx field when an item fulfillment is created. The intention is to get that information onto the shipping label, for visibility for the warehouse team.

The problem is, I have no idea how to write any values to that field. The packages sublist in the records browser doesn’t mention that field, although it is visible here on the schema browser:

In trying to hack it, I’ve realized that I don’t seem to be able to set any package sublist fields — it just returns an unexpected error. If I do getLineCount on the package sublist, I get -1, which I think indicates that the packages haven’t been “created” yet even though they were created in the UI?

Is there some step I need to take to make the package fields writeable? And if I get past that, will I be able to set the reference field, or is that going to just end in failure anyway?

Any other ideas for a way to tackle this? I’m stumped.

UPDATE: Worth noting, we have fedex label integration set up, and have pick/pack/ship turned off. UE Script is currently running on create, beforesSubmit.

Rookie Asked on July 2, 2020 in SuiteScript.

Did you ever work out how to do this? I am trying to create a similar solution after recently turning on FedEx label integration. I’m trying to set it to the created from document number. I know there’s a way to do this within settings on the Set Up Shipping page, but we have multiple subsidiaries with different requirements for this field. Thanks!

on September 21, 2020.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor