Skip to main content
Jun 29, 2022 10:11 AM UTC
Solved

Getting my infotable to my stream

Hello everyone

 

I have a stream that has a property infotable.

I want to write a service inside of that stream, I want this service to get each row ID inside of my infotable and store these IDs within an array.

 

I have tried using the queryinfotableproperty history service.

This does not seem to work.

 

Kindly suggest how I can go about fixing this?

 

Thank you so much.

nmillesonAnswer
Jun 29, 2022 1:37 PM UTC

@Janicen ,

 

Thanks for the code sample.  The service you are using above is used on properties of that Stream thing, not for columns that are actually in the stream.  To access stream entries, you would use the service QueryStreamEntriesWithData.  That will give you the metadata (i.e. the Id of the stream entry) as well as the data columns in each row.

 

Thanks,

Nick

4 replies

Jun 29, 2022 1:16 PM UTC

@Janicen ,

 

Is this a Stream thing or a Value Stream? Also, could you share some of the code you're using?

 

Nick

JanicenAuthor
Jun 29, 2022 1:28 PM UTC

Hi Nick

 

This is a stream Thing.

I have attached a screenshot below.

 

Screenshot (80).png

nmillesonAnswer
Jun 29, 2022 1:37 PM UTC

@Janicen ,

 

Thanks for the code sample.  The service you are using above is used on properties of that Stream thing, not for columns that are actually in the stream.  To access stream entries, you would use the service QueryStreamEntriesWithData.  That will give you the metadata (i.e. the Id of the stream entry) as well as the data columns in each row.

 

Thanks,

Nick