Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Receive Attachment files from Third Party App to raise a ticket in ServiceNow Table.

vishal_rai
Tera Contributor

Hi Guys, 

 

I have built an app in ServiceNow PDI for demonstrating the ticket handling capabilities of ServiceNow. A user will enter few details like name, email, description and files related to the issue in a third-party application. Using RestAPI's, Data like Name, Email and Description can be fetched into the table and appropriate Assignee's would work on the ticket. I have done the following, please guide me or provide suggestions for effective way to develop the above-mentioned use case.

 

I have created a custom table in my ServiceNow PDI to test out ticketing system. The data for few fields are coming through REST API's like Name, Email and Description. I have used REST API explorer with few HTTP Protocols like GET and POST to verify. Please suggest me how do I receive attachments into my table. 

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @vishal_rai 

 

You can use Flow designer for same. as soon API/data  reached in staging table , read and create record.

*************************************************************************************************************
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]

****************************************************************************************************************

AshishKM
Kilo Patron
Kilo Patron

Hi @vishal_rai , 

As I understand with given details, you have created a custom table and some data is coming via REST API and you need attachment via REST for same record. 

 

Refer the attachment API document, there is an demo.

https://docs.servicenow.com/bundle/washingtondc-api-reference/page/integrate/inbound-rest/concept/c_...   

 

Similar thread

https://www.servicenow.com/community/itsm-forum/retrieve-and-add-attachments-rest-api/m-p/2507887

 

https://www.servicenow.com/community/developer-forum/decoding-base64-encoded-file-and-writing-it-to-...

 

https://www.servicenow.com/community/developer-forum/rest-api-from-third-party-and-get-attachment/m-...

 

https://www.servicenow.com/community/itsm-articles/attachments-in-servicenow/ta-p/2305632 

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Thanks @AshishKM. I will surely look into this and let you know the progress.