cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Creat things using a csv file_datashape

anassNasser
7-Bedrock

Creat things using a csv file_datashape

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 4
PaiChung
22-Sapphire I
(To:anassNasser)

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.

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.

 

 

slangley
23-Emerald II
(To:anassNasser)

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

hi , 

Thank you for rememberingme, but  I don't test it.

 

Top Tags