help needed for api call
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2024 02:40 PM
hi
i have a field called u_imapcted_asset but when i put into the Rest API i am not getting any result . not understanding why
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 05:07 AM
@Anand Kumar P @Sohail Khilji @Runjay Patel i am trying to use API to pull all the ticket for this machine but if it is using sysid , how can i script it then ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 05:49 AM
Hi @chercm ,
To get the result you need to pass either sys_id or name. if name you wanna pass then use u_impacted_asset.nameLIKExyz.
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 04:36 PM
@Runjay Patel i tried :u_imapcted_asset.serial_numberLIKEjmtt0f3 and u_imapcted_asset.asset_tagLIKEjmtt0f3 , it is not pulling out the correct detail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 09:23 PM
Hi @chercm ,
Yes, List type filed will not allow to do dot walking.
Do below.
If based one tag and serial number you want o get the result then first you have to get the sysid of your impacted asset. Do gliderecord to get the sys id first and then pass it query parameter.
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 03:52 AM
@Runjay Patel any examples how to do this ?