Skip to main content

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 = daya0]0'value']

output = {'DeliveryDay': dow}

 

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

 

 

 

Moved to “Ask The Community” for more visibility.


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 !


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!