Is there an API call to search values from the CustomFieldValues? Something similar to the new global search feature where I can search for almost anything.
Example:
A script that searches for a MacAddress “XX:XX:XX:XX:XX:XX” and I would get a return with the Asset attached to that CustomFieldValue.
I am working with our support team to see if this is possible. Don’t worry, I have not forgotten about you.
Good Afternoon
I hope you are doing well!
You should be able to return all assets with a specific custom field value using a similar API call to the one below. Please note that some of the information is contained in {} brackets as this information will need to be the specific values for your district:
curl --location 'https://{SITE}.incidentiq.com/api/v1.0/assets/?%24s=200&%24o=AssetTag%20ASC' \
--header 'accept: application/json, text/plain, */*' \
--header 'accept-language: en-US,en;q=0.9' \
--header 'client: WebBrowser' \
--header 'content-type: application/json' \
--header 'siteid: {SITEID}' \
--header 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36' \
--header 'Authorization: Bearer {TOKEN}' \
--data '{"OnlyShowDeleted":false,"Filters":"{"Facet":"assetcustomfield","Name":"{FIELD NAME}","Id":"{CUSTOMFIELDTYPEID}","Value":"{VALUE}","Negative":false,"CustomFieldTypeId":"{CUSTOMFIELDTYPEID}","SortOrder":"","ComplexEditorPath":"0:Name","Selected":true,"IsUnassigned":false,"GroupIndex":0},{"Facet":"AssetType","Id":"2a1561e5-34ff-4fcf-87de-2a146f0e1c01"}],"FilterByViewPermission":true}'
With that said though, if you may have any questions or concerns though, please let us know, and I hope you have a great day!
Best,
Drew
Uhhhh… I didn’t leave that comment and I’m not sure who did. It looks like someone accidentally left a comment as me. Do your staff or community moderators have the power to leave comments as other users? That strikes me as extremely unsafe.
Good Afternoon
I hope you are doing well!
You should be able to return all assets with a specific custom field value using a similar API call to the one below. Please note that some of the information is contained in {} brackets as this information will need to be the specific values for your district:
curl --location 'https://{SITE}.incidentiq.com/api/v1.0/assets/?%24s=200&%24o=AssetTag%20ASC' \
--header 'accept: application/json, text/plain, */*' \
--header 'accept-language: en-US,en;q=0.9' \
--header 'client: WebBrowser' \
--header 'content-type: application/json' \
--header 'siteid: {SITEID}' \
--header 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36' \
--header 'Authorization: Bearer {TOKEN}' \
--data '{"OnlyShowDeleted":false,"Filters":"{"Facet":"assetcustomfield","Name":"{FIELD NAME}","Id":"{CUSTOMFIELDTYPEID}","Value":"{VALUE}","Negative":false,"CustomFieldTypeId":"{CUSTOMFIELDTYPEID}","SortOrder":"","ComplexEditorPath":"0:Name","Selected":true,"IsUnassigned":false,"GroupIndex":0},{"Facet":"AssetType","Id":"2a1561e5-34ff-4fcf-87de-2a146f0e1c01"}],"FilterByViewPermission":true}'
With that said though, if you may have any questions or concerns though, please let us know, and I hope you have a great day!
Best,
Drew
Best,
Drew
Best,
Drew
Drew,
I greatly appreciate the explanation as to how this happened. I was not aware that our community forum accounts were so linked that emulating users in ticketing would emulate them here. I can understand how this error could happen and I’m glad to hear it’s being worked on. Thank you for your response!
Have a great day!
Dan
You guys are awesome! Thank you so much.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.