We're trying to create ServiceNow KB article using ServiceNow Table API
url = 'https://devXXXX.service-now.com/api/now/table/kb_knowledge'
Currently we're passing html content data (with tags) in ‘text’ field and able to create KB article
[..]
response = requests.post(url, auth=(user, password), headers=headers, data="{\"active\":\"True\",\"valid_to\":\"01-01-2100\",\"short_description\":\"KB Article\",\"text\":\"<h1> Example Article </h1> <p>Testing</p>}")
[..]
Instead of passing the html content in ‘text’ field, we're trying options to read the entire html file or any file content and create KB article in ServiceNow
Any suggestions please..
Instead of posting the actual html in the data field, maybe you could just put the URL to actual page, but store the actual page elsewhere.