Hi all,
Original thread here. But I've decided this is more of a scripting fix and so have brought my discussion to a new thread on the script itself.
I'm trying to build a script that will email me transaction line information upon the creation of an item fulfillment based on if it's coming from any of 4 specific locations.
At the moment I think I have the flesh of it built out and am now trying to debug it step by step. At the moment, the get request that tries to get the value of the location field is coming back empty and I'm worried that location is not actually a valid field on the item fulfillment?
Attached is my script and a picture of the output at the moment. From this I can see that the script is able to get a value for incoterm just fine, so it does again suggest that perhaps the location field either just doesn't exist or is empty.
Example item fulfillment
Upon looking at the xml page, it seems I may need to access the location a different way as it is within the item line and not main line.
Unfortunately, I can't use the transferlocation field as this would be over 200 locations and need updating every time a new location is added.
Appreciate the help! Will continue working on this, accepting answers and testing until I have reached the final output of emailing myself all of the line item information from the transaction including serial numbers.