Getting user name/id of shipper

Hi,
I’m making a shipments query using date filters. This is an excerpt:

			  edges{
				node{
				  created_date
				  legacy_id
				  user_id
				  order{
				    id
					order_number
					shop_name
					fulfillment_status
				  }
				}

I need the username of shipper, but I will take user id as a compromise. But all the results are coming up with user_id as null. I think this used to work earlier - has something changed or am I doing something wrong?
Pls help.
Thank you!

Hey @Raj,

Looking into this now. I’ll get back to you shortly.

Best,
RayanP

1 Like

Hey @Raj,

I do believe you’ve found a bug. That field should not be returning a null value, I’m going to go ahead and escalate this issue to our Engineering Team. At the moment I’m unable to find a workaround to this issue.

We’ll keep you updated as the updates come in.

Best,
RayanP

Hey @sh-agent, thank you for confirming! It did seem like a bug but I didn’t want to assume that right away - usually the problem exists between my keyboard and chair lol

2 Likes

Another possibility is to use the packs_per_day query which includes the shipper name. I’m not sure if it will fit your workflow 100%, but you can also access the order information from there.

2 Likes

Thank you @jeremyw , but I don’t think it’ll fit the needs in this case - as you rightly said.

2 Likes

Hey @sh-agent, any update here pls?

Hey @Raj,

The code for this fix is currently in review. I’ll let you know when it’s deployed.
Thank you for your patience in this matter!

Best,
RayanP

Got it, thank you @sh-agent!