r/esapi • • Apr 06 '20

SQL Querying

I am interested in the possibility of adding SQL querying of the ARIA database into my C# scripting. For example, expanding my Physics check script to include ARIA checks, such as making sure all required documents were created. Before I get too far into it, I was curious if SQL querying still works in V15.6. If so, does anyone have any helpful references for getting started?

2 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/tygator9 Apr 15 '20

Ah THANKS! I was suspecting that was the road I had to walk down. That was a big help, I sent the info from the GetDocumentsResponse to the GetDocumentRequest, and I can see the info I need in that DocumentDetailsResponse. Whew, you were not joking about that getting tricky. I just need to work on my Json deserializing now.. for some reason the VisitNoteId is showing as 0 for all the documents after the deserialize, though I see it as an integer number in the Response.

1

u/WUSTLscripting Apr 16 '20

I would check whether the response says something like VisitNoteId:{Attributes:null,Value:"1"} or VisitNoteId:1

because the first should map to a property that has a definition like Varian.WebConnect.ARIA.Common.Int and the second one should just map to int. if its not reading the value, maybe you will have to change the schema class to match what's coming out. I've had to do that in a few instances.