Question

trying to access ecwid order extra fields with python

  • 28 October 2020
  • 3 replies
  • 164 views

Userlevel 1

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

Userlevel 7
Badge +10

Moved to “Ask The Community” for more visibility.

Userlevel 7
Badge +8

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 !

Userlevel 7
Badge +12

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!