Skip to main content
1-Visitor
January 30, 2020
Question

Creat things using a csv file_datashape

  • January 30, 2020
  • 4 replies
  • 1661 views

hi community, 

I want to creat 80 things from a thingTemplate, I Think I Can do it easily with a csv file but I don't know the shape of this csv file; 

 

if anyone already used it, please share the shape or some good tips.

 

can we create alerte from a csv file too ? 

 

thanks in advance.

4 replies

22-Sapphire I
January 30, 2020

If you have the ThingTemplate already then all you need is the EntityServices/CreateThing service

yes you can create a CSV file with a list of names etc. you can name the columns anything and create a datashape to match.

Then use your service to provide the appropriate parameters from the parsed infotable (use csv parser or parsely) to loop through create entity.

1-Visitor
January 31, 2020

hi ,

thank you for response, No I don't have the thingtemplate created, I want to creat all entities (thingTemplate, things,..)  from a csv file but I don't know what I should put in the datashape.

 

if anyone already did this, please share.

 

Thank you in advance.

 

 

Support
February 12, 2020

Hi @anassNasser.

 

Have you found a solution to your question?  If so, please feel free to post it here and mark it as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon