Servicenow integration with Lumen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 01:58 AM
whenever attachment added to incident sent it to lumen. Below is API format.
curl --location 'https://api.centurylink.com/ServiceAssurance/v1/Trouble/ticket/26322359/
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer …\
--form 'File=@"/C:/Desktop/test.txt"' \
--form 'description="description"' \
--form 'encoding="base64"' \
--form 'uploaderPhone="999"' \
--form 'uploaderCountryCode="00"' \
--form 'uploaderName="Mary"'
--form 'uploaderEmail="mary@123.com"'
Not Able to get File location with '@' character in servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 09:35 AM
Perhaps try taking out the double quotes so it looks something like this.
'File=@ location of the file on file system'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 09:21 AM - edited 03-04-2024 09:34 AM
Hi,
I am trying with below code to achieve above requirement but getting error as invalid data, if anyone done it before cold you please suggest me with changes to get file location.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 09:46 AM
Sorry @Seema12
I am not a dev, so tough for me to check the code.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************