Skip to main content
Solved

Http Get - UserFieldChar


Forum|alt.badge.img+12

I am trying to pull an event’s itemB’s userChar fields using Rest and note that the uri below only presents the API with the basic/ standard information set in the connected items.

http://<Server>:<Port>/assystREST/v2/events/10183439?fields=affectedUser[],itemA[],itemB[]

I have tried explicitly calling the field in the web request uri with no luck.

?fields=affectedUser[],itemA[],itemB[userFieldChar12]

This information appears if we run a second pull using the item id extracted from the event, but that seems a bit wasteful and we are able to pass it in from the AP as a parameter if necessary. But I was wondering if anyone was already doing this and whether you might be able to give me some pointers?

 

Thanks in advance.

Best answer by Alan Macfarlane

To pull just the itemB information for an event the syntax should be:

 

GET http://{server}:{port}/assystREST/v2/events/{id}?fields=[itemB[*]]

 

This should return the itemB fields with values for the event. 

 

To get a specific property of itemB from for an event:

 

GET http://{server}:{port}/assystREST/v2/events/{id}?fields=[itemB[userFieldChar1]]

 

 

 

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+6

To pull just the itemB information for an event the syntax should be:

 

GET http://{server}:{port}/assystREST/v2/events/{id}?fields=[itemB[*]]

 

This should return the itemB fields with values for the event. 

 

To get a specific property of itemB from for an event:

 

GET http://{server}:{port}/assystREST/v2/events/{id}?fields=[itemB[userFieldChar1]]

 

 

 


morevalueit
Do Gooder (Customer)
Forum|alt.badge.img+1
  • Do Gooder (Customer)
  • 10 replies
  • October 28, 2022

To get the fields from the event AND the itemB-fields use:

GET http://{server}:{port}/assystREST/v2/events/{id}?fields=*,[itemB[*]]


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings