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.

How to access Ref ID from email body from SCTASK detail API

pdhaila97
Kilo Contributor

How can I access the Ref ID (that we receive in email body as "Ref:MSG....") using the SCTASK detail API ({instance}reporting.service-now.com/api/now/table/sc_task)?

Use Case - We want to automate closing of the SCTASK ticket using email. We figured out that we need to send the Ref ID in our mail body. We currently do not have access to email API and therefore we somehow need to extract the Ref ID from SCTASK detail API.

 

Is this even feasible or is somehow getting access to email the only way out from this?

 

1 REPLY 1

BilalAbdulkadir
Giga Contributor