Skip to main content
Question

trying to access ecwid order extra fields with python

  • October 28, 2020
  • 3 replies
  • 177 views

Hi I am trying to access the order extra fields in ecwid.

I get this error 

Traceback (most recent call last): File "<string>", line 9, in the_function TypeError: 'NoneType' object is not subscriptable

I am trying to access the value in the first element of the array at least I think it is an array or dictionary.

Trying to get the Friday value.

 

I tried several variations of the code but I am not sure how to extract this data out. Any help is greatly appreciated.


This is the code I tried is in python.. I tried in node also with no luck. So I open to either one.
Input Data - DeliveryDay

Code

day = input.get("DeliveryDay")

dow = day[0]['value']

output = {'DeliveryDay': dow}

 

This is what the input data looks like in the task history:

 

 

 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

AndrewJDavison
Forum|alt.badge.img+11
  • Zapier Solution Partner
  • October 28, 2020

Moved to “Ask The Community” for more visibility.


Liz_Roberts
Forum|alt.badge.img+8
  • Zapier Staff
  • January 5, 2021

Hi @jonnydee ,

Checking in to see if you were able to get this configuration sorted! Also tagging in @ikbelkirasan as they might be able to assist here. Thanks in advance @ikbelkirasan !


ikbelkirasan
Forum|alt.badge.img+12
  • Zapier Solution Partner
  • January 5, 2021

Sure thing @Liz_Roberts!

@jonnydee - If you’re still having issues with this one, could you test the ecwid step and share a screenshot of the sample data you get? Thanks!