- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 02:12 AM - edited 08-23-2023 04:11 AM
I am creating a data source using load by script option. I am able to retrive the data but not able to correctly put it in the import set table.
The Json looks like this :
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 05:42 AM
Found the solution u_attributes_devicename: deviceData[eachDevice]['attributes']['deviceName']
I have to write the name of the import set column name plus access the array in given format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 02:18 AM
Hello @pratiksha5 ,
i think you have to use this in order to access device name
u_deviceName:deviceData[eachDevice].deviceName
As device name is a separate JSON element and its not coming under attributes sub json you can directly access it like above and try
Hope this helps
Mark the answer correct if this helps you
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 02:33 AM
I think we need to access the attribute in order to access the array. I tried your way and it did not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 02:40 AM
@pratiksha5 my bad did not observe the JSON structure properly .Can you try the below one
u_deviceName:deviceData[eachDevice].attributes.deviceName
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 02:51 AM
I have tried this and it is not working as well.